Abhisheksoni1 / BitmexBot

MIT License
80 stars 37 forks source link

Failed to establish a new connection: [Errno -3] #6

Open adacumos opened 6 years ago

adacumos commented 6 years ago

On live bot crashes with the following error does this mean that API has a max limit of request?

2018-07-12 02:35:05,966 - ERROR - bitmex_bot - HTTPSConnectionPool(host='www.bitmex.com', port=443): Max retries exceeded with url: /api/v1/trade/bucketed?binSize=1h&partial=false&symbol=XBT&count=400&reverse=true (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7464da90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) 2018-07-12 02:51:46,073 - INFO - bitmex_bot - Shutting down. All open orders will be cancelled. 2018-07-12 02:51:46,074 - INFO - bitmex_bot - Resetting current position. Canceling all existing orders. 2018-07-12 02:51:46,075 - INFO - bitmex - sending req to https://www.bitmex.com/api/v1/order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500} 2018-07-12 02:51:47,767 - INFO - bitmex_bot - Canceling: Sell 50 @ 6307.0 2018-07-12 02:51:47,768 - INFO - bitmex_bot - Canceling: Sell 50 @ 6415.0 2018-07-12 02:51:47,769 - INFO - bitmex - sending req to https://www.bitmex.com/api/v1/order: {"orderID": ["1686e779-d10e-aa28-24ec-7e9251a79e0c", "1147feea-a9de-205b-54de-afe467af2e6f"]}

Abhisheksoni1 commented 6 years ago

okay got it we can use the bulk order in this let me do this @cofibit