bitmex-api 0.0.26__py3-none-any.whl → 0.0.27__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 +5 -1
- bitmex/ccxt/async_support/bitmex.py +6 -1
- bitmex/ccxt/base/errors.py +0 -6
- bitmex/ccxt/base/exchange.py +1 -1
- bitmex/ccxt/bitmex.py +6 -1
- bitmex/ccxt/pro/__init__.py +1 -1
- {bitmex_api-0.0.26.dist-info → bitmex_api-0.0.27.dist-info}/METADATA +1 -1
- {bitmex_api-0.0.26.dist-info → bitmex_api-0.0.27.dist-info}/RECORD +11 -11
- {bitmex_api-0.0.26.dist-info → bitmex_api-0.0.27.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.80'
|
30
30
|
|
31
31
|
# ----------------------------------------------------------------------------
|
32
32
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# -----------------------------------------------------------------------------
|
4
4
|
|
5
|
-
__version__ = '4.4.
|
5
|
+
__version__ = '4.4.80'
|
6
6
|
|
7
7
|
# -----------------------------------------------------------------------------
|
8
8
|
|
@@ -114,6 +114,10 @@ class Exchange(BaseExchange):
|
|
114
114
|
if self.ssl_context is None:
|
115
115
|
# Create our SSL context object with our CA cert file
|
116
116
|
self.ssl_context = ssl.create_default_context(cafile=self.cafile) if self.verify else self.verify
|
117
|
+
if (self.ssl_context and self.safe_bool(self.options, 'include_OS_certificates', False)):
|
118
|
+
os_default_paths = ssl.get_default_verify_paths()
|
119
|
+
if os_default_paths.cafile and os_default_paths.cafile != self.cafile:
|
120
|
+
self.ssl_context.load_verify_locations(cafile=os_default_paths.cafile)
|
117
121
|
|
118
122
|
if self.own_session and self.session is None:
|
119
123
|
# Pass this SSL context to aiohttp and create a TCPConnector
|
@@ -758,6 +758,11 @@ class bitmex(Exchange, ImplicitAPI):
|
|
758
758
|
maxOrderQty = self.safe_number(market, 'maxOrderQty')
|
759
759
|
initMargin = self.safe_string(market, 'initMargin', '1')
|
760
760
|
maxLeverage = self.parse_number(Precise.string_div('1', initMargin))
|
761
|
+
# subtype should be None for spot markets
|
762
|
+
if spot:
|
763
|
+
isInverse = None
|
764
|
+
isQuanto = None
|
765
|
+
linear = None
|
761
766
|
return {
|
762
767
|
'id': id,
|
763
768
|
'symbol': symbol,
|
@@ -807,7 +812,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
807
812
|
'max': maxOrderQty if positionIsQuote else None,
|
808
813
|
},
|
809
814
|
},
|
810
|
-
'created':
|
815
|
+
'created': None, # 'listing' field is buggy, e.g. 2200-02-01T00:00:00.000Z
|
811
816
|
'info': market,
|
812
817
|
}
|
813
818
|
|
bitmex/ccxt/base/errors.py
CHANGED
@@ -1,9 +1,3 @@
|
|
1
|
-
# ----------------------------------------------------------------------------
|
2
|
-
|
3
|
-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
4
|
-
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
5
|
-
# EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
6
|
-
|
7
1
|
error_hierarchy = {
|
8
2
|
'BaseError': {
|
9
3
|
'ExchangeError': {
|
bitmex/ccxt/base/exchange.py
CHANGED
bitmex/ccxt/bitmex.py
CHANGED
@@ -758,6 +758,11 @@ class bitmex(Exchange, ImplicitAPI):
|
|
758
758
|
maxOrderQty = self.safe_number(market, 'maxOrderQty')
|
759
759
|
initMargin = self.safe_string(market, 'initMargin', '1')
|
760
760
|
maxLeverage = self.parse_number(Precise.string_div('1', initMargin))
|
761
|
+
# subtype should be None for spot markets
|
762
|
+
if spot:
|
763
|
+
isInverse = None
|
764
|
+
isQuanto = None
|
765
|
+
linear = None
|
761
766
|
return {
|
762
767
|
'id': id,
|
763
768
|
'symbol': symbol,
|
@@ -807,7 +812,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
807
812
|
'max': maxOrderQty if positionIsQuote else None,
|
808
813
|
},
|
809
814
|
},
|
810
|
-
'created':
|
815
|
+
'created': None, # 'listing' field is buggy, e.g. 2200-02-01T00:00:00.000Z
|
811
816
|
'info': market,
|
812
817
|
}
|
813
818
|
|
bitmex/ccxt/pro/__init__.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
bitmex/__init__.py,sha256=YoXAuxG_VioYinNV_H2dBOxO7R1bhKl6aL_6s6TfuWg,246
|
2
|
-
bitmex/ccxt/__init__.py,sha256=
|
3
|
-
bitmex/ccxt/bitmex.py,sha256=
|
2
|
+
bitmex/ccxt/__init__.py,sha256=BgrleiZlMWdvN4khWuMjofUz5NXSWgH0lYEK_Ayc9D0,6048
|
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
|
6
|
-
bitmex/ccxt/async_support/bitmex.py,sha256=
|
5
|
+
bitmex/ccxt/async_support/__init__.py,sha256=-pCARBQEhYozZ6OSDeSgcxMnMUjF1ajVzbCAaqreP7A,4781
|
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=fFbTwjLVQEHgO857XsJEKewCRbGEdCK3Fgxe-ju3D50,117601
|
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,11 +18,11 @@ bitmex/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_H
|
|
18
18
|
bitmex/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmBJLCI5FHIRdMz1O-g,6551
|
19
19
|
bitmex/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
20
20
|
bitmex/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
|
21
|
-
bitmex/ccxt/base/errors.py,sha256=
|
22
|
-
bitmex/ccxt/base/exchange.py,sha256=
|
21
|
+
bitmex/ccxt/base/errors.py,sha256=Pad-6ugvGUwhoYuKUliX-N7FTrcnKCQGFjsaq2tMn0I,4610
|
22
|
+
bitmex/ccxt/base/exchange.py,sha256=Htk-wL8Aqmj3XEffVhRsoj_OzpZuFATi0aGkV6oWk64,326255
|
23
23
|
bitmex/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
24
24
|
bitmex/ccxt/base/types.py,sha256=SfxIKDSsxP7MPHWiOVI965Nr5NSEPpAno5fuveTRi3w,11423
|
25
|
-
bitmex/ccxt/pro/__init__.py,sha256=
|
25
|
+
bitmex/ccxt/pro/__init__.py,sha256=VdDJOY0HSoYyniiVIa23ex_h2ynLkoLW0P-r0l_UPG4,619
|
26
26
|
bitmex/ccxt/pro/bitmex.py,sha256=5gpicgex_am9Km9ZsZpMKBSKX-SFFAD3PPuv9r-nNdA,74693
|
27
27
|
bitmex/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
|
28
28
|
bitmex/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
|
@@ -283,6 +283,6 @@ bitmex/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
|
|
283
283
|
bitmex/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
|
284
284
|
bitmex/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
285
285
|
bitmex/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
|
286
|
-
bitmex_api-0.0.
|
287
|
-
bitmex_api-0.0.
|
288
|
-
bitmex_api-0.0.
|
286
|
+
bitmex_api-0.0.27.dist-info/METADATA,sha256=Tc6k_5SjvGvjcOGs9JpUa1ZC4CadrpfMSV5dGWnFA6A,10822
|
287
|
+
bitmex_api-0.0.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
288
|
+
bitmex_api-0.0.27.dist-info/RECORD,,
|
File without changes
|