Orders
Get Order Preview
Retrieve an order preview.
POST
Get Order Preview
Use the Prime SDK or CLI to test this endpoint by following the quickstart guide and running with the following examples
For more information, please visit the Prime Java SDK.
- Java
- .NET
- Go
- Python
- CLI
- TS/JS
Body
application/json
side is required for every order type except SPREAD, which must leave it unset: each leg carries its own side in spread_config. spread_config is required when type is SPREAD and must be unset for every other order type.
- UNKNOWN_ORDER_TYPE: nil value
- MARKET: A market order
- LIMIT: A limit order
- TWAP: A time-weighted average price order
- BLOCK: A block trade
- VWAP: A volume-weighted average price order
- STOP_LIMIT: A conditional order combined of stop order and limit order
- RFQ: A request for quote
- PEG: A pegged order that dynamically adjust based on market conditions while maintaining execution discretion and avoiding adverse selection
- SPREAD: A spread order that trades a futures contract against its spot underlying, or against another futures contract of the same underlying (calendar spread), to capture a target spread (futures price - spot price, or back month - front month)
Available options:
MARKET, LIMIT, TWAP, BLOCK, VWAP, STOP_LIMIT, RFQ, PEG, SPREAD - UNKNOWN_TIME_IN_FORCE: nil value
- GOOD_UNTIL_DATE_TIME: Expires at a certain date/time
- GOOD_UNTIL_CANCELLED: Order stays on the books until cancelled
- IMMEDIATE_OR_CANCEL: Order is executed immediately at submission or is cancelled
- FILL_OR_KILL: Order is executed immediately and fully at submission or is cancelled
Available options:
GOOD_UNTIL_DATE_TIME, GOOD_UNTIL_CANCELLED, IMMEDIATE_OR_CANCEL, FILL_OR_KILL - UNKNOWN_PEG_OFFSET_TYPE: nil value
- PEG_OFFSET_TYPE_PRICE: Offset specified in price units
- PEG_OFFSET_TYPE_BPS: Offset specified in basis points (BPS)
- PEG_OFFSET_TYPE_DEPTH: Offset specified in depth
Available options:
PEG_OFFSET_TYPE_PRICE, PEG_OFFSET_TYPE_BPS, PEG_OFFSET_TYPE_DEPTH LimitPriceType indicates the unit limit_price is denominated in. Only meaningful for
Deribit options - leave unspecified for every other order type and product, which are
always priced in the quote currency.
- UNKNOWN_LIMIT_PRICE_TYPE: nil value -
limit_priceis interpreted in the product's default/native unit - LIMIT_PRICE_TYPE_BASE_ASSET:
limit_priceis denominated in the underlying base asset (e.g. BTC for a BTC option). Only valid for Deribit options settled in the base asset. - LIMIT_PRICE_TYPE_QUOTE_ASSET:
limit_priceis denominated in the quote asset (e.g. USD/USDC). - LIMIT_PRICE_TYPE_IMPLIED_VOLATILITY:
limit_priceis an implied volatility percentage rather than a monetary amount (e.g. "65.5" means 65.5% implied volatility).
Available options:
LIMIT_PRICE_TYPE_BASE_ASSET, LIMIT_PRICE_TYPE_QUOTE_ASSET, LIMIT_PRICE_TYPE_IMPLIED_VOLATILITY Response
A successful response.
- UNKNOWN_ORDER_TYPE: nil value
- MARKET: A market order
- LIMIT: A limit order
- TWAP: A time-weighted average price order
- BLOCK: A block trade
- VWAP: A volume-weighted average price order
- STOP_LIMIT: A conditional order combined of stop order and limit order
- RFQ: A request for quote
- PEG: A pegged order that dynamically adjust based on market conditions while maintaining execution discretion and avoiding adverse selection
- SPREAD: A spread order that trades a futures contract against its spot underlying, or against another futures contract of the same underlying (calendar spread), to capture a target spread (futures price - spot price, or back month - front month)
Available options:
MARKET, LIMIT, TWAP, BLOCK, VWAP, STOP_LIMIT, RFQ, PEG, SPREAD - UNKNOWN_TIME_IN_FORCE: nil value
- GOOD_UNTIL_DATE_TIME: Expires at a certain date/time
- GOOD_UNTIL_CANCELLED: Order stays on the books until cancelled
- IMMEDIATE_OR_CANCEL: Order is executed immediately at submission or is cancelled
- FILL_OR_KILL: Order is executed immediately and fully at submission or is cancelled
Available options:
GOOD_UNTIL_DATE_TIME, GOOD_UNTIL_CANCELLED, IMMEDIATE_OR_CANCEL, FILL_OR_KILL