You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-21Lines changed: 11 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,9 @@ See below for currently implemented API class methods, these are explained furth
37
37
38
38
| Method | Public | ISA | Equity | CFD |
39
39
| --- | --- | --- | --- | --- |
40
-
| 1 - getInstrument() | X | X | X |X|
41
-
| 2 - getAllInstruments() | X | X | X |X|
42
-
| 3 - getFundamentals() | X | X | X |X|
40
+
| 1 - getInstrument() | X | X | X ||
41
+
| 2 - getAllInstruments() | X | X | X ||
42
+
| 3 - getFundamentals() | X | X | X ||
43
43
| 4 - getMinMax() || X | X ||
44
44
| 5 - getSettings() || X | X ||
45
45
| 6 - getChartData() | X | X | X | X |
@@ -51,7 +51,7 @@ Retrieve publicly available information on companies and their financial informa
51
51
52
52
Symbols can be optionally loaded at startup, this will take approxuimately 30 seconds, this is requried for symbol reference conversion.
53
53
54
-
Symbol reference conversion refers to being able to use an isntruments name short hand, pretty name, code, ISIN (International Securities Identification Number), or ID. These are referred to in the Trading212 API and can be converted to one another through the use of helper functions. Code refers to the ticker identifier, name is a shorthand of the pretty name.
54
+
Symbol reference conversion refers to being able to use an instruments shortName, longName, ISIN (International Securities Identification Number), or ticker. These are referred to in the Trading212 API and can be converted to one another through the use of helper functions. Code refers to the ticker identifier, name is a shorthand of the pretty name.
### 1 - getInstrument() - Get specific instrument details instead of all of them
95
-
96
-
```python
97
-
instance.getAllInstruments(code="TSLA")
98
-
```
99
-
100
-
Get instrument details using position code from the secret API, note this is not the shorthand name, ISIN or stock ticker. Ideal for updating existing data on a stock of interest. This is far faster than loading all instruments so if you know the isntrument code, then use this!
101
-
102
-
#### Example result [here](examples/1.json)
94
+
1 - getInstrument() has been removed, use instrument search instead
103
95
104
96
### 2 - getAllInstruments() - Get all securities on Trading212!
105
97
106
98
```python
107
99
instance.getAllInstruments()
108
100
```
109
101
110
-
This returns all the securities on Trading212 Equity and ISA, be warned it's over 9,000 and constantly growing
111
-
112
-
Result format is the same as a single instrument but returns a list of dictionaries
102
+
This returns all the securities on Trading212 Equity and ISA, some tickers are also reused by CFD but the lists have been seperated as of 01/04/2021
113
103
114
-
#### Example result [here](examples/2.json)
104
+
#### Example result [here](examples/2.json) this example has beenn truncated
115
105
116
106
### 3 - getFundamentals() - Get company fundamentals
117
107
@@ -126,20 +116,20 @@ Takes an isin, returns a requested companies details
126
116
### 4 - getMinMax() - Get min and max position sizes
127
117
128
118
```python
129
-
instance.getMinMax(code="GYMl_EQ")
119
+
instance.getMinMax(ticker="GYMl_EQ")
130
120
```
131
121
132
-
Takes a company code. Gets minBuy, maxBuy, minSell, maxSell values in £, maxSellQuantity is number of shares. Not sure what sellThreshold is. The sell parameters only appear for UK stocks for some reason.
122
+
Takes a company ticker. Gets minBuy, maxBuy, minSell, maxSell values in £, maxSellQuantity is number of shares. Not sure what sellThreshold is. The sell parameters only appear for UK stocks for some reason.
133
123
134
124
#### Example result [here](examples/4.json)
135
125
136
126
### 5 - getSettings() - Get position trade settings
137
127
138
128
```python
139
-
instance.getSettings(code="BOOHl_EQ")
129
+
instance.getSettings(ticker="BOOHl_EQ")
140
130
```
141
131
142
-
Takes instrument code, returns maxBuy and maxSell in shares for the account and max buy and sell that is technically possible on the exchange, also has minTrade and if the instrument is suspended.
132
+
Takes instrument ticker, returns maxBuy and maxSell in shares for the account and max buy and sell that is technically possible on the exchange, also has minTrade and if the instrument is suspended.
0 commit comments