PlaceOptionOrder

Submit an order to buy or sell option contracts.

POSTPlaceOptionOrder🔐 Auth

Creates a new option order. Orders are signed with your Dilithium-3 private key and executed deterministically on-chain.

Request

ParameterTypeDescription
contract_idrequireduint32Option contract ID
siderequiredOrderSideBUY (0) or SELL (1)
pricerequiredint64Limit price per contract (8 decimals)
sizerequiredint64Number of contracts (8 decimals)
time_in_forceoptionalTimeInForceGTC (0), IOC (1), FOK (2)Default: GTC
reduce_onlyoptionalboolIf true, can only reduce positionDefault: false

Response

FieldTypeDescription
successboolWhether order was accepted
order_iduint64Unique order identifier
statusOrderStatusOPEN, FILLED, PARTIALLY_FILLED, CANCELED
filled_sizeint64Contracts filled immediately (8 decimals)
filled_priceint64Average fill price (8 decimals)
premium_paidint64Total premium paid/received (8 decimals)
errorstringError message if failed