Skip to main content

商品保證金查詢

queryEstimateMargin

輸入參數

參數類別說明
accountAccount帳號
orderObjectOrderObject委託物件

Result 回傳

參數類別說明
isSuccessbool是否成功
dataObject回傳配額資訊
messagestring ? (optional)當isSuccess = false 回傳錯誤訊息

EstimateMargin 欄位

Return type : Object

參數類別說明
datestring查詢日期
currencystring幣別
estimateMarginnumber預估保證金

請求範例

order = FutOptOrder(
BSAction.Buy,
"TXFE4",
"20900",
1,
FutOptMarketType.Future,
FutOptPriceType.Limit,
TimeInForce.ROD,
FutOptOrderType.Auto,
"From nodejs" // optional field
)


sdk.futopt.queryEstimateMargin(account, order)

回傳範例

{
isSuccess: true,
data:
{
date: "2024/04/10", // 日期 (string)
currency: "TWD", // 幣別 (string)
estimateMargin: 179000 // 預估保證金 (number)
}
}