get_active_order() fails to recognise BTCUSD, calling incorrect endpoint
dextertd opened this issue · comments
Executing
session.get_active_order(symbol="BTCUSD")
pybit raises
pybit.exceptions.InvalidRequestError: Params error! (ErrCode: 10001) (ErrTime: 19:14:19).
Request → GET https://api-testnet.bybit.com/futures/private/order/list: {'api_key': 'api_key', 'recv_window': 5000, 'symbol': 'BTCUSD', 'timestamp': 1623179659029, 'sign': 'sign'}.
(sensitive info replaced)
pybit called the incorrect endpoint, /futures/private/order/list
, which does not support the BTCUSD symbol. The problem lies here: https://github.com/verata-veritatis/pybit/blob/master/pybit/__init__.py#L410