Closed thangng48 closed 2 years ago
Can you please update to last tardis-machine version and try again?
We've migrated to okex v5 API (v3 api is discontinued) starting from 2021-12-23 and that means data format and channel names have changed.
In your case, starting from 2021-12-23 you need to use new channel names for 'replay':
Replay-normalized should work fine with latest version It's not documented yet, but should be soon.
@thaaddeus
You're correct. Just to clarify, the 1st problem happened because one of the tardis-machine instance was in old version. Thanks you.
We have noticed inconsistency in data response from
tardis-machine
With 2 different tardis-machine instance, with same query
{ symbols: [ 'RVN-USDT-SWAP' ], exchange: 'okex-swap', dataTypes: [ 'trade' ], from: '2022-03-09T05:57:44Z', to: '2022-03-09T06:17:46Z' }
:With same tardis-machine instance
curl -g 'localhost:8000/replay?options={"exchange":"okex","filters":[{"channel":"spot/trade","symbols":["BTC-USDT"]}],"from":"2021-12-23","to":"2021-12-24"}'
returns nothingcurl -g 'localhost:8000/replay?options={"exchange":"okex","filters":[{"channel":"spot/trade","symbols":["BTC-USDT"]}],"from":"2021-12-22","to":"2021-12-24"}'
returns datacurl -g 'localhost:8000/replay?options={"exchange":"okex-swap","filters":[{"channel":"swap/trade","symbols":["RVN-USDT-SWAP"]}],"from":"2022-03-09T05:57:44Z","to":"2022-03-09T06:17:46Z"}'
returns nothingcurl -g 'localhost:8000/replay-normalized?options={"exchange":"okex-swap","symbols":["RVN-USDT-SWAP"],"from":"2022-03-09T05:57:44Z","to":"2022-03-09T06:17:46Z","dataTypes":["trade"]}'
returns data