Skip to main content

Query Equity

QueryMarginEquity

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Reponse

ParameterTypeMeaning
isSuccessboolInterface result
dataEquityEquity is returned
messagestringisSuccess = False error description is returned

Equity Parameter

Return type : Object

ParameterTypeMeaning
datestringQuery Date
branchNostringBranch double
accountstringAccount
currencystringCurrency
yesterdayBalancedoubleYesterday Balance
todayBalancedoubleToday's Balance
initialMargindoubleInitial Margin
maintenanceMargindoubleMaintenace Margin
clearingMargindoubleClearing Margin
todayEquitydoubleToday's Equity
todayDepositdoubleToday's Deposit
todayWithdrawaldoubleToday's Withdrawal
todayTradingFeedoubleToday's Trading Fee
todayTradingTaxdoubleToday's Trading Tax
receivablePremiumdoubleReceivable Premium
payablePremiumdoublePayable Premium
excessMargindoubleExcess Margin
availableMargindoubleAvailable Margin
disgorgementdoubleDisgorgement
optPnldoubleOption Profit or loss
optValuedoubleOption Market Value
optLongValuedoubleLong Option Market Value
optShortValuedoubleShort Option Market Value
futRealizedPnldoubleFuture Realized Profit or Loss
futUnrealizedPnldoubleFuture Unrealized Profit or Loss
buyLotintBuying Lot
sellLotintSelling Lot

Request Example

Console.WriteLine(sdk.FutOptAccounting.QueryMarginEquity(target_user));

Response Example

{ 
isSuccess = True,
data = [
{
date = 2024/04/08, // Query Date (string)
branchNo = 15901, // Branch number (string)
account = 1234567, // Account (string)
currency = NTD, // Currency : `NTD` TWD equivalents 、`TWD` New Taiwan Dollars、`USD` US Dollars、`CNY` ChiNa Yuan 、`JPY` Japanese Yen (string)
yesterdayBalance = 22435152.4, // Yesterday Balance (double)
todayBalance = 22434910.4, // Today's Balance (double)
initialMargin = 1114946.0, // Initial Margin (double)
maintenanceMargin = 939214.0, // Maintenace Margin (double)
clearingMargin = 915760.0, // Clearing Margin (double)
todayEquity = 22694910.4, // Today's Equity (double)
todayDeposit= 0.0, // Today's Deposit (double)
todayWithdrawal= 2102.0, // Today's Withdrawal (double)
todayTradingFee= 16.0, // Today's Trading Fee (double)
todayTradingTax= 0.0, // Today's Trading Tax (double)
receivablePremium= 0.0, // Receivable Premium (double)
payablePremium= 9250.0, // Payable Premium (double)
excessMargin= 28744525.0, // Excess Margin (double)
availableMargin = 21453562.4, // Available Margin (double)
disgorgement = 0.0, // Disgorgement (double)
optPnl = -248600.0, // Option Profit or loss (double)
optValue = -193100.0, // Option Market Value (double)
optLongValue = 311900.0, // Long Option Market Value (double)
optShortValue = 505000.0, // Short Option Market Value (double)
futRealizedPnl = 0.0, // Future Realized Profit or Loss (double)
futUnrealizedPnl = 60700.0, // Future Unrealized Profit or Loss (double)
buyLot = 22, // Buying Lot (int)
sellLot = 7 // Selling Lot (int)
},
{
date = 2024/04/08, // Query Date (string)
branchNo = 15901, // Branch number (string)
account = 1234567, // Account (string)
currency = TWD, // Currency : `NTD` TWD equivalents 、`TWD` New Taiwan Dollars、`USD` US Dollars、`CNY` ChiNa Yuan 、`JPY` Japanese Yen (string)
yesterdayBalance = 19880310.0, // Yesterday Balance (double)
todayBalance = 19880068.0, // Today's Balance (double)
initialMargin = 1114946.0, // Initial Margin (double)
maintenanceMargin = 939214.0, // Maintenace Margin (double)
clearingMargin = 915760.0, // Clearing Margin (double)
todayEquity = 20140068.0, // Today's Equity (double)
todayDeposit= 0.0, // Today's Deposit (double)
todayWithdrawal= 2102.0, // Today's Withdrawal (double)
todayTradingFee= 16.0, // Today's Trading Fee (double)
todayTradingTax= 0.0, // Today's Trading Tax (double)
receivablePremium= 0.0, // Receivable Premium (double)
payablePremium= 9250.0, // Payable Premium (double)
excessMargin= 28744525.0, // Excess Margin (double)
availableMargin = 18898720.0, // Available Margin (double)
disgorgement = 0.0, // Disgorgement (double)
optPnl = -248600.0, // Option Profit or loss (double)
optValue = -193100.0, // Option Market Value (double)
optLongValue = 311900.0, // Long Option Market Value (double)
optShortValue = 505000.0, // Short Option Market Value (double)
futRealizedPnl = 0.0, // Future Realized Profit or Loss (double)
futUnrealizedPnl = 60700.0, // Future Unrealized Profit or Loss (double)
buyLot = 22, // Buying Lot (int)
sellLot = 7 // Selling Lot (int)
}
]
}