Skip to main content

商品保證金查詢

QueryEstimateMargin

輸入參數

參數類別說明
accountAccount帳號
orderObjectOrderObject委託內容

Result 回傳

參數類別說明
isSuccessbool是否成功
dataEstimateMargin回傳保證金資訊
messagestring當isSuccess = False 回傳錯誤訊息

EstimateMargin 欄位

Return type : Object

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

請求範例

order = FutOptOrder(
BsAction.Buy,
"TXFE4",
"20890",
1,
FutOptMarketType.Future,
FutOptPriceType.Limit,
TimeInForce.Rod,
FutOptOrderType.Auto,
"From csharp" // optional field
)



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

回傳範例

{
isSuccess = True,
message = ,
data = EstimateMargin{
date = 2024/04/10, // 日期 (string)
currency = TWD, // 幣別 (string)
estimateMargin = 179000 // 預估保證金 (double)
}
}