specialLoanQuery.py 1.07 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/8/31 14:43
@Auth : wlm
@File :createAndTrade.py
@IDE :PyCharm
"""
"""
大客户模式——查询客户的订单信息
"""

from commons.MySession import hg

class specialLoanQuery():

    def __init__(self):
        self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/aggregation/specialLoanQuery"
        self.header = {
                    "Connection" :"keep-alive",
                    "Accept" :"application/json, text/plain, */*",
                    "UAP_accessToken" :".-.--",
                    "ignoreCancelToken" :"true",
                    "UAP_refreshToken" :".-.--",
                    "Content-Type" :"application/json;charset=UTF-8",
                    "Accept-Language" :"zh-CN,zh;q=0.9",
                    "Accept-Encoding" :"gzip, deflate"
                }
        self.body = {"accountId":107792,"tradeDateStart":"2021-09-07","tradeDateEnd":"2021-09-07","customerId":141992}


tt = specialLoanQuery()
re = hg.post(url = tt.url,json = tt.body,headers = tt.header,proxies=hg.myproxies)
print(re.json())