Skip to content

Commit a398df1

Browse files
committed
Auto-generated v20 API changes
1 parent e07aac6 commit a398df1

16 files changed

Lines changed: 4864 additions & 3307 deletions

src/ChangeLog

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
OANDA v20 API Change Log
22

3+
Version 3.0.22 (April 11, 2018)
4+
5+
* Various documentation and example improvements
6+
7+
* Added Guaranteed Stop Loss Order support
8+
9+
10+
Version 3.0.21 (November 08, 2017)
11+
12+
* Include error code and error message in request exceptions (Java)
13+
14+
* Improved README.md (Java)
15+
16+
17+
Version 3.0.20 (September 26, 2017)
18+
19+
* Added toString() methods to Java classes
20+
21+
22+
Version 3.0.19 (September 12, 2017)
23+
24+
* Corrected encoding of CSV query parameters in Java
25+
26+
327
Version 3.0.18 (May 12, 2017)
428

529
* Corrected handling of Collections in Java implementation

src/README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ Documentation
1717

1818
For documentation, usage and examples, see: http://developer.oanda.com/rest-live-v20/introduction
1919
and https://github.com/oanda/v20-python-samples
20-

src/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def main():
2525
# setup dictionary
2626
setup_options = {
2727
"name": "v20",
28-
"version": "3.0.18.16",
28+
"version": "3.0.22.0",
2929
"description": "OANDA v20 bindings for Python",
3030
"long_description": read("README.rst"),
3131
"author": "OANDA Corporation",

src/v20/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from v20 import transaction
77
from v20 import pricing
88
from v20 import primitives
9+
from v20 import site
910
from v20 import trade
1011
from v20 import instrument
1112
from v20.response import Response
@@ -73,7 +74,7 @@ def __init__(
7374
if application != "":
7475
extensions = " ({})".format(application)
7576

76-
oanda_agent = "v20-python/3.0.18{}".format(extensions)
77+
oanda_agent = "v20-python/3.0.22{}".format(extensions)
7778

7879
#
7980
# Context headers to add to every request sent to the server
@@ -137,6 +138,7 @@ def __init__(
137138
self.transaction = transaction.EntitySpec(self)
138139
self.pricing = pricing.EntitySpec(self)
139140
self.primitives = primitives.EntitySpec(self)
141+
self.site = site.EntitySpec(self)
140142
self.trade = trade.EntitySpec(self)
141143
self.instrument = instrument.EntitySpec(self)
142144

@@ -307,7 +309,7 @@ def request(self, request):
307309
raise V20Timeout(url, "connect")
308310
except requests.exceptions.ReadTimeout:
309311
raise V20Timeout(url, "read")
310-
312+
311313
request.headers = http_response.request.headers
312314

313315
response = Response(

0 commit comments

Comments
 (0)