Skip to content

Commit 8bc6fe5

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

11 files changed

Lines changed: 6092 additions & 5090 deletions

src/ChangeLog

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

3+
Version 3.0.25 (September 28, 2018)
4+
5+
* All - Added orderBook and PositionBook endpoints. Issue#29
6+
(https://github.com/oanda/v20-python/issues/29)
7+
8+
9+
Version 3.0.24 (May 11, 2018)
10+
11+
* Java - Added support for Accept-Datetime-Format and additional
12+
custom headers. Issue#8 (https://github.com/oanda/v20-java/issues/8)
13+
14+
15+
Version 3.0.23 (May 04, 2018)
16+
17+
* Java - Fixed using null in a TradeSetDependentOrdersRequest Issue#7
18+
(https://github.com/oanda/v20-java/issues/7)
19+
20+
321
Version 3.0.22 (April 11, 2018)
422

523
* Various documentation and example improvements

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.22.0",
28+
"version": "3.0.25.0",
2929
"description": "OANDA v20 bindings for Python",
3030
"long_description": read("README.rst"),
3131
"author": "OANDA Corporation",

src/v20/__init__.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import requests
2-
from v20 import account
3-
from v20 import order
2+
from v20 import instrument
43
from v20 import position
5-
from v20 import user
4+
from v20 import trade
5+
from v20 import site
6+
from v20 import primitives
7+
from v20 import account
68
from v20 import transaction
9+
from v20 import user
710
from v20 import pricing
8-
from v20 import primitives
9-
from v20 import site
10-
from v20 import trade
11-
from v20 import instrument
11+
from v20 import order
12+
from v20 import pricing_common
1213
from v20.response import Response
1314
from v20.errors import V20ConnectionError, V20Timeout
1415

@@ -74,7 +75,7 @@ def __init__(
7475
if application != "":
7576
extensions = " ({})".format(application)
7677

77-
oanda_agent = "v20-python/3.0.22{}".format(extensions)
78+
oanda_agent = "v20-python/3.0.25{}".format(extensions)
7879

7980
#
8081
# Context headers to add to every request sent to the server
@@ -131,16 +132,17 @@ def __init__(
131132
#
132133
self.poll_timeout = poll_timeout
133134

134-
self.account = account.EntitySpec(self)
135-
self.order = order.EntitySpec(self)
135+
self.instrument = instrument.EntitySpec(self)
136136
self.position = position.EntitySpec(self)
137-
self.user = user.EntitySpec(self)
137+
self.trade = trade.EntitySpec(self)
138+
self.site = site.EntitySpec(self)
139+
self.primitives = primitives.EntitySpec(self)
140+
self.account = account.EntitySpec(self)
138141
self.transaction = transaction.EntitySpec(self)
142+
self.user = user.EntitySpec(self)
139143
self.pricing = pricing.EntitySpec(self)
140-
self.primitives = primitives.EntitySpec(self)
141-
self.site = site.EntitySpec(self)
142-
self.trade = trade.EntitySpec(self)
143-
self.instrument = instrument.EntitySpec(self)
144+
self.order = order.EntitySpec(self)
145+
self.pricing_common = pricing_common.EntitySpec(self)
144146

145147

146148
def set_header(self, key, value):

src/v20/account.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ def __init__(self, **kwargs):
147147
#
148148
self.hedgingEnabled = kwargs.get("hedgingEnabled")
149149

150+
#
151+
# The date/time of the last order that was filled for this account.
152+
#
153+
self.lastOrderFillTimestamp = kwargs.get("lastOrderFillTimestamp")
154+
150155
#
151156
# The total unrealized profit/loss for all Trades currently open in the
152157
# Account.
@@ -782,6 +787,11 @@ def __init__(self, **kwargs):
782787
#
783788
self.hedgingEnabled = kwargs.get("hedgingEnabled")
784789

790+
#
791+
# The date/time of the last order that was filled for this account.
792+
#
793+
self.lastOrderFillTimestamp = kwargs.get("lastOrderFillTimestamp")
794+
785795
#
786796
# The total unrealized profit/loss for all Trades currently open in the
787797
# Account.

0 commit comments

Comments
 (0)