Place Batch Order
BatchPlaceOrder
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
orderObject | OrderObject(list of object) | Order Object |
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | List | OrderResult list is returned |
message | string | isSuccess = False error description is returned |
OrderResult Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
functionType | int | Function Type : 0 New Order 、 10 New Order Executed 、 15 Change Price 、 20 Change Quantity 、 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 : 0 Stock |
market | string | Market Type : TAIEX Listed 、 TAISDAQ OTC 、 TAIEMG Emg |
marketType | MarketType | Trading Session Type : Common 、 Fixing 、 IntradayOdd 、 Odd 、 Emg 、 EmgOdd |
stockNo | string | Symbol |
buySell | BsAction | Buy/Sell Type : Buy 、 Sell |
priceType | PriceType | Original OPrder Price Type : Limit 、 LimitUp 、 LimitDown 、 Market 、 Reference |
price | double | Order Price |
quantity | int | Original Order Quantity |
timeInForce | TimeInForce | Time In Force : Rod 、 Fok 、 Ioc |
orderType | OrderType | Order Type : Stock 、 Margin 、 Short Short sale 、 DayTrade 、 SBL |
isPreOrder | bool | Reservation Order Flag |
status | int | Order Status : 0 Reservation 、 4 Sending to the system backend 、 9 Timeout 、 10 Active order 、 30 Canceled 、 40 Partially filled, others canceled 、 50 Fully filled 、 90 Failed |
afterPriceType | PriceType | Valid Order Price Type : Limit 、 LimitUp 、 LimitDown 、 Market 、 Reference |
afterPrice | double | Valid Order Price |
unit | int | Trading Unit |
afterQty | int | Valid Order Quantity (filled quantity included) |
filledQty | int | Filled Quantity |
filledMoney | int | Filled Value |
beforeQty | int | Before the Quantity Modification |
beforePrice | double | Before the Price Modification |
userDef | string | Custom Fields |
lastTime | string | Last Modification Time |
details | list | Order Process (Return value when query OrderResultDetail or OrderHistory ) |
errorMessage | string | Error Message |
Request Example
var orders = new Order[]{
new Order(
BsAction.Buy,
"2888",
"8.90",
2000,
MarketType.Common,
PriceType.Limit,
TimeInForce.Rod,
OrderType.Stock,
null
), new Order(
BsAction.Buy,
"2888",
"8.90",
2000,
MarketType.Common,
PriceType.Limit,
TimeInForce.Rod,
OrderType.Stock,
null
)};
sdk.Stock.BatchPlaceOrder(account,orders.ToList());
Response Example
{
isSuccess = True,
message = ,
data =[
OrderResult{
functionType = 0, // Function Type (int)
date = 2023/09/22, // Trading Date (string)
seqNo = 00000221431, // Order Serial Number (string)
branchNo = 6460, // Branch Number (string)
account = 26, // Account (string)
orderNo = , // Order Number (string)
market = TAIEX, // Market Category (string)
marketType = Common, // Trading Session Type (MarketType)
stockNo = 2888, // Symbol (string)
buySell = Buy, // Transaction Direction (BsAction)
priceType = Limit, // Order Price Type (PriceType)
price = 8.9, // Order Price (double)
quantity = 2000, // Order Quantity (int)
timeInForce = Rod, // Time In Force (TimeInForce)
orderType = Stock, // Order Type (OrderType)
isPreOrder = true, // Reservation Flag (bool)
status = 0, // Order Status (int)
afterPriceType = Limit, // Valid Order Price Type (PriceType)
afterPrice = 8.9, // Valid Order Price (double)
unit = 1000, // Share Unit (int)
afterQty = 2000, // Valid Order Quantity (int)
filledQty = 0, // Filled Quantity (int)
filledMoney = 0, // Filled Value (int)
beforeQty = 0, // Before the Quantity Modification (int)
beforePrice = 9.1, // Before the Price Modification (double)
userDef = null, // Custom Fields (string)
lastDatetime = null, // Last Modification Time (string)
details = , // Order Process (list)
errorMessage = // Error Message (String)
},
OrderResult{
functionType = 0, // Function Type (int)
date = 2023/09/22, // Trading Date (string)
seqNo = 00000221432, // Order Serial Number (string)
branchNo = 6460, // Branch Number (string)
account = 26, // Account (string)
orderNo = , // Order Number (string)
market = TAIEX, // Market Category (string)
marketType = Common, // Trading Session Type (MarketType)
stockNo = 2888, // Symbol (string)
buySell = Buy, // Transaction Direction (BsAction)
priceType = Limit, // Order Price Type (PriceType)
price = 8.9, // Order Price (double)
quantity = 2000, // Order Quantity (int)
timeInForce = Rod, // Time In Force (TimeInForce)
orderType = Stock, // Order Type (OrderType)
isPreOrder = true, // Reservation Flag (bool)
status = 0, // Order Status (int)
afterPriceType = Limit, // Valid Order Price Type (PriceType)
afterPrice = 8.9, // Valid Order Price (double)
unit = 1000, // Share Unit (int)
afterQty = 2000, // Valid Order Quantity (int)
filledQty = 0, // Filled Quantity (int)
filledMoney = 0, // Filled Value (int)
beforeQty = 0, // Before the Quantity Modification (int)
beforePrice = 9.1, // Before the Price Modification (double)
userDef = , // Custom Fields (string)
lastDatetime = , // Last Modification Time (string)
details = , // Order Process (list)
errorMessage = // Error Message (string)
}
]
}