Skip to main content

Query Equity

query_margin_equity

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Response

ParameterTypeMeaning
is_successboolInterface result
dataListEquity list is returned
messagestringis_success = False error description is returned

Equity Parameter

Return type : Object

ParameterTypeMeaning
datestringQuery Date
branch_nostringBranch Number
accountstringAccount
currencystringCurrency : NTD TWD equivalents 、TWD New Taiwan Dollars、USD US Dollars、CNY ChiNa Yuan 、JPY Japanese Yen
yesterday_balancefloatYesterday Balance
today_balancefloatToday's Balance
initial_marginfloatInitial Margin
maintenance_marginfloatMaintenace Margin
clearing_marginfloatClearing Margin
today_equityfloatToday's Equity
today_depositfloatToday's Deposit
today_withdrawalfloatToday's Withdrawal
today_trading_feefloatToday's Trading Fee
today_trading_taxfloatToday's Trading Tax
receivable_premiumfloatReceivable Premium
payable_premiumfloatPayable Premium
excess_marginfloatExcess Margin
available_marginfloatAvailable Margin
disgorgementfloatDisgorgement
opt_pnlfloatOption Profit or loss
opt_valuefloatOption Market Value
opt_long_valuefloatLong Option Market Value
opt_short_valuefloatShort Option Market Value
fut_realized_pnlfloatFuture Realized Profit or Loss
fut_unrealized_pnlfloatFuture Unrealized Profit or Loss
buy_lotintBuying Lot
sell_lotintSelling 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)
}),
...
]
}