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
krexKorea 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 (not applicable to HKEX)
enhanced_limit_orderEnhanced limit order (HKEX only)
stop_limit_orderStop-limit order (for take-profit/stop-loss)
market_orderMarket order
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)

subscribe_type ​

Purpose: Specifies the IPO subscription method.

CodeDescription
allAll types (query only)
cashCash subscription
marginMargin subscription

subscription_status ​

Purpose: Reflects the overall status of an IPO subscription.

CodeDescription
allAll (query only)
subscribingSubscribing
pending_confirmationPending confirmation
pending_paymentPending payment
pending_announcementPending announcement
announcedAnnounced
rejectedRejected

subscription_detail_status ​

Purpose: Reflects the status of an individual IPO subscription detail record.

CodeDescription
allAll (query only)
pendingPending
confirmedConfirmed
rejectedRejected
pending_announcementPending announcement
allottedAllotted (won)
not_allottedNot allotted (not won)