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