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

Update futures trade model #244

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

stefaj
Copy link

@stefaj stefaj commented Jun 22, 2024

As discussed in #243 the Trade Event for the futures websocket used the spot model which is incorrect and didn't work. I adjusted the futures model to match the current json data and specified the events to use this futures endpoint.

The data looks as follows:
{'stream': 'wifusdc@trade', 'data': {'e': 'trade', 'E': 1719051857284, 'T': 1719051857284, 's': 'WIFUSDC', 't': 18074627, 'p': '1.7728000', 'q': '34.8', 'X': 'MARKET', 'm': True}}

I don't know Rust best practices and followed existing code.

This undocumented futures trade endpoint can be subscribed to using symbol@trade.

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

Successfully merging this pull request may close these issues.

None yet

1 participant