Skip to main content
Event: asset_price_window_update
Endpoint: wss://api.struct.to/ws/alerts
Cost: 0.1 credits per event
Get notified when a crypto asset candle opens or closes. Use filters to narrow alerts to specific symbols or timeframes.

Filters

FilterTypeRequiredDescription
asset_symbolsstring[]NoSupported symbols: BTC, ETH, SOL, XRP, DOGE, BNB, HYPE (max 500)
timeframesstring[]NoValid timeframes: 5m, 15m, 1h, 4h, 1d, 24h (max 500)
The backend normalizes 1d to 24h in the response variant field.

Subscribe

{
  "op": "subscribe",
  "event": "asset_price_window_update",
  "asset_symbols": ["BTC", "ETH"],
  "timeframes": ["1h", "4h"]
}

Response

{
  "event": "asset_price_window_update",
  "timestamp": 1775913505260,
  "data": {
    "symbol": "BTC",
    "variant": "1h",
    "start_time": 1775910000000,
    "end_time": 1775913600000,
    "open_price": 84120.50,
    "close_price": 84532.17,
    "update_type": "close"
  }
}
Last modified on April 13, 2026