-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetInstruments.http
More file actions
77 lines (68 loc) · 2.36 KB
/
GetInstruments.http
File metadata and controls
77 lines (68 loc) · 2.36 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
### get all share instruments (based on type)
// types of instruments
// 1 = Shares
// 2 = Mutual Funds
// 3 = ETFs
// 4 = Futures
// 5 = Options
// 6 = Warrants
// 7 = Certificates
// 8 = Commodities
// 9 = Indices
// 10 = Bonds
// 11 = Interest Earnings
// 12 = Structured products
// 13 = Loans
@instrumentType = 1
POST {{apiUrl}} HTTP/1.1
SOAPAction: "http://tempuri.org/GetInstruments"
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<s:Body>
<GetInstruments xmlns="http://tempuri.org/">
<req>
<Credentials>
<UserName>{{userName}}</UserName>
<Password>{{password}}</Password>
</Credentials>
<identify>{{identify}}</identify>
<Args>
<InstrumentType>{{instrumentType}}</InstrumentType>
</Args>
<Fields>
{{allInstrumentFields}}
</Fields>
</req>
</GetInstruments>
</s:Body>
</s:Envelope>
### get all instruments on specific market and currency code
@marketMIC = XNAS
@currencyCode = USD
POST {{apiUrl}} HTTP/1.1
SOAPAction: "http://tempuri.org/GetInstruments"
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<s:Body>
<GetInstruments xmlns="http://tempuri.org/">
<req>
<Credentials>
<UserName>{{userName}}</UserName>
<Password>{{password}}</Password>
</Credentials>
<identify>{{identify}}</identify>
<Args>
<MICs>
<string>{{marketMIC}}</string>
</MICs>
<CurrencyCode>{{currencyCode}}</CurrencyCode>
</Args>
<Fields>
{{allInstrumentFields}}
</Fields>
</req>
</GetInstruments>
</s:Body>
</s:Envelope>