-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetTradeOrders.http
More file actions
86 lines (79 loc) · 2.95 KB
/
GetTradeOrders.http
File metadata and controls
86 lines (79 loc) · 2.95 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
### get trade orders by list of order numbers
POST {{apiUrl}} HTTP/1.1
SOAPAction: http://tempuri.org/GetTradeOrders
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<GetTradeOrders xmlns="http://tempuri.org/">
<req>
<Credentials>
<UserName>{{userName}}</UserName>
<Password>{{password}}</Password>
</Credentials>
<identify>{{identify}}</identify>
<Args>
<OrderNos>
<string>10001</string>
<string>10002</string>
</OrderNos>
</Args>
<Fields>
{{allOrderFields}}
</Fields>
</req>
</GetTradeOrders>
</soap:Body>
</soap:Envelope>
### get trade orders by states
POST {{apiUrl}} HTTP/1.1
SOAPAction: http://tempuri.org/GetTradeOrders
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<GetTradeOrders xmlns="http://tempuri.org/">
<req>
<Credentials>
<UserName>{{userName}}</UserName>
<Password>{{password}}</Password>
</Credentials>
<identify>{{identify}}</identify>
<Args>
<States>
<string>Filled</string>
<string>Settled</string>
</States>
</Args>
<Fields>
{{allOrderFields}}
</Fields>
</req>
</GetTradeOrders>
</soap:Body>
</soap:Envelope>
### get trade orders by created date range (last three days)
POST {{apiUrl}} HTTP/1.1
SOAPAction: http://tempuri.org/GetTradeOrders
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<GetTradeOrders xmlns="http://tempuri.org/">
<req>
<Credentials>
<UserName>{{userName}}</UserName>
<Password>{{password}}</Password>
</Credentials>
<identify>{{identify}}</identify>
<Args>
<CreatedDateFrom>{{$datetime iso8601 -3 d}}</CreatedDateFrom>
<CreatedDateTo>{{$datetime iso8601}}</CreatedDateTo>
</Args>
<Fields>
{{allOrderFields}}
</Fields>
</req>
</GetTradeOrders>
</soap:Body>
</soap:Envelope>