miro-ka / mosquito

Trading Bot with focus on Evolutionary Algorithms and Machine Learning
GNU General Public License v3.0
261 stars 53 forks source link

Not buying #35

Closed crack00r closed 7 years ago

crack00r commented 7 years ago

The log says, he is buying, but there arent any open orders, so, maybe still buggy?

Fri Aug  4 09:33:56 2017, close:0.000494, | 0.12286907BTC| 0.00277929USDT | $: 0.0%, b&h: 0.0%
sorted_indicators: [('BTC_NXT', 0.32390356032706868)]
Processing live-action: TradeState.buy, amount: None, pair: BTC_NXT, rate: 6.275e-05, buy_sell_all: True
setting buy order: 1958.07282869BTC_NXT
Couldn't find exchange rate for: USDT
Couldn't find exchange rate for: USDT
Fri Aug  4 09:40:28 2017, close:0.000501, | 0.12286907BTC| 0.00277929USDT | $: 0.0%, b&h: 0.0%
going to sleep for:  19  seconds.
sorted_indicators: [('BTC_NXT', 0.51363612661000424)]
Processing live-action: TradeState.buy, amount: None, pair: BTC_NXT, rate: 6.275e-05, buy_sell_all: True
setting buy order: 1958.07282869BTC_NXT
Couldn't find exchange rate for: USDT
Couldn't find exchange rate for: USDT
Fri Aug  4 09:41:28 2017, close:0.000502, | 0.12286907BTC| 0.00277929USDT | $: 0.0%, b&h: 0.0%
miro-ka commented 7 years ago

Thank you again for reporting this :)

I have added some more buy/sell info to live trading (screenshot down). In poloniex we can have 3 types of orders: fillOrKill, immediateOrCancel, postOnly, This bot currently supports only the first 2. Config.ini has default immediateOrCancel. What happened in your case, was that the order was not filled and it was immediately cancelled. With the new debug info I have added we will see if the order was filled or not.

buy_live

You can read more about fillOrKill, immediateOrCancel, postOnly here.