Skip to main content

Query Estimate Margin

queryEstimateMargin

Request Parameter

ParameterTypeMeaning
accountAccountAccount
orderObjectOrderObjectOrder Object

Result Response

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

EstimateMargin Parameter

Return type : Object

ParameterTypeMeaning
datestringQuery Date
currencystringCurrency
estimateMarginnumberEstimate Margin

Request Example

order = FutOptOrder(
BSAction.Buy,
"TXFE4",
"20900",
1,
MarketType.Future,
PriceType.Limit,
TimeInForce.ROD,
OrderType.Auto,
"From nodejs" // optional field
)


sdk.futopt.queryEstimateMargin(account, order)

Response Example

{
isSuccess: true,
data:
{
date: "2024/04/10", // Query Date (string)
currency: "TWD", // Currency (string)
estimateMargin: 179000 // Estimate Margin (number)
}
}