Skip to main content

Hybrid Position

queryHybridPosition

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Response

ParameterTypeMeaning
isSuccessboolInterface result
dataObjectPosition list is returned
messagestring ? (optional)isSuccess = False error description is returned

HybridPosition Parameter

Return type : Object

ParameterTypeMeaning
> datestringTransaction Date
> branchNostringBranch Number
> accountstringAccount
> isSpreadboolSpread Order Flag
> positionKindnumberPosition Kind : 1 Future, 2 Option
> symbolstringSymbol
> expiryDatenumberExpiry Date
> strikePricenumberStrike Price
> callPutnumberCall / Put : 1 Call, 2 Put
> buySellBSActionBuy/Sell Type : Buy, Sell
> pricenumberCost Price
> origLotsnumberOriginal Lot
> tradableLotsnumberAvailable Lot
> orderTypeFutOptOrderTypeOrder Type : New Open, Close Close, FdayTrade DayTrade
> currencystringCurrency
> marketPricestringMarket Price
> initialMarginnumberInitial Margin
> maintenanceMarginnumberMaintenance Margin
> clearingMarginnumberClearing Margin
> optValuenumberOption market value
> optLongValuenumberLong Option market value
> optShortValuenumberShort Option market value
> profitOrLossnumberProfit or Loss
> premiumnumberPremium
> spreadobjectSpread Detail
>> datestringTransaction Date
>> branchNostringBranch Number
>> accountstringAccount
>> isSpreadboolSpread Order Flag
>> positionKindnumberPosition Kind : 1 Future, 2 Option
>> symbolstringSymbol
>> expiryDatenumberExpiry Date
>> strikePricenumberStrike Price
>> callPutnumberCall / Put : 1 Call, 2 Put
>> buySellBSActionBuy/Sell Type : Buy, Sell
>> pricenumberCost Price
>> origLotsnumberOriginal Lot
>> tradableLotsnumberAvailable Lot
>> orderTypeFutOptOrderTypeOrder Type : New Open, Close Close, FdayTrade DayTrade
>> currencystringCurrency
>> marketPricestringMarket Price
>> initialMarginnumberInitial Margin
>> maintenanceMarginnumberMaintenance Margin
>> clearingMarginnumberClearing Margin
>> optValuenumberOption market value
>> optLongValuenumberLong Option market value
>> optShortValuenumberShort Option market value
>> profitOrLossnumberProfit or Loss
>> premiumnumberPremium

Request Example

sdk.futoptAccounting.queryHybridPosition(account);

Response Example

