Subscribe to Market-Structure Event
subscribe_eventSubscribe a callback URL to a market-structure event (zero_gamma_flip | new_wall | regime_transition). The answer includes signing_secret, shown only once: store it. Each time the event fires, the callback receives an HTTPS POST whose JSON body has id (one per delivered event; ignore a repeat), event, at (ISO 8601 UTC time of the market snapshot the event was seen in), subscription_id and data, the event's values: zero_gamma_flip has gamma_flip and spot, new_wall has which (call_wall or put_wall) and level, regime_transition has from and to. To verify a delivery, read the ZDtE-Signature header, t=,v1=: compute HMAC-SHA256 keyed with signing_secret exactly as returned (its text as bytes; do not hex-decode it) over t, a period and the raw request body, compare it with v1 in constant time, and reject the delivery if t is more than 5 minutes old.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | Which market-structure event to subscribe to: zero_gamma_flip, new_wall, or regime_transition. | |
| callback_url | Yes | HTTPS URL that receives a POST when the event fires. |