Query Estimate Margin
QueryEstimateMargin
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
orderObject | OrderObject | Order Object |
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | EstimateMargin | EstimateMargin is returned |
message | string | isSuccess = False error description is returned |
EstimateMargin Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | string | Query Date |
currency | string | Currency |
estimateMargin | double | Estimate 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)
}
}