Skip to main content

Inventories

inventories

Input Parameters

ParameterTypeMeaning
accountAccountAccount

Result

ParameterTypeMeaning
isSuccessboolWhether successful
dataObjectInventory list is returned
messagestring ? (optional)Error message returned when isSuccess = false

Inventory Parameter

Return type : Object

ParameterTypeMeaning
> datestringQuery date(Today)
> accountstringAccount
> branchNostringBranch number
> stockNostringSymbol
> orderTypejs:string / ts:OrderTypeInventory values are aggregated into exactly four categories: Stock (cash), Margin (margin financing), Short (short selling), and SBL (securities borrowing). DayTrade (sell-first day trading) is included in and aggregated under Stock (cash), not returned as a separate category.
> lastdayQtynumberYesterday Share balance
> buyQtynumberTotal volume purchased today
> buyFilledQtynumberTotal purchased filled today
> buyValuenumberTotal value purchased today
> todayQtynumberToday share balance
> tradableQtynumberAvailable quantity
> sellQtynumberTotal volume sell today
> sellFilledQtynumberTotal sell filled today
> sellValuenumberTotal value sell today
> oddInventoryOddObject
>> lastdayQtynuberYesterday odd lot balance
>> buyQtynumberTotal volume purchased today
>> buyFilledQtynumberTotal purchased filled today
>> buyValuenumberTotal value purchased today
>> todayQtynumberToday odd lot balance
>> tradableQtynumberAvailable quantity
>> sellQtynumberTotal volume sell today
>> sellFilledQtynumberTotal sell filled today
>> sellValuenumberTotal value sell today

Request Example

sdk.accounting.inventories(account);

Response Example

{
isSuccess: true,
data:[
{
date: '2023/10/05',
account: '26',
branchNo: '6460',
stockNo: '1101',
orderType: Stock,
lastdayQty: 2000,
buyQty: 0,
buyFilledQty: 0,
buyValue: 0,
todayQty: 2000,
tradableQty: 2000,
sellQty: 0,
sellFilledQty: 0,
sellValue: 0,
odd: {
lastdayQty: 0,
buyQty: 0,
buyFilledQty: 0,
buyValue: 0,
todayQty: 0,
tradableQty: 0,
sellQty: 0,
sellFilledQty: 0,
sellValue: 0
}
},
{
date: '2023/10/05',
account: '26',
branchNo: '6460',
stockNo: '1101',
orderType: Margin,
lastdayQty: 8000,
buyQty: 0,
buyFilledQty: 0,
buyValue: 0,
todayQty: 8000,
tradableQty: 8000,
sellQty: 0,
sellFilledQty: 0,
sellValue: 0,
odd: {
lastdayQty: 0,
buyQty: 0,
buyFilledQty: 0,
buyValue: 0,
todayQty: 0,
tradableQty: 0,
sellQty: 0,
sellFilledQty: 0,
sellValue: 0
}
},
...
]
}