Skip to main content

List of Enumerations

Class

Class

Condition Object

ParameterTypeMeaning
marketTypeTradingTypeMonitor Type Valid in : Reference Reference to order object、Scheduled Time
symbolstringSymbol
triggerTriggerContentTrigger Condition Valid in : BidPriceAskPriceMatchedPriceTotalQuantityTime
triggerValuestringTrigger Value
comparisonOperatorDirection Valid in : GreaterThanOrEqualLessThanOrEqualGreaterThanLessThan
info
  1. When Reference, trigger can match BidPriceAskPriceMatchedPriceTotalQuantity
  2. When selecting Scheduled, symbol should filled the symbolId to be triggered, and trigger must be Time.

FutOptConditionOrder Object

ParameterTypeMeaning
buySellBSActionBuy/Sell Type valid in BuySell
symbolstringSymbol
pricestringOrder Price
quantityintOrder Quantity
marketTypeFutOptConditionMarketTypeTrading Session valid in FutureOptionFutureNightOptionNight (IMPORTANT: TThe following condition order functions do not support after-hours session: 1. Time slice, 2. Trail profit, 3. Time triggered conditions)
priceTypeFutOptConditionPriceTypePrice Type valid in : LimitLimitUpLimitDownMarket BidPrice Bid Price、AskPrice Ask Price、Reference Reference Price (Flat Price)、MatchedPrice current market price 、RangeMarket
timeInForceTimeInForceTime In Force valid in RodFokIoc
orderTypeFutOptConditionOrderTypeOrder Type valid in : NewClose
caution

The following condition order functions do not support after-hours session:

  1. Time slice
  2. Trail profit
  3. Time triggered conditions

FutOptTPSLOrder Object

ParameterTypeMeaning
timeInForceTimeInforceTime In Force valid in : RODFOKIOC
priceTypeFutOptConditionPriceTypePrice Type valid in : LimitLimitUpLimitDownMarket BidPrice Bid Price、AskPrice Ask Price、Reference Reference Price (Flat Price)、MatchedPrice current market price 、RangeMarket
orderTypeFutOptConditionOrderTypeOrder Type valid in : NewClose
targetPricestringTake Profit / Stop Loss Trigger Price
pricestringTake Profit / Stop Loss Order Price
trigger (reserved field)TriggerContentAdded since v2.2.0. No actual function yet.
info

When priceType equals limit , should fill in price; Otherwise, price equals empty string ""

FutOptTPSLWrapper Object

ParameterTypeMeaning
stopSignStopSignStop Condition : Valid Full Until Fully filled、Partial Once Filled happened 、 UntilEnd Until Expiry
tpFutOptTPSLOrder Object (Optional)TP Object
slFutOptTPSLOrder Object (Optional)SL Object
endDatestring (Optional : null equals Condition startDate)TP / SL EndDate
dayTradebool (Optional)When Fully Filled Execuate DayTrade (Fixed to true for futures)

FutOptTrailOrder

ParameterTypeMeaning
symbolstringsymbol
pricestringActivate Price
directionDirectionDirection : Valid UpDown
tickNumintUp / down tick
buySellBSActionBuy / Sell Type : Valid BuySell
lotintOrder lot
PriceTypeFutOptConditionPriceTypePriceType : Valid BidPrice Bid Price、AskPrice Ask Price、MatchedPrice Current Price、MarketLimitUpLimitDownReference Flat Price、RangeMarket Market with Protection Orders
diffintBuy / Sell Ticker Count (Base on PriceType ) ,Positive value indicates upward increments、Negative value indicates downward decrements
timeInForceTimeInForceTime In Force Valid RODFOKIOC
orderTypeFutOptConditionOrderTypeOrderType Valid New Open Position、Close Close Position

SplitDescription

ParameterTypeMeaning
methodSliceTypeSlice Condition : Valid in :
Type1 Starting from startTime, send one order every interval seconds, for totalQuantity, with singleQuantity shares per order
Type2 Starting from startTime , send one order every interval seconds, for totalQuantity. The remaining shares will be aggregated and included in the last order
Type3 Starting from startTime , send one order every interval seconds, for totalQuantity. Distribute the remaining shares starting from the last order backwards.

intervalintervalThe Interval Between Orders
singleQuantityintSingle Order Shares
totalQuantityint (Optional)Total Order Shares
startTimestringStart Time
endTimestring (Optional)End Time
caution

totalQuantity must be greater than singleQuantity.

ConditionOrderResult

ParameterTypeMeaning
guidstringCondition Order Serial Number

Constants ( Corresponding Values for Returned Fields )

BsAction

NameMeaning
BuyBuy
SellSell

TradingType

NameMeaning
ReferenceReference to order object
IndexIndex
ScheduledTime

TriggerContent

NameMeaning
BidPriceBid Price
AskPriceSell Price
MatchedPriceMatched Price
TotalQuantityTotal Quantity
TimeTime

Operator

NameMeaning
GreaterThanOrEqualGreater Than or Equal
LessThanOrEqualLess Than or Equal
GreaterThanGreater Than
LessThanLess Than

StopSign

NameMeaning
FullUntil Fully Filled
PartialOnce Filled Happen
UntilEndUntil Expiry

Direction

Take Profit trace up / down/ (direction)

NameMeaning
UpUp
DownDown

SliceType

NameMeaning
Type1Starting from startTime, send one order every interval seconds, for totalQuantity, with singleQuantity shares per order
Type2Starting from startTime , send one order every interval seconds, for totalQuantity. The remaining shares will be aggregated and included in the last order
Type3Starting from startTime , send one order every interval seconds, for totalQuantity. Distribute the remaining shares starting from the last order backwards

TimeInForce

NameMeaning
RODRest of Day
FOKFill-or-Kill
IOCImmediate-or-Cancel

FutOptConditionMarketType

MarketType (FutOptConditionMarketType)

NameMeaning
FutureFuture (day session)
OptionOption (day session)

FutOptConditionPriceType

PriceType (FutOptConditionPriceType)

NameMeaning
LimitLimit
BidPriceBid Price
AskPriceAsk Price
MarketMarket Price
MatchedPriceCurrent Price
LimitUpLimit Up
LimitDownLimit Down
ReferenceReference Price (Flat Price)
RangeMarketMarket with Protection Orders

FutOptConditionOrderType

OrderType (FutOptConditionOrderType)

NameMeaning
NewOpen Position
CloseClose Position

ConditionStatus

NameMeaning
Type1Query Today's Working Condition Order
Type2Valid Orders Remaining
Type3Condition Matching
Type4Order Processing
Type5Order Successful
Type6Notified
Type7Order Failed
Type8Filled
Type9Delete Successful
Type10Exception
Type11Expired

HistoryStatus

NameMeaning
Type1All condition orders (excluding deleted and expired)
Type2Fully filled within the selected period
Type3Partial filled within the selected period
Type4Canceled within the selected period
Type5Expired within the selected period
Type6Triggered records within the selected period