Skip to content

Commit 998d8b3

Browse files
committed
modified: tigeropen/trade/response/order_preview_response.py
modified: tigeropen/trade/trade_client.py
1 parent c37a038 commit 998d8b3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tigeropen/trade/response/order_preview_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"maintMargin": "maint_margin", "equityWithLoan": "equity_with_loan",
66
"minCommission": "min_commission", "maintMarginBefore": "maint_margin_before",
77
"initMargin": "init_margin", "equityWithLoanBefore": "equity_with_loan_before",
8-
"marginCurrency": "margin_currency", "maxCommission": "max_commission"}
8+
"marginCurrency": "margin_currency", "maxCommission": "max_commission",
9+
"warningText": "warning_text"}
910

1011

1112
class PreviewOrderResponse(TigerResponse):

tigeropen/trade/trade_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,9 @@ def preview_order(self, order):
428428
min_commission 预期最低佣金
429429
max_commission 预期最高佣金
430430
commission_currency 佣金货币币种
431+
432+
若无法下单, 返回的 dict 中仅有如下字段:
433+
warning_text 无法下单的原因
431434
"""
432435
params = PlaceModifyOrderParams()
433436
params.account = order.account

0 commit comments

Comments
 (0)