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

Sample market maker not starting - Endpoint was: GET order: null #207

Open
ken4ward opened this issue Dec 24, 2019 · 1 comment
Open

Sample market maker not starting - Endpoint was: GET order: null #207

ken4ward opened this issue Dec 24, 2019 · 1 comment

Comments

@ken4ward
Copy link

ken4ward commented Dec 24, 2019

This is my first time trying to start this sample market maker. It gives this error after issuing this command - marketmaker ['XBTUSD']. What can I do?

Importing symbol settings for XBTUSD...
Unable to find settings-XBTUSD.py.
2019-12-24 03:40:40,637 - INFO - market_maker - BitMEX Market Maker Version: v1.1

2019-12-24 03:40:40,638 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position
2019-12-24 03:40:40,638 - INFO - ws_thread - Authenticating with API Key.
2019-12-24 03:40:40,640 - INFO - ws_thread - Started thread
2019-12-24 03:40:41,645 - INFO - ws_thread - Connected to WS. Waiting for data images, this may take a moment...
2019-12-24 03:40:43,954 - INFO - ws_thread - Got all market data. Starting.
2019-12-24 03:40:43,954 - INFO - market_maker - Using symbol XBTUSD.
2019-12-24 03:40:43,955 - INFO - market_maker - Order Manager initializing, connecting to BitMEX. Live run: executing real trades.
2019-12-24 03:40:43,955 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2019-12-24 03:40:43,955 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500}
2019-12-24 03:40:45,098 - ERROR - bitmex - Unhandled Error: 400 Client Error: Bad Request for url: https://testnet.bitmex.com/api/v1/order?filter=%7B%22ordStatus.isTerminated%22%3A+false%2C+%22symbol%22%3A+%22XBTUSD%22%7D&count=500: {"error":{"message":"This request has expired - `expires` is in the past. Current time: 1577155256","name":"HTTPError"}}
2019-12-24 03:40:45,099 - ERROR - bitmex - Endpoint was: GET order: null
2019-12-24 03:40:45,099 - INFO - market_maker - Shutting down. All open orders will be cancelled.
2019-12-24 03:40:45,099 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2019-12-24 03:40:45,099 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500}
2019-12-24 03:40:45,384 - ERROR - bitmex - Unhandled Error: 400 Client Error: Bad Request for url: https://testnet.bitmex.com/api/v1/order?filter=%7B%22ordStatus.isTerminated%22%3A+false%2C+%22symbol%22%3A+%22XBTUSD%22%7D&count=500: {"error":{"message":"This request has expired - `expires` is in the past. Current time: 1577155257","name":"HTTPError"}}
2019-12-24 03:40:45,384 - ERROR - bitmex - Endpoint was: GET order: null
@ken4ward ken4ward changed the title Sample market maker not starting Sample market maker not starting - AttributeError: 'module' object has no attribute 'reload' Dec 24, 2019
@ken4ward ken4ward changed the title Sample market maker not starting - AttributeError: 'module' object has no attribute 'reload' Sample market maker not starting - Endpoint was: GET order: null Dec 24, 2019
@STRML
Copy link

STRML commented Apr 28, 2020

This message:

2019-12-24 03:40:45,384 - ERROR - bitmex - Unhandled Error: 400 Client Error: Bad Request for url: https://testnet.bitmex.com/api/v1/order?filter=%7B%22ordStatus.isTerminated%22%3A+false%2C+%22symbol%22%3A+%22XBTUSD%22%7D&count=500: {"error":{"message":"This request has expired - `expires` is in the past. Current time: 1577155257","name":"HTTPError"}}

Indicates that your clock is skewed from the server. Please make sure that your clock is correctly set, and use network time if your OS supports it.

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

2 participants