Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get bot to make live (test net) orders #234

Open
onisuk opened this issue Jul 2, 2022 · 1 comment
Open

Cant get bot to make live (test net) orders #234

onisuk opened this issue Jul 2, 2022 · 1 comment

Comments

@onisuk
Copy link

onisuk commented Jul 2, 2022

On running I get the following error, any help much appreciated!

Importing symbol settings for XBTUSD...
Unable to find settings-XBTUSD.py.
2022-07-02 14:04:03,015 - INFO - market_maker - BitMEX Market Maker Version: v1.1
2022-07-02 14:04:03,016 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position

2022-07-02 14:04:03,016 - INFO - ws_thread - Authenticating with API Key.

2022-07-02 14:04:03,016 - INFO - ws_thread - Started thread

2022-07-02 14:04:04,017 - INFO - ws_thread - Connected to WS. Waiting for data images, this may take a moment...

2022-07-02 14:04:05,851 - INFO - ws_thread - XBTUSD received. Waiting for account...

2022-07-02 14:04:05,851 - INFO - ws_thread - Got all market data. Starting.

2022-07-02 14:04:05,851 - INFO - market_maker - Using symbol XBTUSD.

2022-07-02 14:04:05,851 - INFO - market_maker - Order Manager initializing, connecting to BitMEX. Live run: executing real trades.

2022-07-02 14:04:05,851 - INFO - market_maker - Resetting current position. Canceling all existing orders.

2022-07-02 14:04:05,851 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1order: {"filter": "{"ordStatus.isTerminated": false, "symbol": "XBTUSD"}", "count": 500}

2022-07-02 14:04:06,138 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://testnet.bitmex.com/api/v1order

null

2022-07-02 14:04:06,138 - INFO - market_maker - Shutting down. All open orders will be cancelled.

2022-07-02 14:04:06,138 - INFO - market_maker - Resetting current position. Canceling all existing orders.

2022-07-02 14:04:06,138 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1order: {"filter": "{"ordStatus.isTerminated": false, "symbol": "XBTUSD"}", "count": 500}

2022-07-02 14:04:06,218 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://testnet.bitmex.com/api/v1order

null

Exception ignored in atexit callback: <bound method OrderManager.exit of <market_maker.market_maker.OrderManager object at 0x7f31c076bdf0>>

@onisuk
Copy link
Author

onisuk commented Jul 2, 2022

FIxed just added / to https://www.bitmex.com/api/v1/ in settings.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant