Routing

Close a routed position across both legs of a market link

Sells the holdings on each leg of an approved market link, at a per-leg floor price derived from that leg's best bid minus slippage_cents (never below 0.01). Holdings are rounded down to the venue's share precision, and a leg with less than 0.01 sellable is skipped. leg_caps is fail-closed: if you send it, a leg with no matching entry is excluded from the close entirely rather than closed in full. Like route-buy, this is a 200 with status: submitting and per-leg error strings; it is gated by ROUTED_EXECUTION_ENABLED. Auth & scope. Requires the mutation gate; per-leg trade:execute and provider checks happen on each child order.

post/orders/route-close

Request

  • Base URL
    https://execution.kairos.trade
  • Auth
    API key in header X-Client-Id and API key in header X-Api-Key and API key in header X-Api-Secret

Request body

providerstring required
market_idstring required
side'yes' | 'no' nullable
outcomestring nullable
slippage_centsinteger nullable

Defaults to 5. Must be in [1, 99] if provided.

Response

Close dispatched. Inspect legs[].error.

route_order_idstring uuid required
status'submitting' required
closingstring required
notesstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.