For the complete documentation index, see llms.txt. This page is also available as Markdown.

Order Types

Sidepit supports limit orders, native immediate-or-cancel market orders, cancellations, and cancel/replace.

Limit

A limit order carries an explicit positive integer price in sats per USD. It may execute at that price or better. Any unfilled quantity may rest in the order book.

Explicit limit prices at the current price-band edges remain limit orders and can rest. A band-edge price is not a market-order signal.

Market

A native market order omits the price field or sends protobuf default price=0. It has no user-chosen limit price and may fill anywhere through the available opposite book within the exchange price band.

In the next DLOB one-second deterministic auction, it sweeps available liquidity on the opposite side. Any unfilled remainder is canceled atomically and never rests.

Terminal outcomes are:

  • FILLED — the full quantity executed;

  • PARTIAL FILL — available quantity executed and the remainder was canceled; or

  • CANCELED — nothing executed because no opposite liquidity was available.

The absence of a resting order is not enough to distinguish these outcomes. Read fills and order state.

Cancel and cancel/replace

A cancel references the original complete order ID. Cancel/replace cancels that order and submits the replacement instruction through the signed protocol. Both resolve at auction cadence rather than at button-click time.

Stop and trigger orders are not part of the current public order protocol.

CCXT mapping

The in-repository CCXT adapter advertises createMarketOrder: true. Market orders omit price and report timeInForce: IOC; limit orders use their explicit price. The adapter is maintained in the Public API repository and has not yet been submitted upstream to CCXT.

Last updated

Was this helpful?