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

SpotPublicTradeChannel responses #49

Open
atirra opened this issue Nov 23, 2022 · 2 comments
Open

SpotPublicTradeChannel responses #49

atirra opened this issue Nov 23, 2022 · 2 comments

Comments

@atirra
Copy link

atirra commented Nov 23, 2022

Hello there!

In **response.result** the 'id' field's order not always in order as same in 'create_time_in_ms' too.
When 'create_time_in_ms' field is equal with the next response time, 'id' fields shows the wrong order of responses.

Maybe my fail, but cant handle this strange behavior
Regards,
Atirra

{'status': 'success'}
{'id': 4616057627, 'create_time': 1669181021, 'create_time_ms': '1669181021177.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0135', 'price': '16490'}
{'id': 4616057628, 'create_time': 1669181021, 'create_time_ms': '1669181021180.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.024', 'price': '16490'}
{'id': 4616057635, 'create_time': 1669181021, 'create_time_ms': '1669181021197.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0001', 'price': '16489.5'}
{'id': 4616057634, 'create_time': 1669181021, 'create_time_ms': '1669181021194.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.002', 'price': '16490'}
{'id': 4616057633, 'create_time': 1669181021, 'create_time_ms': '1669181021194.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.002', 'price': '16490'}
{'id': 4616057632, 'create_time': 1669181021, 'create_time_ms': '1669181021194.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.002', 'price': '16490'}
{'id': 4616057630, 'create_time': 1669181021, 'create_time_ms': '1669181021191.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0262', 'price': '16490'}
{'id': 4616057631, 'create_time': 1669181021, 'create_time_ms': '1669181021194.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0046', 'price': '16490'}
{'id': 4616057629, 'create_time': 1669181021, 'create_time_ms': '1669181021187.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0255', 'price': '16490'}
{'id': 4616057638, 'create_time': 1669181021, 'create_time_ms': '1669181021210.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0001', 'price': '16487.5'}

@revilwang
Copy link
Collaborator

Normally, the ID field should follow strict increment. I'll report this issue.

@atirra
Copy link
Author

atirra commented Nov 23, 2022

Normally, the ID field should follow strict increment. I'll report this issue.

Look at :

{'id': 4616057630, 'create_time': 1669181021, 'create_time_ms': '1669181021191.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0262', 'price': '16490'}

{'id': 4616057629, 'create_time': 1669181021, 'create_time_ms': '1669181021187.0', 'side': 'sell', 'currency_pair': 'BTC_USDT', 'amount': '0.0255', 'price': '16490'}

rows, 'create_time_ms' fields is not in order too.. :(

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