Query Single Position
QuerySinglePosition
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Position | Position is returned |
message | string | isSuccess = False error description is returned |
Position Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | string | Transaction Date |
branchNo | string | Branch Number |
account | string | Account |
isSpread | bool | Spread Order Flag |
positionKind | int | Position Kind : 1 Future 、2 Option |
symbol | string | Symbol |
expiryDate | string | Expiry Date |
strikePrice | double | Strike Price |
callPut | CallPut | Call / Put : Call Call 、Put Put |
buySell | BsAction | Buy/Sell Type : Buy 、Sell |
price | double | Cost Price |
origLots | int | Original Lot |
tradableLots | int | Available Lot |
orderType | FutOptOrderType | Order Type : New Open、Close Close、FdayTrade DayTrade |
currency | string | Currency |
marketPrice | string | Market Price |
initialMargin | double | Initial Margin |
maintenanceMargin | double | Maintenance Margin |
clearingMargin | double | Clearing Margin |
optValue | double | Option market value |
optLongValue | double | Long Option market value |
optShortValue | double | Short Option market value |
profitOrLoss | double | Profit or Loss |
premium | double | Premium |
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)
}
]
}