Room ID: polymarket_asset_prices
Endpoint: wss://api.struct.to/ws
Rate: 0.005 credits per message
Stream real-time crypto asset price ticks. Leave asset_symbols empty to subscribe to all available assets.
Subscribe
All filters are optional. If asset_symbols is omitted or empty, the room subscribes to price ticks for every tracked asset.
Filters
| Filter | Type | Required | Description |
|---|
asset_symbols | string[] | No | Asset symbols to track, e.g. ["BTC", "ETH"] |
Example
{
"type": "join_room",
"payload": {
"room_id": "polymarket_asset_prices"
}
}
{
"type": "room_message",
"payload": {
"room_id": "polymarket_asset_prices",
"message": {
"action": "subscribe",
"asset_symbols": ["BTC", "ETH"]
}
}
}
Response
{
"type": "asset_prices_stream_subscribe_response",
"room_id": "polymarket_asset_prices",
"data": {
"asset_symbols": ["BTC", "ETH"]
}
}
Events
asset_price_tick
{
"type": "asset_price_tick",
"room_id": "polymarket_asset_prices",
"data": {
"event_type": "tick",
"symbol": "BTC",
"price": 97250.50,
"timestamp_ms": 1743500000000,
"published_at": 1743500000000
}
}
asset_price_window_update
{
"type": "asset_price_window_update",
"room_id": "polymarket_asset_prices",
"data": {
"event_type": "window_update",
"symbol": "ETH",
"variant": "1h",
"start_time": 1743496400000,
"end_time": 1743500000000,
"open_price": 3200.0,
"close_price": 3215.50,
"update_type": "close",
"published_at": 1743500000000
}
}