Skip to content

Enumeration Types

These enums are used across trading-related APIs to standardize and categorize key values such as market types, order types, order directions, and order statuses.


market

Purpose: Specifies the market in which the order is placed.

CodeDescription
allAll supported markets
hkexHong Kong Stock Exchange (HKEX)
usexUnited States Stock Market
dcexDigital Currency Market

order_type

Purpose: Defines the type of order to be submitted based on trading strategy or market-specific features.

CodeDescription
auction_limit_orderAuction limit order (HKEX only)
auction_market_orderAuction market order (HKEX only)
limit_orderStandard limit order
enhanced_limit_orderEnhanced limit order
special_limit_orderSpecial limit order (HKEX only)
stop_limit_orderStop-limit order (for take-profit/stop-loss)
market_orderMarket order
stop_market_orderStop-market order (for take-profit/stop-loss)
odd_lot_orderOdd-lot order (USEX only)

order_side

Purpose: Indicates the direction of the trade.

CodeDescription
buyBuy order
sellSell order

order_status

Purpose: Reflects the current lifecycle state of an order.

CodeDescription
newNew order received
waWaiting for condition to trigger (conditional orders only)
proSubmitted to exchange
qQueued internally before submission
pexPartially filled
fexFully filled
pecPartially canceled
canCanceled
rejRejected (invalid order)