Enumerations
Reference for every enumeration the order entry protocol uses.
Order Type
The kind of order being placed.
For STOP_MARKET, the stop trigger is encoded in the price field rather
than triggerPrice. The other stop and trigger variants populate
triggerPrice and use price for the resulting limit price.
Time in Force
How long the order stays active.
Order Side
The side of the order.
Order State
The current state of an order in its lifecycle.
Typical state flows:
- Successful placement: PENDING_NEW → CONFIRMED.
- Modification: CONFIRMED → PENDING_AMEND → CONFIRMED.
- Cancellation: CONFIRMED → PENDING_CANCEL → CANCELED.
- Execution: CONFIRMED → FILLED.
- Placement rejection: PENDING_NEW → REJECTED.
- Pre-validation discard: PENDING_NEW → DISCARDED.
Open / Close
Whether an order opens or closes a position. Only meaningful for exchanges with isolated positions.
Note
Only applicable for instruments with isolated positions. Set to null
for instruments with non-isolated positions.
Status Type
State of an account's order-entry operations.
Wallet Type
The type of wallet or margin account.
Wallet Margin Type
The margin characteristics of a wallet.
Maintenance Margin Type
How maintenance margin information is provided.
Error Source
Where an error originated.
Order Error Type
Type of error returned for an order operation.
Tip
RATE_LIMIT_EXCEEDED and RATE_LIMIT_BLOCKED_AFTER_EXCEEDED populate
retryTimeNs with the earliest time it makes sense to retry. Wait
until that time before retrying so you don't burn more rate-limit
budget for nothing.
Login Error Type
Errors that can occur during login.
Fill Error Type
Errors that can occur on fill-context operations.
Fill Type
Where a fill came from.