Abhisheksoni1 / BitmexBot

MIT License
80 stars 37 forks source link

Bot crashes - Expecting value: line 1 column 1 (char 0) #7

Open adacumos opened 6 years ago

adacumos commented 6 years ago

On both live and testnet the bot crashes with some weird error

2018-07-18 05:30:55,338 - ERROR - bitmex_bot - Expecting value: line 1 column 1 (char 0) 2018-07-18 05:47:35,440 - INFO - bitmex_bot - Shutting down. All open orders will be cancelled. 2018-07-18 05:47:35,440 - INFO - bitmex_bot - Resetting current position. Canceling all existing orders. 2018-07-18 05:47:35,442 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\$ 2018-07-18 05:47:36,149 - INFO - bitmex_bot - Canceling: Sell 7477 @ 7431.0 2018-07-18 05:47:36,150 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"orderID": ["1173569b-bbb7-8a74-0aac-3ac496b1875d"]}

This left the bot with an open order without stop loss and take profit.

masterkain commented 6 years ago

I have the same issue