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

subscribeOrderUpdates sends incorrect events #7

Open
alexander-hagen opened this issue Feb 10, 2024 · 1 comment
Open

subscribeOrderUpdates sends incorrect events #7

alexander-hagen opened this issue Feb 10, 2024 · 1 comment
Assignees
Labels
impediment Impediment. Cannot continue. investigating Investigating

Comments

@alexander-hagen
Copy link
Owner

Describe the bug
After succesful subscription to subscribeOrderUpdates, the socket sends incorrect event messages.

Expected message is:
{
"e": "executionReport",
"I": "209818131719847936",
"E": 1499405658658,
"u": 123456,
"s": "ETHBTC",
"c": "mUvoqJxFIILMdfAW5iGSOW",
"S": 1,
"o": 1,
"q": "1.00000000",
"p": "0.10264410",
"x": 1,
"X": 1,
"i": 4293153,
"l": "0.00000000",
"L": "0.00000000",
"n": "0",
"N": null,
"T": 1499405658657,
"t": -1,
"O": 1499405658657,
"z": "0.00000000",
"Y": "0.00000000",
"C": "test",
}

Actual message is:
{ event: 'user_order_update', status: 'ok', ts: 1707595498487 }

To Reproduce
Steps to reproduce the behavior:

  1. Open a websocket with api keys and valid token
  2. Once authenticated, 'subscribe to Order Updates'
  3. See error

Expected behavior
After subscribing to Order Updates the correct response should be given

@alexander-hagen alexander-hagen added bug Something isn't working exchange error. cannot fix Error at exchange. Cannot fix until resolved at exchange first and removed exchange error. cannot fix Error at exchange. Cannot fix until resolved at exchange first labels Feb 10, 2024
@alexander-hagen
Copy link
Owner Author

It might be that if there are no order updates, the event does not contain a payload. To validate this it needs a balance on the exchange to allow order creation.

@alexander-hagen alexander-hagen self-assigned this Feb 11, 2024
@alexander-hagen alexander-hagen added impediment Impediment. Cannot continue. investigating Investigating and removed bug Something isn't working labels Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impediment Impediment. Cannot continue. investigating Investigating
Projects
None yet
Development

No branches or pull requests

1 participant