diff options
Diffstat (limited to 'ccxt_wrapper.py')
-rw-r--r-- | ccxt_wrapper.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ccxt_wrapper.py b/ccxt_wrapper.py index 97f359f..260d49d 100644 --- a/ccxt_wrapper.py +++ b/ccxt_wrapper.py | |||
@@ -21,7 +21,7 @@ class poloniexE(poloniex): | |||
21 | Wrapped to allow retry of non-posting requests" | 21 | Wrapped to allow retry of non-posting requests" |
22 | """ | 22 | """ |
23 | 23 | ||
24 | origin_request = super(poloniexE, self).request | 24 | origin_request = super().request |
25 | kwargs = { | 25 | kwargs = { |
26 | "api": api, | 26 | "api": api, |
27 | "method": method, | 27 | "method": method, |
@@ -38,7 +38,7 @@ class poloniexE(poloniex): | |||
38 | return origin_request(path, **kwargs) | 38 | return origin_request(path, **kwargs) |
39 | 39 | ||
40 | def __init__(self, *args, **kwargs): | 40 | def __init__(self, *args, **kwargs): |
41 | super(poloniexE, self).__init__(*args, **kwargs) | 41 | super().__init__(*args, **kwargs) |
42 | 42 | ||
43 | # For requests logging | 43 | # For requests logging |
44 | self.session.origin_request = self.session.request | 44 | self.session.origin_request = self.session.request |
@@ -223,7 +223,7 @@ class poloniexE(poloniex): | |||
223 | return all_balances | 223 | return all_balances |
224 | 224 | ||
225 | def create_exchange_order(self, symbol, type, side, amount, price=None, params={}): | 225 | def create_exchange_order(self, symbol, type, side, amount, price=None, params={}): |
226 | return super(poloniexE, self).create_order(symbol, type, side, amount, price=price, params=params) | 226 | return super().create_order(symbol, type, side, amount, price=price, params=params) |
227 | 227 | ||
228 | def create_margin_order(self, symbol, type, side, amount, price=None, lending_rate=None, params={}): | 228 | def create_margin_order(self, symbol, type, side, amount, price=None, lending_rate=None, params={}): |
229 | if type == 'market': | 229 | if type == 'market': |