Skip to main content

Parameter comparison table

Category

Class

Condition Object

ParameterTypeMeaning
marketTypeTradingTypeMonitoring type Optional parameters: REFERENCE automatically refers to the commission object, SCHEDULED time
symbolstringstock code
triggerTriggerContentTrigger condition Optional parameters: BID_PRICE buying price, ASK_PRICE selling price, MATCHED_PRICE transaction price, TOTAL_QUANTITY total amount, TIME time
triggerValuestringMonitoring condition value (if it is time, fill in HHMMSS)
comparisonOperatorComparison value Optional parameters GREATER_THAN_OR_EQUAL is greater than or equal to, LESS_THAN_OR_EQUAL is less than or equal to , GREATER_THAN is greater than , LESS_THAN is less than
info
  1. When REFERENCE is selected, trigger can be matched with BID_PRICE, ASK_PRICE, MATCHED_PRICE, TOTAL_QUANTITY, TIME. If trigger uses TIME, the time condition will be met and the product will only be triggered if there is a transaction within the time range.
  2. When selecting SCHEDULED, the symbol needs to be filled with a null value "", and the trigger needs to be brought in TIME, then the system time will be used to judge, and it will be triggered when the time condition is met.

ConditionOrder Object

ParameterTypeMeaning
buySellBsActionBuy and sell
symbolstringstock code
pricestringorder price
quantityintOrder quantity
marketTypeConditionMarketTypeType The parameters COMMON can be used for whole shares, FIXING fixed order, INTRADAY_ODD intraday odd lots, ODD after-hours odd lots
priceTypeConditionPriceTypePrice Type: Optional parameters: BID_PRICE buying price, ASK_PRICE selling price, MATCHED_PRICE transaction price, LIMIT limit price, LIMIT_UP daily limit, LIMIT_DOWN lower limit, MARKET market price, REFERENCE reference price (flat price)
timeInForceTimeInForceOrder condition Optional parameters are ROD, FOK, IOC
orderTypeConditionOrderTypeOrder type: Optional parameters: STOCK spot, MARGIN financing, SHORT securities lending

ConditionDayTrade Object

ParameterTypeMeaning
dayTradeEndTimestringOffsetting time before closing, format "HHMMSS" (e.g. "130000"); the settable range is 130100 ~ 132000
autoCancelboolWhether to delete the triggered order after the price validation is over
pricestringOrder price (if there is no specified price, such as a market order, please fill in the blank string "")
priceTypeConditionPriceTypePrice Type: Optional parameters: BID_PRICE buying price, ASK_PRICE selling price, MATCHED_PRICE transaction price, LIMIT limit price, LIMIT_UP daily limit, LIMIT_DOWN lower limit, MARKET market price, REFERENCE reference price (flat price)
About the offsetting time before closing

The settable range is 130100 ~ 132000

TpslOrder Object

ParameterTypeMeaning
timeInForceTimeInforceOrder Condition : Optional parameters: ROD, IOC, FOK
priceTypeConditionPriceTypePrice Type: Optional parameters: BID_PRICE buying price, ASK_PRICE selling price, MATCHED_PRICE transaction price, LIMIT limit price, LIMIT_UP daily limit, LIMIT_DOWN lower limit, MARKET market price, REFERENCE reference price (flat price)
orderTypeConditionOrderTypeOrder type: Optional parameters: STOCK spot, MARGIN financing, SHORT securities lending
targetPricestringStop loss/stop profit trigger price
pricestringStop loss/stop profit order price
triggerTriggerContentStop loss/stop profit trigger condition (see the description at the end of the table for details)
info

If priceType is LIMIT, price needs to be filled in with price; for other prices, fill in std::nullopt

Stop loss/stop profit trigger conditions

Newly added in versions 2.2.0 and later (2.1.1 and previous versions do not have this field), the stop loss/stop profit trigger prices can be set as 1. MATCHED_PRICE 2. Best bid price (BID_PRICE); 3. Best selling price (ASK_PRICE)

If not set, this field will be filled with null, and the transaction price (MATCHED_PRICE) will be used by default.

TpslWrapper Object

ParameterTypeMeaning
stopSignStopSignStop condition: You can choose FULL until all transactions are completed, PARTIAL until partial transactions are completed, and UNTIL_END until the end of the validity period
tpTpslOrder Object (Optional)Stop profit condition content
slTpslOrder Object (Optional)Stop loss condition content
endDatestring (Optional: null value is the same as StartDate)conditional stop date
intradaybool (Optional)Hedging within the day after all transactions are completed (* Need to be set to true when used with hedging condition orders)
Intraday trading

When using hedging conditional orders, intraday needs to be set to true

TrailOrder

