Inventories
inventories
Reqeust Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Object | Inventory list is returned |
message | string ? (optional) | isSuccess = False error description is returned |
Inventory Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
> date | string | Query date(Today) |
> account | string | Account |
> branchNo | string | Branch number |
> stockNo | string | Symbol |
> orderType | js:string / ts:OrderType | Order Type : Stock 、 Margin 、 Short Short sale 、 DayTrade 、 SBL |
> lastdayQty | number | Yesterday Share balacne |
> buyQty | number | Total volume purchased today |
> buyFilledQty | number | Total purchased filled today |
> buyValue | number | Total value purchased today |
> todayQty | number | Today share balacne |
> tradableQty | number | Available quantity |
> sellQty | number | Total volume sell today |
> sellFilledQty | number | Total sell filled today |
> sellValue | number | Total value sell today |
> odd | InventoryOdd | Object |
>> lastdayQty | nuber | Yesterday odd lot balacne |
>> buyQty | number | Total volume purchased today |
>> buyFilledQty | number | Total purchased filled today |
>> buyValue | number | Total value purchased today |
>> todayQty | number | Today odd lot balacne |
>> tradableQty | number | Available quantity |
>> sellQty | number | Total volume sell today |
>> sellFilledQty | number | Total sell filled today |
>> sellValue | number | Total value sell today |
Request Example
sdk.accounting.inventories(account);
Response Example
{
isSuccess: true,
data:[
{
date: '2023/10/05', // Query date (Today) (string)
account: '26', // Account (string)
branchNo: '6460', // Branch number (string)
stockNo: '1101', // Symbol (string)
orderType: 'Stock', // Order Type (string)
lastdayQty: 2000, // Yesterday Share balance (number)
buyQty: 0, // Total volume purchased today (number)
buyFilledQty: 0, // Total purchased filled today (number)
buyValue: 0, // Total value purchased today (number)
todayQty: 2000, // Today share balance (number)
tradableQty: 2000, // Available quantity (number)
sellQty: 0, // Total volume sell today (number)
sellFilledQty: 0, // Total sell filled today (number)
sellValue: 0, // Total value sell today (number)
odd: {
lastdayQty: 0, // Yesterday odd lot balance (number)
buyQty: 0, // Total volume purchased today (number)
buyFilledQty: 0, // Total purchased filled today (number)
buyValue: 0, // Total value purchased today (number)
todayQty: 0, // Today odd lot balance (number)
tradableQty: 0, // Available quantity (number)
sellQty: 0, // Total volume sell today (number)
sellFilledQty: 0, // Total sell filled today (number)
sellValue: 0 // Total value sell today (number)
}
},
{
date: '2023/10/05', // Query date (Today) (string)
account: '26', // Account (string)
branchNo: '6460', // Branch number (string)
stockNo: '1101', // Symbol (string)
orderType: 'Margin', // Order Type (string)
lastdayQty: 8000, // Yesterday Share balance (number)
buyQty: 0, // Total volume purchased today (number)
buyFilledQty: 0, // Total purchased filled today (number)
buyValue: 0, // Total value purchased today (number)
todayQty: 8000, // Today share balance (number)
tradableQty: 8000, // Available quantity (number)
sellQty: 0, // Total volume sell today (number)
sellFilledQty: 0, // Total sell filled today (number)
sellValue: 0, // Total value sell today (number)
odd: {
lastdayQty: 0, // Yesterday odd lot balance (number)
buyQty: 0, // Total volume purchased today (number)
buyFilledQty: 0, // Total purchased filled today (number)
buyValue: 0, // Total value purchased today (number)
todayQty: 0, // Today odd lot balance (number)
tradableQty: 0, // Available quantity (number)
sellQty: 0, // Total volume sell today (number)
sellFilledQty: 0, // Total sell filled today (number)
sellValue: 0 // Total value sell today (number)
}
},
...
]
}