| | |
| | | return_str = json.dumps({"code": 0}) |
| | | finally: |
| | | # 更新委托列表 |
| | | huaxin_trade_data_update.add_delegate_list() |
| | | huaxin_trade_data_update.add_delegate_list("接口") |
| | | huaxin_trade_data_update.add_money_list() |
| | | else: |
| | | raise Exception(resultJSON['msg']) |
| | |
| | | # 同步交易数据 |
| | | sync_type = data_json["data"]["type"] |
| | | if sync_type == "delegate_list": |
| | | huaxin_trade_data_update.add_delegate_list() |
| | | huaxin_trade_data_update.add_delegate_list("接口") |
| | | elif sync_type == "deal_list": |
| | | huaxin_trade_data_update.add_deal_list() |
| | | elif sync_type == "money": |