ParameterTypeMeaning
symbolstringstock code
pricestringBase price (Note. You can only enter up to two decimal places. If it exceeds the limit, the system will fail to validate the price)
directionDirectionDirection: You can choose UP to rise or DOWN to fall
percentageintincrease/decrease in %
buysellBsActionBuy and sell type: You can choose BUY or SELL
quantityintnumber of commissioned shares
PriceTypeConditionPriceTypePrice Category: You can choose BID_PRICE buying price, ASK_PRICE selling price, MATCHED_PRICE transaction price, MARKET market price, LIMIT_UP upper limit price, LIMIT_DOWN lower limit price, REFERENCE reference price (flat price)
diffintThe number of commissioned buying and selling price levels (the number of additions and subtractions based on priceType), the positive value is the number of upward additions, the negative value is the number of downward additions
timeInForceTimeInForceOrder condition Optional parameters are ROD, FOK, IOC
orderTypeConditionOrderTypeOrder type Optional parameters are STOCK current stock, MARGIN financing, SHORT securities lending

SplitDescription

ParameterTypeMeaning
methodSliceTypeSlice Condition: Optional:
TYPE1 starts from startTime, sends one amount every few seconds, a total of totalQuantity, and sends singleQuantity for each transaction
TYPE2 starts from startTime and ends with endTime, sends one amount every interval seconds, in total totalQuantity, the remaining number of tickets is added up to the last one
TYPE3 starts from startTime and ends with endTime, one is sent every interval seconds, the total is totalQuantity, the remaining number of tickets is allocated forward from the last one.

intervalintOrder interval time (seconds) ​​
singleQuantityintSingle order quantity (number of shares)
totalQuantityint (Optional)Total order quantity (number of shares)
startTimestringstart time
endTimestring (Optional)end time
caution

Please note that the total order quantity must be greater than the single order quantity.

ConditionOrderResult

ParameterTypeMeaning
guidstringcondition order number

Constants (field corresponding value)

BsAction

Buy and sell

NameValueMeaning
BUY1Buy
SELL2Sell
UN_SUPPORTED3This type is not supported
UN_DEFINED4This type is not defined

ConditionMarketType

farewell

NameValueMeaning
COMMON1General disk
FIXING2Fixing
INTRADAY_ODD3Odd lots in intraday
ODD4After-hours odd lot

TradingType

Monitoring type

NameValueMeaning
REFERENCE1Automatically reference the delegate object
SCHEDULED3Time

TriggerContent

Trigger condition

NameValueMeaning
BID_PRICE1Purchase price
ASK_PRICE2Ask price
MATCHED_PRICE3Transaction price
TOTAL_QUANTITY4TOTAL QUANTITY
TIME5time

Operator

NameValueMeaning
GREATER_THAN_OR_EQUAL1Greater than or equal to
LESS_THAN_OR_EQUAL2Less than or equal to
GREATER_THAN3Greater than
LESS_THAN4Less than

StopSign

NameValueMeaning
FULL1Until all transactions are completed
PARTIAL2Until partial transaction
UNTIL_END3Until the end of the validity period

TimeInForce

Order conditions (TimeInForce)

NameValueMeaning
ROD1Valid on the same day (Rest of Day)
FOK2Full-or-Kill (Fill-or-Kill)
IOC3Immediate-or-Cancel (Immediate-or-Cancel)
UN_SUPPORTED4This type is not supported
UN_DEFINED5This type is not defined

ConditionPriceType

Price Type (ConditionPriceType)

NameValueMeaning
LINIT1Limit Price
BID_PRICE2Purchase price
ASK_PRICE3Ask price
MARKET4Market price
MATCHED_PRICE5Transaction price
LIMIT_UP6Limit price
LIMIT_DOWN7Limit down price
REFERENCE8Reference price (flat price)

ConditionOrderType

OrderType (orderType)

NameValueMeaning
STOCK1In stock
MARGIN2Financing
SHORT3Securities Lending
DAY_TRADE4Hedging current stocks

Direction

Trailing-profit up/down tracking (direction)

NameValueMeaning
Up1Up
Down2Down

SliceType

SliceType

NameMeaning
Type1From the start time, one will be sent every few seconds, a total of N will be given, and each will be given M pieces
Type2From the beginning to the end, one will be sent every X seconds, a total of N pictures, and the remaining number of pictures will be added to the last one
Type3From the beginning to the end, one will be sent every X seconds, a total of N pictures, and the remaining number of pictures will be allocated from the last one

ConditionStatus

Condition status (ConditionStatus)

NameMeaning
Type1Today’s related queries
Type2Still valid order
Type3Conditional comparison
Type4Commission processing
Type5Delegation successful
Type6Notified
Type7Delegation failed
Type8Already done
Type9Deletion successful
Type10Exception
Type11Failure

HistoryStatus

History condition order status (HistoryStatus)

NameMeaning
Type1All conditional orders (excluding deleted and expired)
Type2Select all transaction orders within the period
Type3Select intra-period divided delivery documents
Type4Select period deletion order
Type5Select period invalid order
Type6Triggered recording within the selected period