Hybrid Position
QueryHybridPosition
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result Reponse
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Interface result |
| data | List | HybridPosition list is returned |
| message | string | isSuccess = False error description is returned |
HybridPosition 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 |
| > spread | object | Spread Detail |
| >> 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 | int | 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 | double | 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.QueryHybridPosition(account));
Response Example
{
isSuccess = True,
message = ,
data = [
HybridPosition{
date = 2024/04/08, // Transaction Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
isSpread = false, // Spread Order Flag (bool)
positionKind = 2, // Position Kind : `1` Future 、`2` Option (int)
symbol = FITX, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = , // Strike Price (double or null)
callPut = , // Call / Put : `Call` 、`Put` (CallPut)
buySell = Buy, // Buy/Sell Type : `Buy` 、`Sell` (BsAction)
price = 20325.3333, // Cost Price (double)
origLots = 3, // Original Lot (int)
tradableLots = 3, // Available Lot (int)
orderType = New, // Order Type : `New` Open、`Close` Close、`FdayTrade` DayTrade (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 20351, // Market Price (string)
initialMargin = 0.0, // Initial Margin (double)
maintenanceMargin = 0.0, // Maintenance Margin (double)
clearingMargin = 0.0, // Clearing Margin (double)
initialMarginAllSingle = 0.0, // Initial Margin (double)
optValue = 0.0, // Option market value (double)
optLongValue = 0.0, // Long Option market value (double)
optShortValue = 0.0, // Short Option market value (double)
profitOrLoss = 0.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
spreads = , // Spread Detail (List[SpreadPosition])
},
HybridPosition{
date = 2024/04/08, // Transaction Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
isSpread = false, // Spread Order Flag (bool)
positionKind = 2, // Position Kind : `1` Future 、`2` Option (int)
symbol = TX1, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 20600, // Strike Price (double)
callPut = Call, // Call / Put : `Call` 、`Put` (CallPut)
buySell = Buy, // Buy/Sell Type : `Buy` 、`Sell` (BsAction)
price = 10, // Cost Price (int)
origLots = 4, // Original Lot (int)
tradableLots = 4, // Available Lot (int)
orderType = New, // Order Type : `New` Open、`Close` Close、`FdayTrade` DayTrade (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 4.6, // Market Price (string)
initialMargin = 0.0, // Initial Margin (double)
maintenanceMargin = 0.0, // Maintenance Margin (double)
clearingMargin = 0.0, // Clearing Margin (double)
initialMarginAllSingle = 0.0, // Initial Margin (double)
optValue = 920.0, // Option market value (double)
optLongValue = 920.0, // Long Option market value (double)
optShortValue = 0.0, // Short Option market value (double)
profitOrLoss = -1080.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
spreads = , // Spread Detail (List[SpreadPosition])
},
HybridPosition{
date = 2024/04/08, // Transaction Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
isSpread = false, // Spread Order Flag (bool)
positionKind = 2, // Position Kind : `1` Future 、`2` Option (int)
symbol = TXO, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 19800, // Strike Price (double)
callPut = Call, // Call / Put : `Call` 、`Put` (CallPut)
buySell = Sell, // Buy/Sell Type : `Buy` 、`Sell` (BsAction)
price = 243, // Cost Price (int)
origLots = 2, // Original Lot (int)
tradableLots = 2, // Available Lot (int)
orderType = New, // Order Type : `New` Open、`Close` Close、`FdayTrade` DayTrade (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 46, // Market Price (string)
initialMargin = 0.0, // Initial Margin (double)
maintenanceMargin = 0.0, // Maintenance Margin (double)
clearingMargin = 0.0, // Clearing Margin (double)
initialMarginAllSingle = 0.0, // Initial Margin (double)
optValue = 4600.0, // Option market value (double)
optLongValue = 4600.0, // Long Option market value (double)
optShortValue = 0.0, // Short Option market value (double)
profitOrLoss = -19700.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
spreads = , // Spread Detail (List[SpreadPosition])
},
HybridPosition{
date = 2024/04/08, // Transaction Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
isSpread = false, // Spread Order Flag (bool)
positionKind = 2, // Position Kind : `1` Future 、`2` Option (int)
symbol = TXO, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 20000, // Strike Price (double)
callPut = Put, // Call / Put : `Call` 、`Put` (CallPut)
buySell = Buy, // Buy/Sell Type : `Buy` 、`Sell` (BsAction)
price = 344, // Cost Price (int)
origLots = 2, // Original Lot (int)
tradableLots = 2, // Available Lot (int)
orderType = New, // Order Type : `New` Open、`Close` Close、`FdayTrade` DayTrade (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 82, // Market Price (string)
initialMargin = 0.0, // Initial Margin (double)
maintenanceMargin = 0.0, // Maintenance Margin (double)
clearingMargin = 0.0, // Clearing Margin (double)
initialMarginAllSingle = 0.0, // Initial Margin (double)
optValue = 8200.0, // Option market value (double)
optLongValue = 8200.0, // Long Option market value (double)
optShortValue = 0.0, // Short Option market value (double)
profitOrLoss = -26200.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
spreads = , // Spread Detail (List[SpreadPosition])
},
HybridPosition{
date = 2024/04/08, // Transaction Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
isSpread = true, // Spread Order Flag (bool)
positionKind = 2, // Position Kind : `1` Future 、`2` Option (int)
symbol = TXO20100D4:20000P4, // Symbol (string)
expiryDate = 1, // Expiry Date (string)
strikePrice = 1, // Strike Price (double)
callPut = , // Call / Put : `Call` 、`Put` (CallPut)
buySell = Buy, // Buy/Sell Type : `Buy` 、`Sell` (BsAction)
price = , // Cost Price (int)
origLots = 2, // Original Lot (int)
tradableLots = 2, // Available Lot (int)
orderType = New, // Order Type : `New` Open、`Close` Close、`FdayTrade` DayTrade (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 0.0, // Market Price (string)
initialMargin = 0.0, // Initial Margin (double)
maintenanceMargin = 0.0, // Maintenance Margin (double)
clearingMargin = 0.0, // Clearing Margin (double)
initialMarginAllSingle = 0.0, // Initial Margin (double)
optValue = 0.0, // Option market value (double)
optLongValue = 0.0, // Long Option market value (double)
optShortValue = 0.0, // Short Option market value (double)
profitOrLoss = 0.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
spreads = [ // Spread Detail (List[SpreadPosition])
SpreadPosition{
date = 2024/04/08, // Transaction Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
positionKind = 2, // Position Kind : `1` Future 、`2` Option (int)
symbol = TXO, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 20100, // Strike Price (double)
callPut = Call, // Call / Put : `Call` 、`Put` (CallPut)
buySell = Buy, // Buy/Sell Type : `Buy` 、`Sell` (BsAction)
price = 185, // Cost Price (int)
origLots = 2, // Original Lot (int)
tradableLots = 2, // Available Lot (int)
orderType = , // Order Type : `New` Open、`Close` Close、`FdayTrade` DayTrade (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 365, // Market Price (string)
initialMargin = 0.0, // Initial Margin (double)
maintenanceMargin = 0.0, // Maintenance Margin (double)
clearingMargin = 0.0, // Clearing Margin (double)
initialMarginAllSingle = 0.0,// Initial Margin (double)
optValue = 36500.0, // Option market value (double)
optLongValue = 36500.0, // Long Option market value (double)
optShortValue = 0.0, // Short Option market value (double)
profitOrLoss = 18000.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
},
SpreadPosition{
date = 2024/04/08, // Transaction Date (string)
branchNo = 15901, // Branch Number (string)
account = 1234567, // Account (string)
positionKind = 2, // Position Kind : `1` Future 、`2` Option (int)
symbol = TXO, // Symbol (string)
expiryDate = 202404, // Expiry Date (string)
strikePrice = 20100, // Strike Price (double)
callPut = Put, // Call / Put : `Call` 、`Put` (int)
buySell = Buy, // Buy/Sell Type : `Buy`、`Sell` (BsAction)
price = 0, // Cost Price (int)
origLots = 2, // Original Lot (int)
tradableLots = 2, // Available Lot (int)
orderType = , // Order Type : `New` Open、`Close` Close、`FdayTrade` DayTrade (FutOptOrderType)
currency = TWD, // Currency (string)
marketPrice = 0.0, // Market Price (string)
initialMargin = 0.0, // Initial Margin (double)
maintenanceMargin = 0.0, // Maintenance Margin (double)
clearingMargin = 0.0, // Clearing Margin (double)
initialMarginAllSingle = 0.0, // Initial Margin (double)
optValue = 0.0, // Option market value (double)
optLongValue = 0.0, // Long Option market value (double)
optShortValue = 0.0, // Short Option market value (double)
profitOrLoss = 0.0, // Profit or Loss (double)
premium = 0.0, // Premium (double)
}
],
}
]
}