Skip to main content

Query Estimate Margin

QueryEstimateMargin

Request Parameter

ParameterTypeMeaning
accountAccountAccount
orderObjectOrderObjectOrder Object

Result Reponse

ParameterTypeMeaning
isSuccessboolInterface result
dataEstimateMarginEstimateMargin is returned
messagestringisSuccess = False error description is returned

EstimateMargin Parameter

Return type : Object

ParameterTypeMeaning
datestringQuery Date
currencystringCurrency
estimateMargindoubleEstimate Margin

Request Example

order = FutOptOrder(
BsAction.Buy,
"TXFE4",
"20890",
1,
MarketType.Future,
PriceType.Limit,
TimeInForce.Rod,
OrderType.Auto,
"From csharp" // optional field
)



var estimate = sdk.FutOpt.QueryEstimateMargin(account, order);
Console.WriteLine(estimate.data);

Response Example

{
isSuccess = True,
message = ,
data = EstimateMargin{
date = 2024/04/10, // Query Date (string)
currency = TWD, // Currency (string)
estimateMargin = 179000 // Estimate Margin (double)
}
}