Skip to main content
Event: close_to_bond
Endpoint: wss://api.struct.to/ws/alerts
Cost: 0.2 credits per event
Get notified when a trade occurs at a near-certain-outcome price. At least one of min_probability or max_probability is required to define the bond zone.

Filters

FilterTypeRequiredDescription
min_probabilitynumberNo*High zone threshold, 0.0-1.0 (e.g. 0.95). *At least one of min_probability or max_probability is required.
max_probabilitynumberNo*Low zone threshold, 0.0-1.0 (e.g. 0.05). *At least one of min_probability or max_probability is required.
condition_idsstring[]NoRestrict to specific conditions (max 500)
position_idsstring[]NoRestrict to specific positions (max 500)
outcomesstring[]NoFilter by outcome name, e.g. ["Yes", "No"] (max 500)
position_outcome_indicesnumber[]NoFilter by outcome index: 0 or 1 (max 500)
event_slugsstring[]NoRestrict to specific events (max 500)
exclude_shortterm_marketsbooleanNoExclude short-term markets from results

Subscribe

{
  "op": "subscribe",
  "event": "close_to_bond",
  "min_probability": 0.95
}

Response

{
  "event": "close_to_bond",
  "timestamp": 1775913505260,
  "data": {
    "trader": "0xTraderAddress",
    "taker": "0xTakerAddress",
    "position_id": "0xabc123",
    "condition_id": "0x1234567890abcdef",
    "outcome": "Yes",
    "outcome_index": 0,
    "question": "Will candidate X win the 2028 election?",
    "market_slug": "will-candidate-x-win",
    "event_slug": "us-presidential-election-2028",
    "trade_id": "trade_abc123",
    "hash": "0xdeadbeef",
    "block": 19456789,
    "confirmed_at": 1713012000,
    "amount_usd": 5000.00,
    "shares_amount": 5263.16,
    "fee": 50.00,
    "side": "Buy",
    "price": 0.96,
    "probability": 0.96,
    "bond_side": "high",
    "threshold": 0.95
  }
}
Last modified on April 13, 2026