Skip to main content

Query Single Position

QuerySinglePosition

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Reponse

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

Position Parameter

Return type : Object

ParameterTypeMeaning
datestringTransaction Date
branchNostringBranch Number
accountstringAccount
isSpreadboolSpread Order Flag
positionKindintPosition Kind : 1 Future 、2 Option
symbolstringSymbol
expiryDatestringExpiry Date
strikePricedoubleStrike Price
callPutCallPutCall / Put : Call Call 、Put Put
buySellBsActionBuy/Sell Type : BuySell
pricedoubleCost Price
origLotsintOriginal Lot
tradableLotsintAvailable Lot
orderTypeFutOptOrderTypeOrder Type : New Open、Close Close、FdayTrade DayTrade
currencystringCurrency
marketPricestringMarket Price
initialMargindoubleInitial Margin
maintenanceMargindoubleMaintenance Margin
clearingMargindoubleClearing Margin
optValuedoubleOption market value
optLongValuedoubleLong Option market value
optShortValuedoubleShort Option market value
profitOrLossdoubleProfit or Loss
premiumdoublePremium

Request Example

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

Response Example

{
isSuccess = True,
message = ,
data = [
Position{
dataDate = 2024/04/08, // Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
orderNo = l0001-0000, // Order Number (string)
positionKind = 1, // Position Kind (int)
symbol = FITX, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = null, // Strike Price (double)
callPut = null, // Call/Put Type (CallPut)
buySell = Buy, // Buy/Sell Type (BsAction)
price = 20362, // Cost Price (double)
origLots = 2, // Original Lot (int)
tradableLot = 2, // Tradable Lot (int)
orderType = 0, // Order Type (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 20521.0000, // Market Price (string)
initialMargin = 358000.0, // Initial Margin (double)
maintenanceMargin = 274000.0, // Maintenance Margin (double)
clearingMargin = 264000.0, // Clearing Margin (double)
profitOrLoss = 63600.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
},
Position{
dataDate = 2024/03/29, // Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
orderNo = l0007-0000, // Order Number (string)
positionKind = 2, // Position Kind (int)
symbol = TX1, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 20600, // Strike Price (int)
callPut = Call, // Call/Put Type (CallPut)
buySell = Buy, // Buy/Sell Type (BsAction)
price = 10, // Cost Price (double)
origLots = 2, // Original Lot (int)
tradableLot = 2, // Tradable Lot (int)
orderType = New, // Order Type (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 4.6000, // Market Price (string)
initialMargin = 52660.0, // Initial Margin (double)
maintenanceMargin = 36460.0, // Maintenance Margin (double)
clearingMargin = 34460.0, // Clearing Margin (double)
profitOrLoss = -540.0, // Profit or Loss (double)
premium = -1000.0, // Premium (double)
},
Position{
dataDate = 2024/03/29, // Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
orderNo = l0007-0001, // Order Number (string)
positionKind = 2, // Position Kind (int)
symbol = TX1, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 20600, // Strike Price (int)
callPut = Call, // Call/Put Type (CallPut)
buySell = Buy, // Buy/Sell Type (BsAction)
price = 10, // Cost Price (double)
origLots = 2, // Original Lot (int)
tradableLot = 2, // Tradable Lot (int)
orderType = New, // Order Type (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 4.6000, // Market Price (string)
initialMargin = 52660.0, // Initial Margin (double)
maintenanceMargin = 36460.0, // Maintenance Margin (double)
clearingMargin = 34460.0, // Clearing Margin (double)
profitOrLoss = -540.0, // Profit or Loss (double)
premium = -1000.0, // Premium (double)
},
Position{
dataDate = 2024/03/01, // Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
orderNo = l0002-0000, // Order Number (string)
positionKind = 2, // Position Kind (int)
symbol = TXO, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 18500, // Strike Price (int)
callPut = Call, // Call/Put Type (CallPut)
buySell = Sell, // Buy/Sell Type (BsAction)
price = 625, // Cost Price (double)
origLots = 5, // Original Lot (int)
tradableLot = 4, // Tradable Lot (int)
orderType = New, // Order Type (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 2020.0000, // Market Price (string)
initialMargin = 584000.0, // Initial Margin (double)
maintenanceMargin = 544000.0, // Maintenance Margin (double)
clearingMargin = 536000.0, // Clearing Margin (double)
profitOrLoss = -279000.0, // Profit or Loss (double)
premium = 125000.0, // Premium (double)
}
]
}