|
1 | 1 | import requests |
2 | | -from v20 import account |
3 | | -from v20 import order |
| 2 | +from v20 import instrument |
4 | 3 | 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 |
6 | 8 | from v20 import transaction |
| 9 | +from v20 import user |
7 | 10 | 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 |
12 | 13 | from v20.response import Response |
13 | 14 | from v20.errors import V20ConnectionError, V20Timeout |
14 | 15 |
|
@@ -74,7 +75,7 @@ def __init__( |
74 | 75 | if application != "": |
75 | 76 | extensions = " ({})".format(application) |
76 | 77 |
|
77 | | - oanda_agent = "v20-python/3.0.22{}".format(extensions) |
| 78 | + oanda_agent = "v20-python/3.0.25{}".format(extensions) |
78 | 79 |
|
79 | 80 | # |
80 | 81 | # Context headers to add to every request sent to the server |
@@ -131,16 +132,17 @@ def __init__( |
131 | 132 | # |
132 | 133 | self.poll_timeout = poll_timeout |
133 | 134 |
|
134 | | - self.account = account.EntitySpec(self) |
135 | | - self.order = order.EntitySpec(self) |
| 135 | + self.instrument = instrument.EntitySpec(self) |
136 | 136 | 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) |
138 | 141 | self.transaction = transaction.EntitySpec(self) |
| 142 | + self.user = user.EntitySpec(self) |
139 | 143 | 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) |
144 | 146 |
|
145 | 147 |
|
146 | 148 | def set_header(self, key, value): |
|
0 commit comments