vipCustomerLoan_list.py
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- 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())