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: BidPrice buying price, AskPrice selling price, MatchedPrice transaction price, TotalQuantity total amount, Time time
triggerValuestringMonitoring condition value (if it is time, fill in HHMMSS)
comparisonOperatorComparison value Optional parameters GreaterThanOrEqual is greater than or equal to, LessThanOrEqual is less than or equal to , GreaterThan is greater than , LessThan is less than
info
  1. When selecting Reference, the trigger can be matched with BidPrice, AskPrice, MatchedPrice, TotalQuantity, Time. If the 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, IntradayOdd intraday odd lots, Odd after-hours odd lots
priceTypeConditionPriceTypePrice Type: Optional parameters: BidPrice buying price, AskPrice selling price, MatchedPrice transaction price, Limit limit price, LimitUp daily limit, LimitDown 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

TpslOrder Object

ParameterTypeMeaning
timeInForceTimeInforceOrder Condition : Optional parameters: ROD, IOC, FOK
priceTypeConditionPriceTypePrice Type: Optional parameters: BidPrice buying price, AskPrice selling price, MatchedPrice transaction price, Limit limit price, LimitUp daily limit, LimitDown 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

priceType If it is limit, price needs to fill in the price; for other prices, fill in the empty string ** or ** null (>= ver. 2.2.4)

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. Transaction price (MatchedPrice); 2. Best bid price (BidPrice); 3. Best selling price (AskPrice)

If not set, this field will be filled with null, and the transaction price (MatchedPrice) 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 UntilEnd until the validity period ends
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
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 BidPrice buying price, AskPrice selling price, MatchedPrice transaction price, Market market price, LimitUp upper limit price, LimitDown lower limit price, Reference reference price (flat price)
diffintThe number of buying and selling price brackets (the number of additions and subtractions according to priceType), the positive value is the number of upward increases, the negative value is the number of downward increases
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

ConditionDayTrade Object

ParameterTypeMeaning
dayTradeEndTimestringOffsetting time before closing, format "HHMMSS" (e.g. "131500")
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 "")
priceTypeConditionPriceTypeOrder price type
About the offsetting time before closing

The settable range is 130100 ~ 132000

Constants (field corresponding value)

BsAction

Buy and sell

NameMeaning
BuyBuy
SellSell

ConditionMarketType

farewell

NameMeaning
CommonGeneral disk
FixingFixing
IntradayOddOdd Lots
OddAfter-hours odd lot

TradingType

Monitoring type

NameMeaning
ReferenceAutomatically reference the delegate object
ScheduledTime

TriggerContent

Trigger condition

NameMeaning
BidPricePurchase price
AskPriceSelling Price
MatchedPriceTransaction price
TotalQuantityTotal Quantity
TimeTime

Operator

NameMeaning
GreaterThanOrEqualGreater than or equal to
LessThanOrEqualLess than or equal to
GreaterThanGreater than
LessThanLess than

StopSign

NameMeaning
FullUntil all transactions are completed
PartialUntil partial transaction
UntilEndUntil the end of the validity period

TimeInForce

Order conditions (TimeInForce)

NameMeaning
RODValid on the same day (Rest of Day)
FOKFill-or-Kill
IOCImmediate-or-Cancel (Immediate-or-Cancel)

ConditionPriceType

Price Type (ConditionPriceType)

NameMeaning
LimitLimit price
BidPricePurchase price
AskPriceSelling Price
MarketMarket price
MatchedPriceTransaction price
LimitUpLimit price
LimitDownLimit down price
ReferenceReference price (flat price)

ConditionOrderType

OrderType (orderType)

NameMeaning
StockSpot
MarginFinancing
ShortStock Lending

Direction

Trailing-profit up/down tracking (direction)

NameMeaning
UpRise
DownFall

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