WebSocket
For real-time market data, developers can connect to the Winnr WebSocket server to receive live orderbook updates.
Connection Details
- Base URL:
ws://rpc.test.winnr.trade
Orderbook
Subscribe to the orderbook feed for any active market.
- Path:
/modules/orderbook/ws - Query Parameter:
market_id(The unique identifier for the market)
Response
Bids and asks in a simple numerical array format:
{
"bids": [
[price, size],
[price, size],
...
],
"asks": [
[price, size],
[price, size],
...
]
}
- price: The price in basis points (bps) of 10,000 (e.g., a price of 5,000 represents 0.50 USD).
- size: The total quantity available at that price level.
Recent Trades
Coming soon