Parameter comparison table
Category
Class
Condition Object
| Parameter | Type | Meaning |
|---|---|---|
| marketType | TradingType | Monitoring type Optional parameters: Reference automatically refers to the commission object, Scheduled time |
| symbol | string | stock code |
| trigger | TriggerContent | Trigger condition Optional parameters: BidPrice buying price, AskPrice selling price, MatchedPrice transaction price, TotalQuantity total amount, Time time |
| triggerValue | string | Monitoring condition value (if it is time, fill in HHMMSS) |
| comparison | Operator | Comparison 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 |
- When selecting
Reference, the trigger can be matched withBidPrice,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. - When selecting
Scheduled, the symbol needs to be filled with a null value "", and the trigger needs to be brought inTime, then the system time will be used to judge, and it will be triggered when the time condition is met.
ConditionOrder Object
| Parameter | Type | Meaning |
|---|---|---|
| buySell | BsAction | Buy and sell |
| symbol | string | stock code |
| price | string | order price |
| quantity | int | Order quantity |
| marketType | ConditionMarketType | Type The parameters Common can be used for whole shares, Fixing fixed order, IntradayOdd intraday odd lots, Odd after-hours odd lots |
| priceType | ConditionPriceType | Price 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) |
| timeInForce | TimeInForce | Order condition Optional parameters are Rod, Fok, Ioc |
| orderType | ConditionOrderType | Order type: Optional parameters: Stock spot, Margin financing, Short securities lending |
TpslOrder Object
| Parameter | Type | Meaning |
|---|---|---|
| timeInForce | TimeInforce | Order Condition : Optional parameters: ROD, IOC, FOK |
| priceType | ConditionPriceType | Price 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) |
| orderType | ConditionOrderType | Order Type: Optional parameters: Stock spot, Margin financing, Short securities lending |
| targetPrice | string | Stop loss/stop profit trigger price |
| price | string | Stop loss/stop profit order price |
| trigger | TriggerContent | Stop loss/stop profit trigger condition (see the description at the end of the table for details) |
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)
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
| Parameter | Type | Meaning |
|---|---|---|
| stopSign | StopSign | Stop condition: You can choose Full until all transactions are completed, Partial until partial transactions are completed, and UntilEnd until the validity period ends |
| tp | TpslOrder Object (Optional) | Stop profit condition content |
| sl | TpslOrder Object (Optional) | Stop loss condition content |
| endDate | string (Optional: null value is the same as StartDate) | conditional stop date |
| intraday | bool (Optional) | Hedging within the day after all transactions are completed |
When using hedging conditional orders, intraday needs to be set to true
TrailOrder
| Parameter | Type | Meaning |
|---|---|---|
| symbol | string | stock code |
| price | string | Base price (Note. You can only enter up to two decimal places. If it exceeds the limit, the system will fail to validate the price) |
| direction | Direction | Direction: You can choose Up to rise or Down to fall |
| percentage | int | increase/decrease in % |
| buysell | BsAction | Buy and sell type: You can choose Buy or Sell |
| quantity | int | number of commissioned shares |
| PriceType | ConditionPriceType | Price 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) |
| diff | int | The 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 |
| timeInForce | TimeInForce | Order condition Optional parameters are ROD, FOK, IOC |
| orderType | ConditionOrderType | Order type Optional parameters are Stock current stock, Margin financing, Short securities lending |
SplitDescription
| Parameter | Type | Meaning |
|---|---|---|
| method | SliceType | Slice 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. |
| interval | int | Order interval time (seconds) |
| singleQuantity | int | Single order quantity (number of shares) |
| totalQuantity | int (Optional) | Total order quantity (number of shares) |
| startTime | string | start time |
| endTime | string (Optional) | end time |
Please note that the total order quantity must be greater than the single order quantity.
ConditionOrderResult
| Parameter | Type | Meaning |
|---|---|---|
| guid | string | condition order number |
ConditionDayTrade Object
| Parameter | Type | Meaning |
|---|---|---|
| dayTradeEndTime | string | Offsetting time before closing, format "HHMMSS" (e.g. "131500") |
| autoCancel | bool | Whether to delete the triggered order after the price validation is over |
| price | string | Order price (if there is no specified price, such as a market order, please fill in the blank string "") |
| priceType | ConditionPriceType | Order price type |
The settable range is 130100 ~ 132000
Constants (field corresponding value)
BsAction
Buy and sell
| Name | Meaning |
|---|---|
| Buy | Buy |
| Sell | Sell |
ConditionMarketType
farewell
| Name | Meaning |
|---|---|
| Common | General disk |
| Fixing | Fixing |
| IntradayOdd | Odd Lots |
| Odd | After-hours odd lot |
TradingType
Monitoring type
| Name | Meaning |
|---|---|
| Reference | Automatically reference the delegate object |
| Scheduled | Time |
TriggerContent
Trigger condition
| Name | Meaning |
|---|---|
| BidPrice | Purchase price |
| AskPrice | Selling Price |
| MatchedPrice | Transaction price |
| TotalQuantity | Total Quantity |
| Time | Time |
Operator
| Name | Meaning |
|---|---|
| GreaterThanOrEqual | Greater than or equal to |
| LessThanOrEqual | Less than or equal to |
| GreaterThan | Greater than |
| LessThan | Less than |
StopSign
| Name | Meaning |
|---|---|
| Full | Until all transactions are completed |
| Partial | Until partial transaction |
| UntilEnd | Until the end of the validity period |
TimeInForce
Order conditions (TimeInForce)
| Name | Meaning |
|---|---|
| ROD | Valid on the same day (Rest of Day) |
| FOK | Fill-or-Kill |
| IOC | Immediate-or-Cancel (Immediate-or-Cancel) |
ConditionPriceType
Price Type (ConditionPriceType)
| Name | Meaning |
|---|---|
| Limit | Limit price |
| BidPrice | Purchase price |
| AskPrice | Selling Price |
| Market | Market price |
| MatchedPrice | Transaction price |
| LimitUp | Limit price |
| LimitDown | Limit down price |
| Reference | Reference price (flat price) |
ConditionOrderType
OrderType (orderType)
| Name | Meaning |
|---|---|
| Stock | Spot |
| Margin | Financing |
| Short | Stock Lending |
Direction
Trailing-profit up/down tracking (direction)
| Name | Meaning |
|---|---|
| Up | Rise |
| Down | Fall |
SliceType
SliceType
| Name | Meaning |
|---|---|
| Type1 | From the start time, one will be sent every few seconds, a total of N will be given, and each will be given M pieces |
| Type2 | From 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 |
| Type3 | From 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)
| Name | Meaning |
|---|---|
| Type1 | Today’s related queries |
| Type2 | Still valid order |
| Type3 | Conditional comparison |
| Type4 | Commission processing |
| Type5 | Delegation successful |
| Type6 | Notified |
| Type7 | Delegation failed |
| Type8 | Already done |
| Type9 | Deletion successful |
| Type10 | Exception |
| Type11 | Failure |
HistoryStatus
History condition order status (HistoryStatus)
| Name | Meaning |
|---|---|
| Type1 | All conditional orders (excluding deleted and expired) |
| Type2 | Select all transaction orders within the period |
| Type3 | Select intra-period divided delivery documents |
| Type4 | Select period deletion order |
| Type5 | Select period invalid order |
| Type6 | Triggered recording within the selected period |