bitmart 0.0.27__py3-none-any.whl → 0.0.28__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.

Potentially problematic release.


This version of bitmart might be problematic. Click here for more details.

bitmart/ccxt/__init__.py CHANGED
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
29
- __version__ = '4.4.79'
29
+ __version__ = '4.4.80'
30
30
 
31
31
  # ----------------------------------------------------------------------------
32
32
 
@@ -61,6 +61,7 @@ class ImplicitAPI:
61
61
  private_get_contract_private_order = privateGetContractPrivateOrder = Entry('contract/private/order', 'private', 'GET', {'cost': 1.2})
62
62
  private_get_contract_private_order_history = privateGetContractPrivateOrderHistory = Entry('contract/private/order-history', 'private', 'GET', {'cost': 10})
63
63
  private_get_contract_private_position = privateGetContractPrivatePosition = Entry('contract/private/position', 'private', 'GET', {'cost': 10})
64
+ private_get_contract_private_position_v2 = privateGetContractPrivatePositionV2 = Entry('contract/private/position-v2', 'private', 'GET', {'cost': 10})
64
65
  private_get_contract_private_get_open_orders = privateGetContractPrivateGetOpenOrders = Entry('contract/private/get-open-orders', 'private', 'GET', {'cost': 1.2})
65
66
  private_get_contract_private_current_plan_order = privateGetContractPrivateCurrentPlanOrder = Entry('contract/private/current-plan-order', 'private', 'GET', {'cost': 1.2})
66
67
  private_get_contract_private_trades = privateGetContractPrivateTrades = Entry('contract/private/trades', 'private', 'GET', {'cost': 10})
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.79'
11
+ __version__ = '4.4.80'
12
12
 
13
13
  # -----------------------------------------------------------------------------
14
14
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.4.79'
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
@@ -225,6 +225,7 @@ class bitmart(Exchange, ImplicitAPI):
225
225
  'contract/private/order': 1.2,
226
226
  'contract/private/order-history': 10,
227
227
  'contract/private/position': 10,
228
+ 'contract/private/position-v2': 10,
228
229
  'contract/private/get-open-orders': 1.2,
229
230
  'contract/private/current-plan-order': 1.2,
230
231
  'contract/private/trades': 10,
@@ -4662,6 +4663,7 @@ class bitmart(Exchange, ImplicitAPI):
4662
4663
  fetch all open contract positions
4663
4664
 
4664
4665
  https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-keyed
4666
+ https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-v2-keyed
4665
4667
 
4666
4668
  :param str[]|None symbols: list of unified market symbols
4667
4669
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4678,7 +4680,7 @@ class bitmart(Exchange, ImplicitAPI):
4678
4680
  if symbolsLength == 1:
4679
4681
  # only supports symbols or sending one symbol
4680
4682
  request['symbol'] = market['id']
4681
- response = await self.privateGetContractPrivatePosition(self.extend(request, params))
4683
+ response = await self.privateGetContractPrivatePositionV2(self.extend(request, params))
4682
4684
  #
4683
4685
  # {
4684
4686
  # "code": 1000,
@@ -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': {
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.79'
7
+ __version__ = '4.4.80'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
bitmart/ccxt/bitmart.py CHANGED
@@ -225,6 +225,7 @@ class bitmart(Exchange, ImplicitAPI):
225
225
  'contract/private/order': 1.2,
226
226
  'contract/private/order-history': 10,
227
227
  'contract/private/position': 10,
228
+ 'contract/private/position-v2': 10,
228
229
  'contract/private/get-open-orders': 1.2,
229
230
  'contract/private/current-plan-order': 1.2,
230
231
  'contract/private/trades': 10,
@@ -4662,6 +4663,7 @@ class bitmart(Exchange, ImplicitAPI):
4662
4663
  fetch all open contract positions
4663
4664
 
4664
4665
  https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-keyed
4666
+ https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-v2-keyed
4665
4667
 
4666
4668
  :param str[]|None symbols: list of unified market symbols
4667
4669
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -4678,7 +4680,7 @@ class bitmart(Exchange, ImplicitAPI):
4678
4680
  if symbolsLength == 1:
4679
4681
  # only supports symbols or sending one symbol
4680
4682
  request['symbol'] = market['id']
4681
- response = self.privateGetContractPrivatePosition(self.extend(request, params))
4683
+ response = self.privateGetContractPrivatePositionV2(self.extend(request, params))
4682
4684
  #
4683
4685
  # {
4684
4686
  # "code": 1000,
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.79'
11
+ __version__ = '4.4.80'
12
12
 
13
13
  # ----------------------------------------------------------------------------
14
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitmart
3
- Version: 0.0.27
3
+ Version: 0.0.28
4
4
  Summary: bitmart crypto exchange api client
5
5
  Project-URL: Homepage, https://github.com/ccxt/ccxt
6
6
  Project-URL: Issues, https://github.com/ccxt/ccxt
@@ -250,6 +250,7 @@ You can also construct custom requests to available "implicit" endpoints
250
250
  - `private_get_contract_private_order(request)`
251
251
  - `private_get_contract_private_order_history(request)`
252
252
  - `private_get_contract_private_position(request)`
