Inventories
inventories
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result
| Parameter | Type | Meaning |
|---|---|---|
| is_success | bool | Whether successful |
| data | List | Inventory list is returned |
| message | string | Error message returned when is_success = false |
Inventory Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| > date | string | Query date(Today) |
| > account | string | Account |
| > branch_no | string | Branch number |
| > stock_no | string | Symbol |
| > order_type | OrderType | Inventory 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. |
| > lastday_qty | int | Yesterday Share balance |
| > buy_qty | int | Total volume purchased today |
| > buy_filled_qty | int | Total purchased filled today |
| > buy_value | int | Total amount purchased today |
| > today_qty | int | Today Share balance |
| > tradable_qty | int | Available quantity |
| > sell_qty | int | Total volume sell today |
| > sell_filled_qty | int | Total sell filled today |
| > sell_value | int | Total amount sell today |
| > odd | list | Object |
| >> lastday_qty | int | Yesterday odd lot balance |
| >> buy_qty | int | Total volume purchased today |
| >> buy_filled_qty | int | Total purchased filled today |
| >> buy_value | int | Total amount purchased today |
| >> today_qty | int | Today odd lot balance |
| >> tradable_qty | int | Available quantity |
| >> sell_qty | int | Total volume sell today |
| >> sell_filled_qty | int | Total sell filled today |
| >> sell_value | int | Total amount sell today |
Request Example
sdk.accounting.inventories(account)
Response Example
Result {
is_success: True,
message: None,
data : [Inventory{
date: "2023/10/16", # Transaction Date (string)
account: "26", # Account (string)
branch_no: "6460", # Branch code (string)
stock_no: "1101", # Symbol (string)
order_type: Stock, # Order Type (OrderType)
lastday_qty: 2000, # Previous-day inventory balance (int)
buy_qty: 0, # Today's buy order quantity (int)
buy_filled_qty: 0, # Today's filled buy quantity (int)
buy_value: 0, # Buy value (int)
today_qty: 2000, # Today's inventory balance (int)
tradable_qty: 2000, # Tradable quantity (int)
sell_qty: 0, # Today's sell order quantity (int)
sell_filled_qty: 0, # Today's filled sell quantity (int)
sell_value: 0, # Sell value (int)
odd: InventoryOdd{ # Odd Lot Inventory
lastday_qty: 0, # Previous-day inventory balance (int)
buy_qty: 0, # Today's buy order quantity (int)
buy_filled_qty: 0, # Today's filled buy quantity (int)
buy_value: 0, # Buy value (int)
today_qty: 0, # Today's inventory balance (int)
tradable_qty: 0, # Tradable quantity (int)
sell_qty: 0, # Today's sell order quantity (int)
sell_filled_qty: 0, # Today's filled sell quantity (int)
sell_value: 0 # Sell value (int)
}},
...
]
}