Inventories
inventories
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result Response
| Parameter | Type | Meaning |
|---|---|---|
| is_success | bool | Interface result |
| data | List | Inventory list is returned |
| message | string | is_success = False error description is returned |
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 | Order Type : Stock 、 Margin 、 Short 、 DayTrade 、 SBL |
| > lastday_qty | int | Yesterday Share balacne |
| > 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 balacne |
| > 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 balacne |
| >> 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 balacne |
| >> 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", # Query date(Today) (string)
account: "26", # Account (string)
branch_no: "6460", # Branch number (string)
stock_no: "1101", # Symbol (string)
order_type: Stock, # Order Type (OrderType)
lastday_qty: 2000, # Yesterday Share balacne (int)
buy_qty: 0, # Total volume purchased today (int)
buy_filled_qty: 0, # Total purchased filled today (int)
buy_value: 0, # Total amount purchased today (int)
today_qty: 2000, # Today Share balacne (int)
tradable_qty: 2000, #Available quantity (int)
sell_qty: 0, # Total volume sell today (int)
sell_filled_qty: 0, # Total sell filled today (int)
sell_value: 0, # Total amount sell today (int)
odd: InventoryOdd{ # odd lot
lastday_qty: 0, # Yesterday odd lot balacne (int)
buy_qty: 0, # Total volume purchased today (int)
buy_filled_qty: 0, # Total purchased filled today (int)
buy_value: 0, # Total amount purchased today (int)
today_qty: 0, # Today odd lot balacne (int)
tradable_qty: 0, # Available quantity (int)
sell_qty: 0, # Total volume sell today (int)
sell_filled_qty: 0,# Total sell filled today (int)
sell_value: 0 # Total amount sell today (int)
}
},
...
]
}