Skip to content

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.

stefaj added 4 commits June 22, 2024 12:48
Get spot permissions
Get exchange info with permissions
Add position risk control
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.

1 participant