{
isSuccess: true,
data:[
{
date : "2024/04/08", // Position opening date (string)
branchNo : "15901", // Branch Number (str)
account : "1234567", // Account (str)
isSpread : false, // Spread Order Flag (bool)
positionKind : 1, // Position Kind : `1` Future , `2` Option (number)
symbol : "FITX", // Symbol (str)
expiryDate : '202404', // Expiry Date (number)
buySell : Buy, // Buy/Sell Type : `Buy` , `Sell` (BSAction)
price : 20325.3333, // Cost Price (number)
origLots : 3, // Original Lot (number)
tradableLot : 3, // Tradable lot (number)
orderType : New, // Order Type : `New` Open, `Close` Close, `FdayTrade` DayTrade (FutOptOrderType)
currency : "TWD", // Currency (str)
marketPrice : "20351", // Market Price (str)
initialMargin : 0.0, // Initial Margin (number)
maintenanceMargin : 0.0, // Maintenance Margin (number)
clearingMargin : 0.0, // Clearing Margin (number)
initialMarginAllSingle : 0.0, // Initial Margin (number)
optValue : 0.0, // Option market value (number)
optLongValue : 0.0, // Long Option market value (number)
optShortValue : 0.0, // Short Option market value (number)
profitOrLoss : 0.0, // Profit or Loss (number)
premium : 0.0 // Premium (number)
},
{
date : "2024/04/08", // Position opening date (string)
branchNo : "15901", // Branch Number (str)
account : "1234567", // Account (str)
isSpread : false, // Spread Order Flag (bool)
positionKind : 2, // Position Kind : `1` Future , `2` Option (number)
symbol : "TX1", // Symbol (str)
expiryDate : '202404', // Expiry Date (number)
strikePrice : 206000, // Strike Price (number)
callPut : Call, // Call / Put : `Call` , `Put` (number)
buySell : Buy, // Buy/Sell Type : `Buy` , `Sell` (BSAction)
price : 10, // Cost Price (number)
origLots : 4, // Original Lot (number)
tradableLot : 4, // Tradable lot (number)
orderType : New, // Order Type : `New` Open, `Close` Close, `FdayTrade` DayTrade (FutOptOrderType)
currency : "TWD", // Currency (str)
marketPrice : "4.6", // Market Price (str)
initialMargin : 0.0, // Initial Margin (number)
maintenanceMargin : 0.0, // Maintenance Margin (number)
clearingMargin : 0.0, // Clearing Margin (number)
initialMarginAllSingle : 0.0, // Initial Margin (number)
optValue : 920.0, // Option market value (number)
optLongValue : 920.0, // Long Option market value (number)
optShortValue : 0.0, // Short Option market value (number)
profitOrLoss : -1080.0, // Profit or Loss (number)
premium : 0.0 // Premium (number)
},
{
date : "2024/04/08", // Position opening date (string)
branchNo : "15901", // Branch Number (str)
account : "1234567", // Account (str)
isSpread : false, // Spread Order Flag (bool)
positionKind : 2, // Position Kind : `1` Future , `2` Option (number)
symbol : "TXO", // Symbol (str)
expiryDate : '202404', // Expiry Date (number)
strikePrice : 198000, // Strike Price (number)
callPut : Call, // Call / Put : `Call` , `Put` (number)
buySell : Buy, // Buy/Sell Type : `Buy` , `Sell` (BSAction)
price : 243, // Cost Price (number)
origLots : 2, // Original Lot (number)
tradableLot : 2, // Tradable lot (number)
orderType : New, // Order Type : `New` Open, `Close` Close, `FdayTrade` DayTrade (FutOptOrderType)
currency : "TWD", // Currency (str)
marketPrice : "46", // Market Price (str)
initialMargin : 0.0, // Initial Margin (number)
maintenanceMargin : 0.0, // Maintenance Margin (number)
clearingMargin : 0.0, // Clearing Margin (number)
initialMarginAllSingle : 0.0, // Initial Margin (number)
optValue : 4600.0, // Option market value (number)
optLongValue : 4600.0, // Long Option market value (number)
optShortValue : 0.0, // Short Option market value (number)
profitOrLoss : -19700.0, // Profit or Loss (number)
premium : 0.0 // Premium (number)
},
{
date : "2024/04/08", // Position opening date (string)
branchNo : "15901", // Branch Number (str)
account : "1234567", // Account (str)
isSpread : false, // Spread Order Flag (bool)
positionKind : 2, // Position Kind : `1` Future , `2` Option (number)
symbol : "TXO", // Symbol (str)
expiryDate : '202404', // Expiry Date (number)
strikePrice : 200000, // Strike Price (number)
callPut : Put, // Call / Put : `Call` , `Put` (number)
buySell : Buy, // Buy/Sell Type : `Buy` , `Sell` (BSAction)
price : 344, // Cost Price (number)
origLots : 2, // Original Lot (number)
tradableLot : 2, // Tradable lot (number)
orderType : New, // Order Type : `New` Open, `Close` Close, `FdayTrade` DayTrade (FutOptOrderType)
currency : "TWD", // Currency (str)
marketPrice : "82", // Market Price (str)
initialMargin : 0.0, // Initial Margin (number)
maintenanceMargin : 0.0, // Maintenance Margin (number)
clearingMargin : 0.0, // Clearing Margin (number)
initialMarginAllSingle : 0.0, // Initial Margin (number)
optValue : 8200.0, // Option market value (number)
optLongValue : 8200.0, // Long Option market value (number)
optShortValue : 0.0, // Short Option market value (number)
profitOrLoss : -26200.0, // Profit or Loss (number)
premium : 0.0 // Premium (number)
},
{
date : "2024/04/08", // Position opening date (string)
branchNo : "15901", // Branch Number (str)
account : "1234567", // Account (str)
isSpread : true, // Spread Order Flag (bool)
positionKind : 2, // Position Kind : `1` Future , `2` Option (number)
symbol : "TXO20100D4:20000P4", // Symbol (str)
expiryDate : 1, // Expiry Date (number)
strikePrice : 1, // Strike Price (number)
buySell : Buy, // Buy/Sell Type : `Buy` , `Sell` (BSAction)
origLots : 2, // Original Lot (number)
tradableLot : 2, // Tradable lot (number)
orderType : New, // Order Type : `New` Open, `Close` Close, `FdayTrade` DayTrade (FutOptOrderType)
currency : "TWD", // Currency (str)
marketPrice : "0.0", // Market Price (str)
initialMargin : 0.0, // Initial Margin (number)
maintenanceMargin : 0.0, // Maintenance Margin (number)
clearingMargin : 0.0, // Clearing Margin (number)
initialMarginAllSingle : 0.0, // Initial Margin (number)
optValue : 0.0, // Option market value (number)
optLongValue : 0.0, // Long Option market value (number)
optShortValue : 0.0, // Short Option market value (number)
profitOrLoss : 0.0, // Profit or Loss (number)
premium : 0.0, // Premium (number)
spreads : [ // Spread Detail (List[SpreadPosition])
{
date : "2024/04/08", // Position opening date (string)
branchNo : "15901", // Branch Number (str)
account : "1234567", // Account (str)
positionKind : 2, // Position Kind : `1` Future , `2` Option (number)
symbol : "TXO", // Symbol (str)
symbolName : "臺指選擇權", // Product name (string)
strikePrice : 201000, // Strike Price (number)
callPut : Call, // Call / Put : `Call` , `Put` (number)
buySell : Buy, // Buy/Sell Type : `Buy` , `Sell` (BSAction)
price : 185, // Cost Price (number)
origLots : 2, // Original Lot (number)
tradableLot : 2, // Tradable lot (number)
currency : "TWD", // Currency (str)
marketPrice : "365", // Market Price (str)
initialMargin : 0.0, // Initial Margin (number)
maintenanceMargin : 0.0, // Maintenance Margin (number)
clearingMargin : 0.0, // Clearing Margin (number)
initialMarginAllSingle : 0.0, // Initial Margin (number)
optValue : 36500.0, // Option market value (number)
optLongValue : 36500.0, // Long Option market value (number)
optShortValue : 0.0, // Short Option market value (number)
profitOrLoss : 18000.0, // Profit or Loss (number)
premium : 0.0, // Premium (number)
},
{
date : "2024/04/08", // Position opening date (string)
branchNo : "15901", // Branch Number (str)
account : "1234567", // Account (str)
positionKind : 2, // Position Kind : `1` Future , `2` Option (number)
symbol : "TXO", // Symbol (str)
expiryDate : '202404', // Expiry Date (number)
strikePrice : 200000, // Strike Price (number)
callPut : Put, // Call / Put : `Call` , `Put` (number)
buySell : Buy, // Buy/Sell Type : `Buy` , `Sell` (BSAction)
price : 354, // Cost Price (number)
origLots : 2, // Original Lot (number)
tradableLot : 2, // Tradable lot (number)
currency : "TWD", // Currency (str)
marketPrice : "82", // Market Price (str)
initialMargin : 0.0, // Initial Margin (number)
maintenanceMargin : 0.0, // Maintenance Margin (number)
clearingMargin : 0.0, // Clearing Margin (number)
initialMarginAllSingle : 0.0, // Initial Margin (number)
optValue : 8200.0, // Option market value (number)
optLongValue : 8200.0, // Long Option market value (number)
optShortValue : 0.0, // Short Option market value (number)
profitOrLoss : -27200.0, // Profit or Loss (number)
premium : 0.0, // Premium (number)
},
],
}
]
}