Query Equity
query_margin_equity
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result Response
| Parameter | Type | Meaning |
|---|---|---|
| is_success | bool | Interface result |
| data | List | Equity list is returned |
| message | string | is_success = False error description is returned |
Equity Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| date | string | Query Date |
| branch_no | string | Branch Number |
| account | string | Account |
| currency | string | Currency : NTD TWD equivalents 、TWD New Taiwan Dollars、USD US Dollars、CNY ChiNa Yuan 、JPY Japanese Yen |
| yesterday_balance | float | Yesterday Balance |
| today_balance | float | Today's Balance |
| initial_margin | float | Initial Margin |
| maintenance_margin | float | Maintenace Margin |
| clearing_margin | float | Clearing Margin |
| today_equity | float | Today's Equity |
| today_deposit | float | Today's Deposit |
| today_withdrawal | float | Today's Withdrawal |
| today_trading_fee | float | Today's Trading Fee |
| today_trading_tax | float | Today's Trading Tax |
| receivable_premium | float | Receivable Premium |
| payable_premium | float | Payable Premium |
| excess_margin | float | Excess Margin |
| available_margin | float | Available Margin |
| disgorgement | float | Disgorgement |
| opt_pnl | float | Option Profit or loss |
| opt_value | float | Option Market Value |
| opt_long_value | float | Long Option Market Value |
| opt_short_value | float | Short Option Market Value |
| fut_realized_pnl | float | Future Realized Profit or Loss |
| fut_unrealized_pnl | float | Future Unrealized Profit or Loss |
| buy_lot | int | Buying Lot |
| sell_lot | int | Selling Lot |
Request Example
sdk.futopt_accounting.query_margin_equity(account)
回傳範例
Result {
is_success: True,
message: None,
data :
[
Equity({
date: "2024/04/08", # Query Date (string)
branch_no: "15901", # Branch Number (string)
account: "1234567", # Account (string)
currency: "NTD", # Currency (string)
yesterday_balance: 22435152.4, # Yesterday Balance (float)
today_balance: 22434910.4, # Today's Balance (float)
initial_margin: 1114946.0, # Initial Margin (float)
maintenance_margin: 939214.0, # Maintenance Margin (float)
clearing_margin: 915760.0, # Clearing Margin (float)
today_equity: 22694910.4, # Today's Equity (float)
today_deposit: 0.0, # Today's Deposit (float)
today_withdrawal: 2102.0, # Today's Withdrawal (float)
today_trading_fee: 16.0, # Today's Trading Fee (float)
today_trading_tax: 0.0, # Today's Trading Tax (float)
receivable_premium: 0.0, # Receivable Premium (float)
payable_premium: 9250.0, # Payable Premium (float)
excess_margin: 28744525.0, # Excess Margin (float)
available_margin: 21453562.4, # Available Margin (float)
disgorgement: 0.0, # Disgorgement (float)
opt_pnl: -248600.0, # Option Profit or Loss (float)
opt_value: -193100.0, # Option Market Value (float)
opt_long_value: 311900.0, # Long Option Market Value (float)
opt_short_value: 505000.0, # Short Option Market Value (float)
fut_realized_pnl: 0.0, # Future Realized Profit or Loss (float)
fut_unrealized_pnl: 60700.0, # Future Unrealized Profit or Loss (float)
buy_lot: 22, # Buying Lot (int)
sell_lot: 7 # Selling Lot (int)
}),
Equity({
date: "2024/04/08", # Query Date (string)
branch_no: "15901", # Branch Number (string)
account: "1234567", # Account (string)
currency: "TWD", # Currency (string)
yesterday_balance: 19880310.0, # Yesterday Balance (float)
today_balance: 19880068.0, # Today's Balance (float)
initial_margin: 1114946.0, # Initial Margin (float)
maintenance_margin: 939214.0, # Maintenance Margin (float)
clearing_margin: 915760.0, # Clearing Margin (float)
today_equity: 20140068.0, # Today's Equity (float)
today_deposit: 0.0, # Today's Deposit (float)
today_withdrawal: 2102.0, # Today's Withdrawal (float)
today_trading_fee: 16.0, # Today's Trading Fee (float)
today_trading_tax: 0.0, # Today's Trading Tax (float)
receivable_premium: 0.0, # Receivable Premium (float)
payable_premium: 9250.0, # Payable Premium (float)
excess_margin: 28744525.0, # Excess Margin (float)
available_margin: 18898720.0, # Available Margin (float)
disgorgement: 0.0, # Disgorgement (float)
opt_pnl: -248600.0, # Option Profit or Loss (float)
opt_value: -193100.0, # Option Market Value (float)
opt_long_value: 311900.0, # Long Option Market Value (float)
opt_short_value: 505000.0, # Short Option Market Value (float)
fut_realized_pnl: 0.0, # Future Realized Profit or Loss (float)
fut_unrealized_pnl: 60700.0, # Future Unrealized Profit or Loss (float)
buy_lot: 22, # Buying Lot (int)
sell_lot: 7 # Selling Lot (int)
}),
...
]
}