List of Enumerations
Class
Class
OrderObject
| Parameter | Type | Meaning |
|---|---|---|
| buySell | BsAction | Buy/Sell Type valid in Buy 、 Sell |
| symbol | string | Symbol |
| buySell2 (optional) | BsAction | Spread Order Buy/Sell Type |
| symbol2 (optional) | string | Spread Order Symbol |
| price | string | Order Price |
| lot | int | Order Lot |
| marketType | FutOptMarketType | Trading Session valid in Future、Option、FutureNight、OptionNight |
| priceType | FutOptPriceType | Price Type valid in Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
| timeInForce | TimeInForce | Time In Force valid in Rod、Fok、Ioc |
| orderType | FutOptOrderType | Order Type valid in New、Close、Auto 、FdayTrade |
| userDef (optional) | string | Customer Field (Up to 10 characters, no special characters supported) |
FutOptOrderResult
OrderResult,You can using GetOrderResult(accounts) get data.
| Parameter | Type | Meaning |
|---|---|---|
| functionType | int | Function Type : 0 New 、10 Execute New、 15 Amend Price 、 20 Amend Lot 、 30 Cancel 、90 Failed |
| date | string | Transaction Date |
| seqNo | string | Order Serial Number |
| branchNo | string | Branch Number |
| account | string | Account |
| orderNo | string | Order Number |
| assetType | int | Asset Type : 1 Future、 2 Option |
| market | string | Market Type : TAIMEX Future 、Option |
| marketType | FutOptMarketType | Trading Session Type : Future、Option、FutureNight、OptionNight |
| symbol | string | Symbol |
| buySell | BsAction | Buy/Sell Type : Buy 、 Sell |
| priceType | FutOptPriceType | Original OPrder Price Type : Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
| price | double | Order Price |
| lot | int | Original Order Lot |
| timeInForce | TimeInForce | Time In Force : Rod 、 Fok 、 Ioc |
| orderType | FutOptOrderType | Order Type : New 、 Close 、 Auto |
| isPreOrder | bool | Reservation Order Flag |
| status | int | Order Status : 0 Reservation 、 4 InQueue、 9 TimeOut 、 10 New Order 、 30 Cancel Order 、 50 Fully Filled 、 90 Order Failed |
| afterPriceType | FutOptPriceType | Valid Order Price Type :Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
| afterPrice | double | Valid Order Price |
| unit | int | Trading Unit |
| afterLot | int | Valid Order Lot |
| filledLot | int | Filled Lot |
| filledMoney | double | Filled Value |
| beforeLot | int | Before the Lot Modification |
| beforePrice | double | Before the Price Modification |
| userDef | string | Custom Fields |
| lastTime | string | Last Modification Time |
| errorMessage | string | Error Message |
| details | list | Order Process (Return value when query OrderResultDetail or OrderHistory ) |
| >> functionType | int | Function Type : 10 Execute New、 15 Amend Price 、 20 Amend Lot 、 30 Cancel 、50 Fully Filled、90 Failed |
| >> modifiedTime | string | Order Modified Time |
| >> beforeLot | int | Original Order Lot |
| >> afterLot | int | Valid Order Lot |
| >> beforePrice | double | Original Order Price |
| >> afterPrice | double | Valid Order Price |
| >> filledMoney | double | Filled Value |
| >> errorMessage | string | Error Message |
BatchResult
BatchResult,You can using BatchOrderLists(accounts) get data.
| Parameter | Type | Meaning |
|---|---|---|
| functionType | number | Function Type : 0 New 、 15 Amend Price 、 20 Amend Lot 、 30 Cancel |
| date | string | Date |
| branchNo | string | Branch Aumber |
| account | string | Account |
| batchSeqNo | string | Batch Serial Number |
FutOptModifyPrice
Modified Price Object
| Parameter | Type | Meaning |
|---|---|---|
| FutOptOrderResult | Object | FutOptOrderResult |
| price | double | The price after modification |
| PriceType | FutOptPriceType | The price type after modification : Limit 、 Market 、 RangeMarket Market with Protection Orders 、 Reference |
FutOptModifyLot
Modified Lot Object
| Parameter | Type | Meaning |
|---|---|---|
| FutOptOrderResult | Object | FutOptOrderResult |
| lot | int | The lot after modification |
FutOptFilledData
Filled Data Object
| Parameter | Type | Meaning |
|---|---|---|
| date | string | Filled Date |
| branchNo | string | Branch Number |
| account | string | Account |
| seqNo | string | Order serial number (only display on filled callback) |
| orderNo | string | Order Number |
| symbol | string | Symbol |
| expiryDate | string | Expiry Date |
| strikePrice | double | Strike Price |
| callPut | CallPut | Call / Put : Call、Put |
| buySell | BsAction | Buy/Sell Type : Buy 、 Sell |
| symbolLeg2 | string | Spread Symbol |
| expiryDateLeg2 | string | Expiry Date - Spread Order |
| strikePriceLeg2 | double | Strike Price - Spread Order |
| callPutLeg2 | CallPut | Call / Put : Call、Put |
| buySellLeg2 | BsAction | Buy/Sell Type - Spread Order: Buy 、 Sell |
| filledNo | string | Filled Serial Number |
| filledAvgPrice | double | Filled Average Price |
| filledLot | int | Filled Share |
| filledPrice | double | Filled Price |
| filledTime | string | Filled Time |
| userDef | string | Custom Fields (only display on filled callback) |
Account
Account Information
| Parameter | Type | Meaning |
|---|---|---|
| name | string | Customer Name |
| account | string | Account |
| branchNo | string | Branch Number |
| accountType | string | Account Type : stock 、 futopt |
Constants ( Corresponding Values for Returned Fields )
BSAction
Buy / Sell Type
| Name | Meaning |
|---|---|
| Buy | Buy |
| Sell | Sell |