When computing the initial USD price, take the TX fee into account

Issue #32 resolved
Desrever Nu created an issue

No description provided.

Comments (4)

  1. Sam Griffiths

    adjusted the txfee option in options.json. set to 3, 30, 300 results follow:

    INFO: Computing USD prices with offset 5.0%  : sell @ 1.0815000000000001 buy @ 0.9215
    Nov 14, 2014 3:21:29 PM com.nubits.nubot.tasks.PriceMonitorTriggerTask initStrategy
    INFO: Converted price (using 1 btc = 394.209 USD) : sell @ 0.00274347 btc; buy @0.00233759 btc
    
    INFO: Computing USD prices with offset 5.0%  : sell @ 1.365 buy @ 0.6649999999999999
    Nov 14, 2014 3:22:20 PM com.nubits.nubot.tasks.PriceMonitorTriggerTask initStrategy
    INFO: Converted price (using 1 btc = 394.209 USD) : sell @ 0.00346263 btc; buy @0.00168692 btc
    
    INFO: Computing USD prices with offset 5.0%  : sell @ 4.2 buy @ -1.9
    Nov 14, 2014 3:22:44 PM com.nubits.nubot.tasks.PriceMonitorTriggerTask initStrategy
    INFO: Converted price (using 1 btc = 393.672 USD) : sell @ 0.01066878 btc; buy @-0.00482635 btc
    
  2. Log in to comment