UNSPECIFIED = 0 |
order is not cancelled or rejected |
CLIENT_CANCEL = 1 |
client called a Cancel API |
CLIENT_BULK_CANCEL = 2 |
client called a Bulk Cancel API |
CLIENT_SESSION_END = 3 |
client called a Session Cancel API, or set the WebSocket connection to 'cancelOrdersOnTerminate' |
MARKET_CANCEL = 4 |
the market order was cancelled after no/partial fill. Lower precedence than other TimeInForce cancel reasons |
IOC_CANCEL = 5 |
the IOC order was cancelled after no/partial fill |
AON_CANCEL = 6 |
the AON order was cancelled as it could not be fully matched |
FOK_CANCEL = 7 |
the FOK order was cancelled as it could not be fully matched |
EXPIRED = 8 |
the order was cancelled as it has expired |
FAIL_POST_ONLY = 9 |
the post-only order could not be posted into the orderbook |
FAIL_REDUCE_ONLY = 10 |
the reduce-only order would have caused position size to increase |
MM_PROTECTION = 11 |
the order was cancelled due to market maker protection trigger |
SELF_TRADE_PROTECTION = 12 |
the order was cancelled due to self-trade protection trigger |
SELF_MATCHED_SUBACCOUNT = 13 |
the order matched with another order from the same sub account |
OVERLAPPING_CLIENT_ORDER_ID = 14 |
an active order on your sub account shares the same clientOrderId |
BELOW_MARGIN = 15 |
the order will bring the sub account below initial margin requirement |
LIQUIDATION = 16 |
the sub account is liquidated (and all open orders are cancelled by Gravity) |
INSTRUMENT_INVALID = 17 |
instrument is invalid or not found on Gravity |
INSTRUMENT_DEACTIVATED = 18 |
instrument is no longer tradable on Gravity. (typically due to a market halt, or instrument expiry) |
SYSTEM_FAILOVER = 19 |
system failover resulting in loss of order state |
UNAUTHORISED = 20 |
the credentials used (userSession/apiKeySession/walletSignature) is not authorised to perform the action |
SESSION_KEY_EXPIRED = 21 |
the session key used to sign the order expired |
SUB_ACCOUNT_NOT_FOUND = 22 |
the subaccount does not exist |
NO_TRADE_PERMISSION = 23 |
the signature used to sign the order has no trade permission |
UNSUPPORTED_TIME_IN_FORCE = 24 |
the order payload does not contain a supported TimeInForce value |
MULTI_LEGGED_ORDER = 25 |
the order has multiple legs, but multiple legs are not supported by this venue |
EXCEED_MAX_POSITION_SIZE = 26 |
the order would have caused the subaccount to exceed the max position size |
EXCEED_MAX_SIGNATURE_EXPIRATION = 27 |
the signature supplied is more than 30 days in the future |
MARKET_ORDER_WITH_LIMIT_PRICE = 28 |
the market order has a limit price set |
CLIENT_CANCEL_ON_DISCONNECT_TRIGGERED = 29 |
client cancel on disconnect triggered |
OCO_COUNTER_PART_TRIGGERED = 30 |
the OCO counter part order was triggered |
REDUCE_ONLY_LIMIT = 31 |
the remaining order size was cancelled because it exceeded current position size |
CLIENT_REPLACE = 32 |
the order was replaced by a client replace request |
DERISK_MUST_BE_IOC = 33 |
the derisk order must be an IOC order |
DERISK_MUST_BE_REDUCE_ONLY = 34 |
the derisk order must be a reduce-only order |
DERISK_NOT_SUPPORTED = 35 |
derisk is not supported |
INVALID_ORDER_TYPE = 36 |
the order type is invalid |
CURRENCY_NOT_DEFINED = 37 |
the currency is not defined |
INVALID_CHAIN_ID = 38 |
the chain ID is invalid |
BUILDER_ORDER_FEE_EXCEED = 39 |
Builder fee exceed the limit |
BUILDER_ORDER_FEE_NEGATIVE = 40 |
Builder fee is below 0 |
BUILDER_ORDER_BUILDER_NOT_AUTHORIZED = 41 |
Builder is not an authorized builder for client |
BUILDER_ORDER_BUILDER_NOT_EXIST = 42 |
Builder does not exist |
TRADE_PRICE_WORSE_THAN_BANKRUPTCY_PRICE = 44 |
the trade price is worse than the bankruptcy price |
TOO_MANY_MAKER_ORDERS = 45 |
the order was cancelled due to matching with too many maker orders |
REDUCE_ONLY_NOT_SUPPORTED_FOR_SPOT_ORDER = 46 |
reduce-only order is not supported for spot order |
TPSL_NOT_SUPPORTED_FOR_SPOT_ORDER = 47 |
tpsl is not supported for spot order |
SPOT_ORDER_NOT_SUPPORTED = 48 |
spot order is not supported |
INSUFFICIENT_BALANCE = 49 |
the subaccount has insufficient balance |
SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS = 50 |
spot trading is blocked during socialized loss (SLOW) |
BELOW_MARGIN_WITH_PENALTY_DEVIATION = 51 |
the order will bring the sub account below initial margin requirement considering wide price deviation |
CORPORATE_ACTION = 56 |
Cancelled by the system due to Corporate Action |
NOT_QUALIFIED_MAKER = 57 |
the order was rejected because the sub account is not a qualified maker |
PRIVATE_QUOTE_REQUIRES_RFQ = 58 |
rfq_id is required when is_private = true |
STABLE_PERP_REQUIRES_PRICE_BOUND = 59 |
a signed slippage bound filled in limit_price is required |
UNSUPPORTED_TRIGGER_BY = 60 |
SFP order only supports trigger_by = index or mid |
RFQ_NOT_FOUND = 61 |
the order was rejected because the referenced RFQ could not be found |
RESTING_ORDER_WOULD_CROSS = 62 |
post-only resting placement crosses opposite best resting or index mid |
SESSION_CLOSED = 63 |
the order was submitted when the trading session was either closed or under maintenance |
RFQ_TERMINATED = 65 |
the quote was cancelled because the RFQ it was bound to reached a terminal state — expired, cancelled by the taker, or closed once its taker order filled |
STABLE_PERP_REQUIRES_MULTI_ASSET_MODE = 66 |
stable perp orders require a multi-asset-mode sub-account |
BORROW_LIMIT_EXCEEDED_AFTER_TRADE = 67 |
the trade would have left the sub account borrowing more than its tier borrow limit in the traded quote currency |
UNDEPLOYED_LOAN_AUTO_EXCHANGE = 68 |
an undeployed-loan (LTV) auto-exchange executed on the sub account, and all open orders are cancelled by Gravity |
LIQUIDATION_AUTO_EXCHANGE = 69 |
a liquidation auto-exchange executed on the sub account, and all open orders are cancelled by Gravity |
USDC_COLLATERAL_DISABLED = 70 |
USDC is not enabled as collateral on the sub account, so USDC-quoted instruments cannot be traded; enable USDC as collateral first |
SFP_POST_ONLY_NOT_ALLOWED = 71 |
post-only orders are not supported on STABLE_PERP for accounts that are not qualified market makers; their orders only take liquidity |
VAULT_NON_QUOTE_INVESTMENT_CURRENCY = 72 |
the order was rejected because its sub account is a vault in single-asset margin mode whose investment currency is not its quote currency, and such a vault cannot trade |
RFQ_ID_REQUIRES_STABLE_PERP = 161 |
rfq_id was set on an order whose instrument is not a STABLE_PERP; RFQ is a STABLE_PERP-only product |
RFQ_PRIVATE_POOL_NOT_SUPPORTED = 162 |
is_private = true is not supported yet; private per-RFQ quote pools are post-MVP |
RFQ_REQUIRES_IOC = 163 |
the taker order accepting an RFQ must be a bounded IOC order — IOC, carrying a limit price; an acceptance takes liquidity immediately and must not be able to rest on the book |
RFQ_MISMATCH = 164 |
the order does not match the RFQ it references — wrong instrument, or a side the RFQ did not request |
RFQ_ALREADY_BOUND = 165 |
the RFQ already has a taker order bound to it; an RFQ accepts only one |
RFQ_MAKER_MUST_BE_ECN = 166 |
a resting order carrying rfq_id must be an ECN quote (is_ecn = true) |
FOK_NOT_SUPPORTED = 167 |
fill-or-kill is not supported on STABLE_PERP yet |
MARKET_ORDER_NOT_SUPPORTED = 168 |
market orders are not supported on STABLE_PERP; a taker order must be a bounded IOC order, carrying a limit price |
STABLE_PERP_ORDER_NOT_SUPPORTED = 169 |
STABLE_PERP orders are disabled on this cluster |