| | |
| | | # 'orderLocalId': '0190000809', 'orderStatus': '7', 'statusMsg': |
| | | # '10932:产品状态资源访问授权不足', 'orderSysID': '110010190000809', 'accountId': |
| | | # '38800001334901'}} |
| | | resultJSON = trade_api.parseResponse(resultJSON) |
| | | if resultJSON['code'] == 0: |
| | | resultJSON = resultJSON['data'] |
| | | statusCode = resultJSON['orderStatus'] |
| | | if statusCode == huaxin_util.TORA_TSTP_OST_Rejected: |
| | | # 交易所拒绝 |
| | |
| | | trade_huaxin.order_success(resultJSON['securityId'], resultJSON['accountId'], |
| | | resultJSON['orderSysID']) |
| | | return_str = json.dumps({"code": 0}) |
| | | else: |
| | | raise Exception(resultJSON['msg']) |
| | | |
| | | except Exception as e: |
| | | raise e |