1
2
3
4
5
6
7
8
9
10
11
12
| from trade import trade_constant
|
|
| def is_can_order_by_state(state):
| """
| 根据状态判断是否可以下单
| @param state:
| @return:
| """
| if state == trade_constant.TRADE_STATE_BUY_DELEGATED or state == trade_constant.TRADE_STATE_BUY_PLACE_ORDER or state == trade_constant.TRADE_STATE_BUY_SUCCESS:
| return False
| return True
|
|