Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 10be0f0

Browse files
committedMay 15, 2020
#update for default
1 parent 562a3d0 commit 10be0f0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
 

‎QUANTAXIS/QAARP/market_preset.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,18 @@ def get_code(self, code):
896896
code = code[0:-2]
897897
else:
898898
code = code[0:2]
899-
return self.table.get(str(code).upper(), {})
899+
return self.table.get(str(code).upper(), {
900+
'name': 'default',
901+
'unit_table': 1.0,
902+
'price_tick': 1.0,
903+
'buy_frozen_coeff': 1,
904+
'sell_frozen_coeff': 1,
905+
'exchange': 'stock_cn',
906+
'commission_coeff_peramount': 0.001,
907+
'commission_coeff_pervol': 0,
908+
'commission_coeff_today_peramount': 0.001,
909+
'commission_coeff_today_pervol': 0
910+
})
900911

901912
# 合约所属交易所代码
902913

0 commit comments

Comments
 (0)
Please sign in to comment.