Okex sandbox problem with watch_orders. newUpdates : True sometimes does not work
See original GitHub issueOS:Windows 10 Programming Language version: Python 3.9 CCXT Pro Version 0.9.90 ( just subscribed it) CCXT Version 1.71.96 Exchange Okex sandbox
okex_test = ccxtpro.okex({'verbose': True,
'enableRateLimit': False,
'apiKey': '',
'secret': '1F,
'password': 'P,
'newUpdates': True,
' 'headers': {"x-simulated-trading": 1}, # https://github.com/ccxt/ccxt/pull/11108
'options': {
'tradesLimit': 1000,
'OHLCVLimit': 1000,
'ordersLimit': 1000,
},
})
okex_test.set_sandbox_mode(True)
markets = await okex_test.load_markets()
Having instantiated the exchange like in the code above, with newUpdates': True
i do order = await okex_test.watch_orders(symbol)
when I send a market order to OKX I usually get 2 responses:
'type': 'market', 'status': 'open'
after few mls
2) 'type': 'market', 'status': 'closed'
sometimes I do not get the 'type': 'market', 'status': 'open'
first answer but I get 2 'type': 'market', 'status': 'closed'
answers
one is relative to my last order and the other one to the previous order, This should not happen with 'newUpdates': True
,
I cannot replicate the issue because it happens only sometimes and it would be extremely difficult to post a snippet of my code ( the okx market order is sent only after a limit order is filled on another market ).
can you please help me investigating this problem
Tx
Issue Analytics
- State:
- Created 2 years ago
- Comments:34 (15 by maintainers)
@ShieldTrade I’m sorry, I misinterpreted the problem initially but will get back to it asap
@ShieldTrade I haven’t had the chance yet but I’ll let you know as soon as I manage to do it