Query Equity
queryMarginEquity
Reqeust Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Object | Equity is returned |
message | string ? (optional) | isSuccess = False error description is returned |
Equity Parameter
Return type : Object
參數 | 類別 | 說明 |
---|---|---|
date | string | Query Date |
branchNo | 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 |
yesterdayBalance | number | Yesterday Balance |
todayBalance | number | Today's Balance |
initialMargin | number | Initial Margin |
maintenanceMargin | number | Maintenace Margin |
clearingMargin | number | Clearing Margin |
todayEquity | number | Today's Equity |
todayDeposit | number | Today's Deposit |
todayWithdrawal | number | Today's Withdrawal |
todayTradingFee | number | Today's Trading Fee |
todayTradingTax | number | Today's Trading Tax |
receivablePremium | number | Receivable Premium |
payablePremium | number | Payable Premium |
excessMargin | number | Excess Margin |
availableMargin | number | Available Margin |
disgorgement | number | Disgorgement |
optPnl | number | Option Profit or loss |
optValue | number | Option Market Value |
optLongValue | number | Long Option Market Value |
optShortValue | number | Short Option Market Value |
futRealizedPnl | number | Future Realized Profit or Loss |
futUnrealizedPnl | number | Future Unrealized Profit or Loss |
buyLot | number | Buying Lot |
sellLot | number | Selling Lot |
Request Example
sdk.futoptAccounting.queryMarginEquity(account);
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 (number)
todayBalance: 22434910.4, // Today's Balance (number)
initialMargin: 1114946.0, // Initial Margin (number)
maintenanceMargin: 939214.0, // Maintenace Margin (number)
clearingMargin: 915760.0, // Clearing Margin (number)
todayEquity: 22694910.4, // Today's Equity (number)
todayDeposit: 0.0, // Today's Deposit (number)
todayWithdrawal: 2102.0, // Today's Withdrawal (number)
todayTradingFee: 16.0, // Today's Trading Fee (number)
todayTradingTax: 0.0, // Today's Trading Tax (number)
receivablePremium: 0.0, // Receivable Premium (number)
payablePremium: 9250.0, // Payable Premium (number)
excessMargin: 28744525.0, // Excess Margin (number)
availableMargin: 21453562.4, // Available Margin (number)
disgorgement: 0.0, // Disgorgement (number)
optPnl: -248600.0, // Option Profit or loss (number)
optValue: -193100.0, // Option Market Value (number)
optLongValue: 311900.0, // Long Option Market Value (number)
optShortValue: 505000.0, // Short Option Market Value (number)
futRealizedPnl: 0.0, // Future Realized Profit or Loss (number)
futUnrealizedPnl: 60700.0, // Future Unrealized Profit or Loss (number)
buyLot: 22, // Buying Lot (number)
sellLot: 7 // Selling Lot (number)
},
{
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 (number)
todayBalance: 19880068.0, // Today's Balance (number)
initialMargin: 1114946.0, // Initial Margin (number)
maintenanceMargin: 939214.0, // Maintenace Margin (number)
clearingMargin: 915760.0, // Clearing Margin (number)
todayEquity: 20140068.0, // Today's Equity (number)
todayDeposit: 0.0, // Today's Deposit (number)
todayWithdrawal: 2102.0, // Today's Withdrawal (number)
todayTradingFee: 16.0, // Today's Trading Fee (number)
todayTradingTax: 0.0, // Today's Trading Tax (number)
receivablePremium: 0.0, // Receivable Premium (number)
payablePremium: 9250.0, // Payable Premium (number)
excessMargin: 28744525.0, // Excess Margin (number)
availableMargin: 18898720.0, // Available Margin (number)
disgorgement: 0.0, // Disgorgement (number)
optPnl: -248600.0, // Option Profit or loss (number)
optValue: -193100.0, // Option Market Value (number)
optLongValue: 311900.0, // Long Option Market Value (number)
optShortValue: 505000.0, // Short Option Market Value (number)
futRealizedPnl: 0.0, // Future Realized Profit or Loss (number)
futUnrealizedPnl: 60700.0, // Future Unrealized Profit or Loss (number)
buyLot: 22, // Buying Lot (number)
sellLot: 7 // Selling Lot (number)
}
]
}