Hybrid Position
queryHybridPosition
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Object | Position list is returned |
message | string ? (optional) | 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 | number | Position Kind : 1 Future 、2 Option |
> symbol | string | Symbol |
> expiryDate | number | Expiry Date |
> strikePrice | number | Strike Price |
> callPut | number | Call / Put : 1 Call 、2 Put |
> buySell | BSAction | Buy/Sell Type : Buy 、Sell |
> price | number | Cost Price |
> origLots | number | Original Lot |
> tradableLots | number | Available Lot |
> orderType | FutOptOrderType | Order Type : New Open、Close Close、FdayTrade DayTrade |
> currency | string | Currency |
> marketPrice | string | Market Price |
> initialMargin | number | Initial Margin |
> maintenanceMargin | number | Maintenance Margin |
> clearingMargin | number | Clearing Margin |
> optValue | number | Option market value |
> optLongValue | number | Long Option market value |
> optShortValue | number | Short Option market value |
> profitOrLoss | number | Profit or Loss |
> premium | number | Premium |
> spread | object | Spread Detail |
>> date | string | Transaction Date |
>> branchNo | string | Branch Number |
>> account | string | Account |
>> isSpread | bool | Spread Order Flag |
>> positionKind | number | Position Kind : 1 Future 、2 Option |
>> symbol | string | Symbol |
>> expiryDate | number | Expiry Date |
>> strikePrice | number | Strike Price |
>> callPut | number | Call / Put : 1 Call 、2 Put |
>> buySell | BSAction | Buy/Sell Type : Buy 、Sell |
>> price | number | Cost Price |
>> origLots | number | Original Lot |
>> tradableLots | number | Available Lot |
>> orderType | FutOptOrderType | Order Type : New Open、Close Close、FdayTrade DayTrade |
>> currency | string | Currency |
>> marketPrice | string | Market Price |
>> initialMargin | number | Initial Margin |
>> maintenanceMargin | number | Maintenance Margin |
>> clearingMargin | number | Clearing Margin |
>> optValue | number | Option market value |
>> optLongValue | number | Long Option market value |
>> optShortValue | number | Short Option market value |
>> profitOrLoss | number | Profit or Loss |
>> premium | number | Premium |
Request Example
sdk.futoptAccounting.queryHybridPosition(account)
回傳範例
{
isSuccess: true,
data:[
{
date: "2024/04/08", // Transaction Date (str)
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)
tradableLots: 3, // Available 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", // Transaction Date (str)
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: 20600, // Strike Price (number)
callPut: "Call", // Call / Put : `Call` 、`Put` (CallPut)
buySell: "Buy", // Buy/Sell Type : `Buy` 、`Sell` (BSAction)
price: 10, // Cost Price (number)
origLots: 4, // Original Lot (number)
tradableLots: 4, // Available 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", // Transaction Date (str)
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: 19800, // Strike Price (number)
callPut: "Call", // Call / Put : `Call` 、`Put` (CallPut)
buySell: "Sell", // Buy/Sell Type : `Buy` 、`Sell` (BSAction)
price: 243, // Cost Price (number)
origLots: 2, // Original Lot (number)
tradableLots: 2, // Available 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", // Transaction Date (str)
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: 20000, // Strike Price (number)
callPut: "Put", // Call / Put : `Call` 、`Put` (CallPut)
buySell: "Buy", // Buy/Sell Type : `Buy` 、`Sell` (BSAction)
price: 344, // Cost Price (number)
origLots: 2, // Original Lot (number)
tradableLots: 2, // Available 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", // Transaction Date (str)
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)
tradableLots: 2, // Available 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", // Transaction Date (str)
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: 20100, // Strike Price (number)
callPut: "Call", // Call / Put : `Call` 、`Put` (CallPut)
buySell: "Buy", // Buy/Sell Type : `Buy` 、`Sell` (BSAction)
price: 185, // Cost Price (number)
origLots: 2, // Original Lot (number)
tradableLots: 2, // Available 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", // Transaction Date (str)
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: 20100, // Strike Price (number)
callPut: "Put", // Call / Put : `Call` 、`Put` (number)
buySell: "Buy", // Buy/Sell Type : `Buy`、`Sell` (BSAction)
price: 0, // Cost Price (number)
origLots: 2, // Original Lot (number)
tradableLots: 2, // Available Lot (number)
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)
}
],
}
]
}