cryptoeax / arbbot

Arbitrator, a bitcoin/altcoin arbitrage trading bot
https://gitter.im/cryptoeax-arbbot/Lobby
GNU General Public License v3.0
198 stars 78 forks source link

PHP Notice: Undefined index: orderid in /var/www/arbbot/bot/BittrexLikeExchange.php on line 353 #92

Closed claytondukes closed 6 years ago

claytondukes commented 6 years ago

New bug found in the latest update. This is likely because I don't use Bittrex in my config (don't have an account).

Jan 11 23:45:13 coin arbbot[4934]: PHP Notice:  Undefined index: orderid in /var/www/arbbot/bot/BittrexLikeExchange.php on line 353
Jan 11 23:45:13 coin arbbot[4934]: 04:45:13: Rolling the dice...
Jan 11 23:45:13 coin arbbot[4934]: 04:45:13: Filling need 619.24982307 XPM @ BLEUTRADE
Jan 11 23:45:13 coin arbbot[4934]: 04:45:13: Not enough coins at top of the orderbook!
Jan 11 23:45:13 coin arbbot[4934]: 04:45:13: Rolling the dice...
Jan 11 23:45:13 coin arbbot[4934]: 04:45:13: Filling need 35283.70944136 DOGE @ POLONIEX
Jan 11 23:45:13 coin arbbot[4934]: 04:45:13: Posting buy order to POLONIEX: 35283.70944136 DOGE for 0.02999115 @ 0.00000085
Jan 11 23:45:14 coin arbbot[4934]: 04:45:14: [POLONIEX] Got an exception in buy(): [POLONIEX] API error response: Not enough BTC.
Jan 11 23:45:14 coin arbbot[4934]: 04:45:14: Rolling the dice...
Jan 11 23:45:14 coin arbbot[4934]: 04:45:14: Filling need 35288.70944136 DOGE @ BLEUTRADE
Jan 11 23:45:14 coin arbbot[4934]: 04:45:14: Posting buy order to BLEUTRADE: 35288.70944136 DOGE for 0.02999540 @ 0.00000085
Jan 11 23:45:15 coin arbbot[4934]: PHP Notice:  Undefined index: orderid in /var/www/arbbot/bot/BittrexLikeExchange.php on line 353
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Rolling the dice...
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Filling need 619.24982307 XPM @ BLEUTRADE
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Not enough coins at top of the orderbook!
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Rolling the dice...
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Filling need 619.24982307 XPM @ BLEUTRADE
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Not enough coins at top of the orderbook!
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Rolling the dice...
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Filling need 619.24982307 XPM @ BLEUTRADE
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Not enough coins at top of the orderbook!
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Rolling the dice...
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Filling need 619.24982307 XPM @ BLEUTRADE
Jan 11 23:45:15 coin arbbot[4934]: 04:45:15: Not enough coins at top of the orderbook!
sigismund commented 6 years ago

It seems that bleutrade returned a non-default response. You could check if there is anything more specific in your logs.

cryptoeax commented 6 years ago

According to the API docs for Bleutrade, a successful call to the /market/buylimit or /market/selllimit endpoints returns something like this:

{
  "success" : true,
  "message" : "",
  "result" : {
      "orderid" : "65498"
    }
}

So my best guess as to what is happening here is that the Bleutrade order is failing.