253
+ - `private_get_contract_private_position_v2(request)`
253
254
  - `private_get_contract_private_get_open_orders(request)`
254
255
  - `private_get_contract_private_current_plan_order(request)`
255
256
  - `private_get_contract_private_trades(request)`
@@ -1,11 +1,11 @@
1
1
  bitmart/__init__.py,sha256=DRRGWQ_AXzv_ztbAPzIZ0ID_zHfKYZID66sOb-SJ3eM,258
2
- bitmart/ccxt/__init__.py,sha256=JUXQs7Mg459TW3KWN_rbIMO2wi-9vdIfr5ryxMRqUBY,6050
3
- bitmart/ccxt/bitmart.py,sha256=wzAkRig-th9ppLGf3PpR4XpoFXE5GmySjW8iis5L2WU,248080
4
- bitmart/ccxt/abstract/bitmart.py,sha256=JF2hfATRDwmQoP9bSy9jPv_IYM0aQicSp-9Mat4tA4o,17240
5
- bitmart/ccxt/async_support/__init__.py,sha256=-6WkU-5cYOEDtMORURu3AhRLS2jkg9cmDy0IIOCqn7k,4783
6
- bitmart/ccxt/async_support/bitmart.py,sha256=y2hRK-PPurAs7-pKRLX3cboiLy-SSI4YndeuTLcAXRE,249204
2
+ bitmart/ccxt/__init__.py,sha256=xeD4BH4LtPUsMHHyQMJbz3eaxGNl05Z9Y9rH92UJCL0,6050
3
+ bitmart/ccxt/bitmart.py,sha256=8LbVvV2whAFi4WNythAlWGuzGqhKmavqOJwmKqinSLo,248228
4
+ bitmart/ccxt/abstract/bitmart.py,sha256=er1v0vWmX1-eus1XP5EyQCsmDS5LHVCUGEHqwvZuxyU,17395
5
+ bitmart/ccxt/async_support/__init__.py,sha256=QT9qcf6cJIXcKa_nxadxrhbYiI6zFCFlKyukHKv0JHM,4783
6
+ bitmart/ccxt/async_support/bitmart.py,sha256=8U1WC9fD8CLJFJC85wHZyZuf0XihYL4DubW3ZTtVEac,249352
7
7
  bitmart/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
8
- bitmart/ccxt/async_support/base/exchange.py,sha256=X_oV71iDNfd2c96pnNJ-e2mniQx-1px-iIXkE-bNUTk,117255
8
+ bitmart/ccxt/async_support/base/exchange.py,sha256=fFbTwjLVQEHgO857XsJEKewCRbGEdCK3Fgxe-ju3D50,117601
9
9
  bitmart/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
10
10
  bitmart/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
11
11
  bitmart/ccxt/async_support/base/ws/aiohttp_client.py,sha256=Y5HxAVXyyYduj6b6SbbUZETlq3GrVMzrkW1r-TMgpb8,6329
@@ -18,11 +18,11 @@ bitmart/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_
18
18
  bitmart/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmBJLCI5FHIRdMz1O-g,6551
19
19
  bitmart/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
20
20
  bitmart/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
21
- bitmart/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
22
- bitmart/ccxt/base/exchange.py,sha256=Nc1YifSOr1D3QRVQiSJu59SP76gActUUZIsgusjoTss,326255
21
+ bitmart/ccxt/base/errors.py,sha256=Pad-6ugvGUwhoYuKUliX-N7FTrcnKCQGFjsaq2tMn0I,4610
22
+ bitmart/ccxt/base/exchange.py,sha256=Htk-wL8Aqmj3XEffVhRsoj_OzpZuFATi0aGkV6oWk64,326255
23
23
  bitmart/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
24
24
  bitmart/ccxt/base/types.py,sha256=SfxIKDSsxP7MPHWiOVI965Nr5NSEPpAno5fuveTRi3w,11423
25
- bitmart/ccxt/pro/__init__.py,sha256=Xkn5-i_XCTIbdgjT2WnqpuZw8p3fyvh33G29gMacyNs,621
25
+ bitmart/ccxt/pro/__init__.py,sha256=cOHJ98m2aVtZFhAvHTCbE-WDB7k3HjuHQV9VB85PAC4,621
26
26
  bitmart/ccxt/pro/bitmart.py,sha256=-iCp2w0UXeNrro_TcyVyJvsaTFXtq92nEP4h7hq-F-w,67253
27
27
  bitmart/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
28
28
  bitmart/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
@@ -283,6 +283,6 @@ bitmart/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWn
283
283
  bitmart/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
284
284
  bitmart/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  bitmart/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
286
- bitmart-0.0.27.dist-info/METADATA,sha256=ycAo45oYbA3ofQW6huyJNf1WqBLfq-4i2vL3kYQ0llY,15102
287
- bitmart-0.0.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
- bitmart-0.0.27.dist-info/RECORD,,
286
+ bitmart-0.0.28.dist-info/METADATA,sha256=O5yQk4SjcoVcFG_CRT68VEB6mycxH3jptX7DGcdA7Xk,15156
287
+ bitmart-0.0.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
+ bitmart-0.0.28.dist-info/RECORD,,