POST. Webhooks covers registration, signatures, and retries.
The trade and feed examples follow one story. Event 101 opens a Bitcoin long on source message tg:1001:42. A correction then deletes 101 and creates 102 with a new price. Later, message tg:1001:57 loses its only event.
Envelope
Each request also carries these headers:
origin on trade events and kind on feed events can gain values without a schemaVersion change. Inspect an event with an unknown value before acting on it. A new event type reaches only endpoints that subscribe to it.
Trade events
A trade event payload is oneGET /v2/events row, keyed by the event id. Rows never change, so there is no trade_event.updated: a correction deletes the event and creates a new one. direction can be absent on older stored events.
trade_event.created adds origin:
origin says what Centaur observed, not why. A replacement can have the same content as the event it replaces: see Limitations.
trade_event.deleted repeats the row as last delivered. Stop treating that event as true.
trade_event.created
trade_event.deleted
Feed items
A feed item payload is one source-message group ofGET /v2/feed, keyed by the Source Message ID (data.id), with the same writtenAt, source, and trader. Instead of events it carries three lists:
The type comes from the message’s active events before and after the change:
Centaur sends at most one feed item event per message per detection pass.
removed means stop treating the event as true, not reverse the trade.
Each feed event has a kind, today always trade. Feed event assets always include slug, which is null when unavailable.
feed_item.created
feed_item.updated
feed_item.deleted
Positioning
A positioning event carries one whole Position Intelligence view after a recalculation. Centaur sends one when the view’s top 10 changes:- An entry crosses the #10 boundary, in either direction.
- In Crowd Fade or Smart Money vs Crowd, an asset that stays in the top 10 changes category.
The payload has two fields:
result: the view exactly as its REST path returns it with default parameters, includingcalculationAtand the resolvedparameters. Endpoint filters do not apply.changes: what changed since the previous calculation of the same view.
changes has a kind and a key that identifies the row:
In the per-asset views,
entered carries to, left carries from, and category_changed carries both. They are directions (long or short): the crowded side for Crowd Fade, and the smart cohort’s direction for Smart Money vs Crowd. In the asset-and-direction views, a direction flip is a left plus an entered.
Each calculation is compared with the previous one without smoothing, so a row near a threshold can enter and leave on consecutive calculations.