bitmex-api 0.0.65__py3-none-any.whl → 0.0.67__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bitmex/ccxt/__init__.py +1 -1
- bitmex/ccxt/async_support/__init__.py +1 -1
- bitmex/ccxt/async_support/base/exchange.py +8 -5
- bitmex/ccxt/base/exchange.py +13 -9
- bitmex/ccxt/pro/__init__.py +39 -1
- {bitmex_api-0.0.65.dist-info → bitmex_api-0.0.67.dist-info}/METADATA +1 -1
- {bitmex_api-0.0.65.dist-info → bitmex_api-0.0.67.dist-info}/RECORD +8 -8
- {bitmex_api-0.0.65.dist-info → bitmex_api-0.0.67.dist-info}/WHEEL +0 -0
bitmex/ccxt/__init__.py
CHANGED
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
|
|
26
26
|
|
27
27
|
# ----------------------------------------------------------------------------
|
28
28
|
|
29
|
-
__version__ = '4.4.
|
29
|
+
__version__ = '4.4.88'
|
30
30
|
|
31
31
|
# ----------------------------------------------------------------------------
|
32
32
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# -----------------------------------------------------------------------------
|
4
4
|
|
5
|
-
__version__ = '4.4.
|
5
|
+
__version__ = '4.4.88'
|
6
6
|
|
7
7
|
# -----------------------------------------------------------------------------
|
8
8
|
|
@@ -282,7 +282,10 @@ class Exchange(BaseExchange):
|
|
282
282
|
currencies = None
|
283
283
|
if self.has['fetchCurrencies'] is True:
|
284
284
|
currencies = await self.fetch_currencies()
|
285
|
+
self.options['cachedCurrencies'] = currencies
|
285
286
|
markets = await self.fetch_markets(params)
|
287
|
+
if 'cachedCurrencies' in self.options:
|
288
|
+
del self.options['cachedCurrencies']
|
286
289
|
return self.set_markets(markets, currencies)
|
287
290
|
|
288
291
|
|
@@ -903,15 +906,15 @@ class Exchange(BaseExchange):
|
|
903
906
|
if self.enableRateLimit:
|
904
907
|
cost = self.calculate_rate_limiter_cost(api, method, path, params, config)
|
905
908
|
await self.throttle(cost)
|
909
|
+
retries = None
|
910
|
+
retries, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailure', 0)
|
911
|
+
retryDelay = None
|
912
|
+
retryDelay, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailureDelay', 0)
|
906
913
|
self.lastRestRequestTimestamp = self.milliseconds()
|
907
914
|
request = self.sign(path, api, method, params, headers, body)
|
908
915
|
self.last_request_headers = request['headers']
|
909
916
|
self.last_request_body = request['body']
|
910
917
|
self.last_request_url = request['url']
|
911
|
-
retries = None
|
912
|
-
retries, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailure', 0)
|
913
|
-
retryDelay = None
|
914
|
-
retryDelay, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailureDelay', 0)
|
915
918
|
for i in range(0, retries + 1):
|
916
919
|
try:
|
917
920
|
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
|
bitmex/ccxt/base/exchange.py
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
# -----------------------------------------------------------------------------
|
6
6
|
|
7
|
-
__version__ = '4.4.
|
7
|
+
__version__ = '4.4.88'
|
8
8
|
|
9
9
|
# -----------------------------------------------------------------------------
|
10
10
|
|
@@ -311,6 +311,7 @@ class Exchange(object):
|
|
311
311
|
base_currencies = None
|
312
312
|
quote_currencies = None
|
313
313
|
currencies = None
|
314
|
+
|
314
315
|
options = None # Python does not allow to define properties in run-time with setattr
|
315
316
|
isSandboxModeEnabled = False
|
316
317
|
accounts = None
|
@@ -1533,7 +1534,10 @@ class Exchange(object):
|
|
1533
1534
|
currencies = None
|
1534
1535
|
if self.has['fetchCurrencies'] is True:
|
1535
1536
|
currencies = self.fetch_currencies()
|
1537
|
+
self.options['cachedCurrencies'] = currencies
|
1536
1538
|
markets = self.fetch_markets(params)
|
1539
|
+
if 'cachedCurrencies' in self.options:
|
1540
|
+
del self.options['cachedCurrencies']
|
1537
1541
|
return self.set_markets(markets, currencies)
|
1538
1542
|
|
1539
1543
|
def fetch_markets(self, params={}):
|
@@ -4166,11 +4170,11 @@ class Exchange(object):
|
|
4166
4170
|
raise NotSupported(self.id + ' - ' + networkCode + ' network did not return any result for ' + currencyCode)
|
4167
4171
|
else:
|
4168
4172
|
# if networkCode was provided by user, we should check it after response, referenced exchange doesn't support network-code during request
|
4169
|
-
|
4170
|
-
if
|
4171
|
-
chosenNetworkId =
|
4173
|
+
networkIdOrCode = networkCode if isIndexedByUnifiedNetworkCode else self.network_code_to_id(networkCode, currencyCode)
|
4174
|
+
if networkIdOrCode in indexedNetworkEntries:
|
4175
|
+
chosenNetworkId = networkIdOrCode
|
4172
4176
|
else:
|
4173
|
-
raise NotSupported(self.id + ' - ' +
|
4177
|
+
raise NotSupported(self.id + ' - ' + networkIdOrCode + ' network was not found for ' + currencyCode + ', use one of ' + ', '.join(availableNetworkIds))
|
4174
4178
|
else:
|
4175
4179
|
if responseNetworksLength == 0:
|
4176
4180
|
raise NotSupported(self.id + ' - no networks were returned for ' + currencyCode)
|
@@ -4458,15 +4462,15 @@ class Exchange(object):
|
|
4458
4462
|
if self.enableRateLimit:
|
4459
4463
|
cost = self.calculate_rate_limiter_cost(api, method, path, params, config)
|
4460
4464
|
self.throttle(cost)
|
4465
|
+
retries = None
|
4466
|
+
retries, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailure', 0)
|
4467
|
+
retryDelay = None
|
4468
|
+
retryDelay, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailureDelay', 0)
|
4461
4469
|
self.lastRestRequestTimestamp = self.milliseconds()
|
4462
4470
|
request = self.sign(path, api, method, params, headers, body)
|
4463
4471
|
self.last_request_headers = request['headers']
|
4464
4472
|
self.last_request_body = request['body']
|
4465
4473
|
self.last_request_url = request['url']
|
4466
|
-
retries = None
|
4467
|
-
retries, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailure', 0)
|
4468
|
-
retryDelay = None
|
4469
|
-
retryDelay, params = self.handle_option_and_params(params, path, 'maxRetriesOnFailureDelay', 0)
|
4470
4474
|
for i in range(0, retries + 1):
|
4471
4475
|
try:
|
4472
4476
|
return self.fetch(request['url'], request['method'], request['headers'], request['body'])
|
bitmex/ccxt/pro/__init__.py
CHANGED
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
|
|
8
8
|
|
9
9
|
# ----------------------------------------------------------------------------
|
10
10
|
|
11
|
-
__version__ = '4.4.
|
11
|
+
__version__ = '4.4.88'
|
12
12
|
|
13
13
|
# ----------------------------------------------------------------------------
|
14
14
|
|
@@ -127,6 +127,44 @@ from ccxt.base.errors import error_hierarchy # noqa: F4
|
|
127
127
|
|
128
128
|
|
129
129
|
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
130
168
|
|
131
169
|
|
132
170
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
bitmex/__init__.py,sha256=YoXAuxG_VioYinNV_H2dBOxO7R1bhKl6aL_6s6TfuWg,246
|
2
|
-
bitmex/ccxt/__init__.py,sha256=
|
2
|
+
bitmex/ccxt/__init__.py,sha256=ZqbHFMhOl46vjGvg9vtQasvCM1DvbllYQ0TA_egiVFw,6048
|
3
3
|
bitmex/ccxt/bitmex.py,sha256=U7MzNIUW_YBtBH2pMXOXPZ9oo25j2n_-iAwDWSDpd58,131801
|
4
4
|
bitmex/ccxt/abstract/bitmex.py,sha256=v15OP-vSO_eotD6KVf1BgKrbPxCPl2eXXYIuzWF1dl4,10774
|
5
|
-
bitmex/ccxt/async_support/__init__.py,sha256=
|
5
|
+
bitmex/ccxt/async_support/__init__.py,sha256=ohj_BbvtzomnjI2LdKnTUf3hhEa1kyqO76-Vz9S_XdM,4781
|
6
6
|
bitmex/ccxt/async_support/bitmex.py,sha256=ySXncjhPs47qdGGkNgjZppMIfHf4UmqKOungNwz-EQk,132379
|
7
7
|
bitmex/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
8
|
-
bitmex/ccxt/async_support/base/exchange.py,sha256=
|
8
|
+
bitmex/ccxt/async_support/base/exchange.py,sha256=fbgJlT00ihhKWP1xWzUWIR32BYHsi6WuAPxDH_Toe9Q,119161
|
9
9
|
bitmex/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
|
10
10
|
bitmex/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
|
11
11
|
bitmex/ccxt/async_support/base/ws/aiohttp_client.py,sha256=Y5HxAVXyyYduj6b6SbbUZETlq3GrVMzrkW1r-TMgpb8,6329
|
@@ -18,10 +18,10 @@ bitmex/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9pr
|
|
18
18
|
bitmex/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
19
19
|
bitmex/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
|
20
20
|
bitmex/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
|
21
|
-
bitmex/ccxt/base/exchange.py,sha256=
|
21
|
+
bitmex/ccxt/base/exchange.py,sha256=5k_lyLt0b6iu84H4u7pq1TpLtLC-jUPxlqmG0gQfElo,328200
|
22
22
|
bitmex/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
23
23
|
bitmex/ccxt/base/types.py,sha256=IbLO7Ni-plO36xlOdJQFqujSJBq0q9qll009ShZ0M_U,11468
|
24
|
-
bitmex/ccxt/pro/__init__.py,sha256=
|
24
|
+
bitmex/ccxt/pro/__init__.py,sha256=fuIe6MRU2JEro6YPsITwTdCCaWZIyGz1GgW_DHyoWk8,4221
|
25
25
|
bitmex/ccxt/pro/bitmex.py,sha256=5gpicgex_am9Km9ZsZpMKBSKX-SFFAD3PPuv9r-nNdA,74693
|
26
26
|
bitmex/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
|
27
27
|
bitmex/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
|
@@ -282,6 +282,6 @@ bitmex/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
|
|
282
282
|
bitmex/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
|
283
283
|
bitmex/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
284
284
|
bitmex/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
|
285
|
-
bitmex_api-0.0.
|
286
|
-
bitmex_api-0.0.
|
287
|
-
bitmex_api-0.0.
|
285
|
+
bitmex_api-0.0.67.dist-info/METADATA,sha256=fNR3yfbFrUQx6X4ecY3yT5lw1uurxggczfhEa-zT5X8,10822
|
286
|
+
bitmex_api-0.0.67.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
287
|
+
bitmex_api-0.0.67.dist-info/RECORD,,
|
File without changes
|