8. Lấy sổ lệnh
Method:
GETDescription: Lấy sổ lệnh
Parameters: None
Query parameters:
investorAccountId: tiểu khoản_start: index lấy lệnh đầu tiên_end: index lấy lệnh cuối cùng_sort: field dùng để sort_order: thứ tự
Response:
{
"data": [
{
"id": 1110909,
"side": "NB",
"investorId": 1000000036,
"investorAccountId": 1000000036,
"bankId": 10000,
"bankAccountId": 1000040,
"symbol": "VN30F2512",
"price": 1920.9,
"quantity": 1,
"orderType": "LO",
"orderStatus": "PendingNew",
"fillQuantity": 0,
"lastQuantity": 0,
"lastPrice": 0.0,
"averagePrice": 0.0,
"createdDate": "2025-11-27T07:48:27.349Z",
"modifiedDate": "2025-11-27T07:48:32.495Z",
"bankMarginPortfolioId": 34,
"dealId": 0,
"tradingFee": 0.0,
"tradingTax": 0.0,
"orderSecure": 9604500.0,
"priceSecure": 1920.9,
"marginRate": 0.05,
"quantitySecure": 1,
"leavesQuantity": 0,
"externalId": "117_1110909_1",
"error": "CAN_NOT_CANCEL_PENDINGNEW_ORDER_IN_OPEN_SESSION-Cannot cancel Pending New order in Open session",
"maker": "0013000000",
"version": 2,
"type": "DERIVATIVE",
"fillValue": 0.0
}
],
"total": 1,
"start": 0,
"end": 1
}Mổ tả các field quan trọng:
id: id của lệnh đặtorderStatus: trạng thái lệnh đặt
Last updated