Skip to content

Commit c37a038

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

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

tigeropen/trade/response/order_preview_response.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
import json
2-
3-
tmp = {"initMarginBefore":324749.22,"commissionCurrency":"USD","maintMargin":279948.41,
4-
"equityWithLoan":704652.64,"minCommission":0.26051,"maintMarginBefore":273257.34,
5-
"initMargin":332121.39,"equityWithLoanBefore":700658.61,"marginCurrency":"USD",
6-
"maxCommission":1.34051}
7-
82
from tigeropen.common.response import TigerResponse
93

104
PREVIEW_ORDER_FIELD_MAPPING = {"initMarginBefore": "init_margin_before", "commissionCurrency": "commission_currency",

tigeropen/trade/trade_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def preview_order(self, order):
417417
"""
418418
预览订单
419419
:param order: Order 对象
420-
:return:
420+
:return: dict. 字段如下
421421
init_margin_before 下单前账户初始保证金
422422
init_margin 预计下单后的账户初始保证金
423423
maint_margin_before 下单前账户的维持保证金

0 commit comments

Comments
 (0)