vipCustomerLoan_list.py 1.24 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/8/31 14:43
@Auth : wlm
@File :createAndTrade.py
@IDE :PyCharm
"""
"""
大客户模式——列表查询
"""

from commons.MySession import hg

class vipCustomerLoan_list():

    def __init__(self):
        self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/vipCustomerLoan/list"
        self.header = {
                    "Connection" :"keep-alive",
                    "Content-Length" :"130",
                    "Accept" :"application/json, text/plain, */*",
                    "UAP_accessToken" :"demo",
                    "ignoreCancelToken" :"true",
                    "UAP_refreshToken" :"demo",
                    "Content-Type" :"application/json;charset=UTF-8",
                    "Accept-Language" :"zh-CN,zh;q=0.9",
                    "Accept-Encoding" :"gzip, deflate"}
        self.body = {
                    "current": 1,
                    "size": 10,
                    "customerId": 141992,
                    "customerAccountId": 107792,
                    "settleDateStart": "2021-09-07",
                    "settleDateEnd": "2021-09-07"}


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