ccxt 2.8.97__py2.py3-none-any.whl → 2.8.99__py2.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 ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +1 -1
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bybit.py +12 -90
- ccxt/base/exchange.py +1 -1
- ccxt/bybit.py +12 -90
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/base/exchange.py +1 -1
- {ccxt-2.8.97.dist-info → ccxt-2.8.99.dist-info}/METADATA +4 -4
- {ccxt-2.8.97.dist-info → ccxt-2.8.99.dist-info}/RECORD +12 -12
- {ccxt-2.8.97.dist-info → ccxt-2.8.99.dist-info}/WHEEL +0 -0
- {ccxt-2.8.97.dist-info → ccxt-2.8.99.dist-info}/top_level.txt +0 -0
ccxt/__init__.py
CHANGED
ccxt/async_support/__init__.py
CHANGED
ccxt/async_support/bybit.py
CHANGED
@@ -7473,106 +7473,28 @@ class bybit(Exchange):
|
|
7473
7473
|
|
7474
7474
|
def parse_market_leverage_tiers(self, info, market):
|
7475
7475
|
#
|
7476
|
-
#
|
7477
|
-
#
|
7478
|
-
#
|
7479
|
-
#
|
7480
|
-
#
|
7481
|
-
#
|
7482
|
-
#
|
7483
|
-
#
|
7484
|
-
#
|
7485
|
-
# '1', '2', '3',
|
7486
|
-
# '5', '10', '15',
|
7487
|
-
# '25'
|
7488
|
-
# ],
|
7489
|
-
# is_lowest_risk: '1',
|
7490
|
-
# created_at: '2022-02-04 23:30:33.555252',
|
7491
|
-
# updated_at: '2022-02-04 23:30:33.555254',
|
7492
|
-
# max_leverage: '50'
|
7493
|
-
# },
|
7494
|
-
# ...
|
7495
|
-
# ]
|
7496
|
-
#
|
7497
|
-
# Inverse
|
7498
|
-
# [
|
7499
|
-
# {
|
7500
|
-
# id: '180',
|
7501
|
-
# is_lowest_risk: '0',
|
7502
|
-
# section: [
|
7503
|
-
# '1', '2', '3',
|
7504
|
-
# '4', '5', '7',
|
7505
|
-
# '8', '9'
|
7506
|
-
# ],
|
7507
|
-
# symbol: 'ETHUSDH22',
|
7508
|
-
# limit: '30000',
|
7509
|
-
# max_leverage: '9',
|
7510
|
-
# starting_margin: '11',
|
7511
|
-
# maintain_margin: '5.5',
|
7512
|
-
# coin: 'ETH',
|
7513
|
-
# created_at: '2021-04-22T15:00:00Z',
|
7514
|
-
# updated_at: '2021-04-22T15:00:00Z'
|
7515
|
-
# }
|
7516
|
-
# ...
|
7517
|
-
# ]
|
7518
|
-
#
|
7519
|
-
# usdc swap
|
7520
|
-
#
|
7521
|
-
# {
|
7522
|
-
# "riskId":"10001",
|
7523
|
-
# "symbol":"BTCPERP",
|
7524
|
-
# "limit":"1000000",
|
7525
|
-
# "startingMargin":"0.0100",
|
7526
|
-
# "maintainMargin":"0.0050",
|
7527
|
-
# "isLowestRisk":true,
|
7528
|
-
# "section":[
|
7529
|
-
# "1",
|
7530
|
-
# "2",
|
7531
|
-
# "3",
|
7532
|
-
# "5",
|
7533
|
-
# "10",
|
7534
|
-
# "25",
|
7535
|
-
# "50",
|
7536
|
-
# "100"
|
7537
|
-
# ],
|
7538
|
-
# "maxLeverage":"100.00"
|
7539
|
-
# }
|
7540
|
-
#
|
7541
|
-
# Unified Margin
|
7542
|
-
#
|
7543
|
-
# [
|
7544
|
-
# {
|
7545
|
-
# "id": 1,
|
7546
|
-
# "symbol": "BTCUSDT",
|
7547
|
-
# "limit": "2000000",
|
7548
|
-
# "maintainMargin": "0.005",
|
7549
|
-
# "initialMargin": "0.01",
|
7550
|
-
# "section": [
|
7551
|
-
# "1",
|
7552
|
-
# "3",
|
7553
|
-
# "5",
|
7554
|
-
# "10",
|
7555
|
-
# "25",
|
7556
|
-
# "50",
|
7557
|
-
# "80"
|
7558
|
-
# ],
|
7559
|
-
# "isLowestRisk": 1,
|
7560
|
-
# "maxLeverage": "100.00"
|
7561
|
-
# }
|
7562
|
-
# ]
|
7476
|
+
# {
|
7477
|
+
# "id": 1,
|
7478
|
+
# "symbol": "BTCUSD",
|
7479
|
+
# "riskLimitValue": "150",
|
7480
|
+
# "maintenanceMargin": "0.5",
|
7481
|
+
# "initialMargin": "1",
|
7482
|
+
# "isLowestRisk": 1,
|
7483
|
+
# "maxLeverage": "100.00"
|
7484
|
+
# }
|
7563
7485
|
#
|
7564
7486
|
minNotional = 0
|
7565
7487
|
tiers = []
|
7566
7488
|
for i in range(0, len(info)):
|
7567
7489
|
item = info[i]
|
7568
|
-
maxNotional = self.safe_number(item, '
|
7490
|
+
maxNotional = self.safe_number(item, 'riskLimitValue')
|
7569
7491
|
tiers.append({
|
7570
7492
|
'tier': self.sum(i, 1),
|
7571
7493
|
'currency': market['base'],
|
7572
7494
|
'minNotional': minNotional,
|
7573
7495
|
'maxNotional': maxNotional,
|
7574
|
-
'maintenanceMarginRate': self.
|
7575
|
-
'maxLeverage': self.
|
7496
|
+
'maintenanceMarginRate': self.safe_number(item, 'maintenanceMargin'),
|
7497
|
+
'maxLeverage': self.safe_number(item, 'maxLeverage'),
|
7576
7498
|
'info': item,
|
7577
7499
|
})
|
7578
7500
|
minNotional = maxNotional
|
ccxt/base/exchange.py
CHANGED
ccxt/bybit.py
CHANGED
@@ -7471,106 +7471,28 @@ class bybit(Exchange):
|
|
7471
7471
|
|
7472
7472
|
def parse_market_leverage_tiers(self, info, market):
|
7473
7473
|
#
|
7474
|
-
#
|
7475
|
-
#
|
7476
|
-
#
|
7477
|
-
#
|
7478
|
-
#
|
7479
|
-
#
|
7480
|
-
#
|
7481
|
-
#
|
7482
|
-
#
|
7483
|
-
# '1', '2', '3',
|
7484
|
-
# '5', '10', '15',
|
7485
|
-
# '25'
|
7486
|
-
# ],
|
7487
|
-
# is_lowest_risk: '1',
|
7488
|
-
# created_at: '2022-02-04 23:30:33.555252',
|
7489
|
-
# updated_at: '2022-02-04 23:30:33.555254',
|
7490
|
-
# max_leverage: '50'
|
7491
|
-
# },
|
7492
|
-
# ...
|
7493
|
-
# ]
|
7494
|
-
#
|
7495
|
-
# Inverse
|
7496
|
-
# [
|
7497
|
-
# {
|
7498
|
-
# id: '180',
|
7499
|
-
# is_lowest_risk: '0',
|
7500
|
-
# section: [
|
7501
|
-
# '1', '2', '3',
|
7502
|
-
# '4', '5', '7',
|
7503
|
-
# '8', '9'
|
7504
|
-
# ],
|
7505
|
-
# symbol: 'ETHUSDH22',
|
7506
|
-
# limit: '30000',
|
7507
|
-
# max_leverage: '9',
|
7508
|
-
# starting_margin: '11',
|
7509
|
-
# maintain_margin: '5.5',
|
7510
|
-
# coin: 'ETH',
|
7511
|
-
# created_at: '2021-04-22T15:00:00Z',
|
7512
|
-
# updated_at: '2021-04-22T15:00:00Z'
|
7513
|
-
# }
|
7514
|
-
# ...
|
7515
|
-
# ]
|
7516
|
-
#
|
7517
|
-
# usdc swap
|
7518
|
-
#
|
7519
|
-
# {
|
7520
|
-
# "riskId":"10001",
|
7521
|
-
# "symbol":"BTCPERP",
|
7522
|
-
# "limit":"1000000",
|
7523
|
-
# "startingMargin":"0.0100",
|
7524
|
-
# "maintainMargin":"0.0050",
|
7525
|
-
# "isLowestRisk":true,
|
7526
|
-
# "section":[
|
7527
|
-
# "1",
|
7528
|
-
# "2",
|
7529
|
-
# "3",
|
7530
|
-
# "5",
|
7531
|
-
# "10",
|
7532
|
-
# "25",
|
7533
|
-
# "50",
|
7534
|
-
# "100"
|
7535
|
-
# ],
|
7536
|
-
# "maxLeverage":"100.00"
|
7537
|
-
# }
|
7538
|
-
#
|
7539
|
-
# Unified Margin
|
7540
|
-
#
|
7541
|
-
# [
|
7542
|
-
# {
|
7543
|
-
# "id": 1,
|
7544
|
-
# "symbol": "BTCUSDT",
|
7545
|
-
# "limit": "2000000",
|
7546
|
-
# "maintainMargin": "0.005",
|
7547
|
-
# "initialMargin": "0.01",
|
7548
|
-
# "section": [
|
7549
|
-
# "1",
|
7550
|
-
# "3",
|
7551
|
-
# "5",
|
7552
|
-
# "10",
|
7553
|
-
# "25",
|
7554
|
-
# "50",
|
7555
|
-
# "80"
|
7556
|
-
# ],
|
7557
|
-
# "isLowestRisk": 1,
|
7558
|
-
# "maxLeverage": "100.00"
|
7559
|
-
# }
|
7560
|
-
# ]
|
7474
|
+
# {
|
7475
|
+
# "id": 1,
|
7476
|
+
# "symbol": "BTCUSD",
|
7477
|
+
# "riskLimitValue": "150",
|
7478
|
+
# "maintenanceMargin": "0.5",
|
7479
|
+
# "initialMargin": "1",
|
7480
|
+
# "isLowestRisk": 1,
|
7481
|
+
# "maxLeverage": "100.00"
|
7482
|
+
# }
|
7561
7483
|
#
|
7562
7484
|
minNotional = 0
|
7563
7485
|
tiers = []
|
7564
7486
|
for i in range(0, len(info)):
|
7565
7487
|
item = info[i]
|
7566
|
-
maxNotional = self.safe_number(item, '
|
7488
|
+
maxNotional = self.safe_number(item, 'riskLimitValue')
|
7567
7489
|
tiers.append({
|
7568
7490
|
'tier': self.sum(i, 1),
|
7569
7491
|
'currency': market['base'],
|
7570
7492
|
'minNotional': minNotional,
|
7571
7493
|
'maxNotional': maxNotional,
|
7572
|
-
'maintenanceMarginRate': self.
|
7573
|
-
'maxLeverage': self.
|
7494
|
+
'maintenanceMarginRate': self.safe_number(item, 'maintenanceMargin'),
|
7495
|
+
'maxLeverage': self.safe_number(item, 'maxLeverage'),
|
7574
7496
|
'info': item,
|
7575
7497
|
})
|
7576
7498
|
minNotional = maxNotional
|
ccxt/pro/__init__.py
CHANGED
ccxt/pro/base/exchange.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 2.8.
|
3
|
+
Version: 2.8.99
|
4
4
|
Summary: A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges
|
5
5
|
Home-page: https://ccxt.com
|
6
6
|
Author: Igor Kroitor
|
@@ -258,13 +258,13 @@ console.log (ccxt.exchanges) // print all available exchanges
|
|
258
258
|
|
259
259
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
260
260
|
|
261
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.
|
262
|
-
* unpkg: https://unpkg.com/ccxt@2.8.
|
261
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.99/dist/ccxt.browser.js
|
262
|
+
* unpkg: https://unpkg.com/ccxt@2.8.99/dist/ccxt.browser.js
|
263
263
|
|
264
264
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
265
265
|
|
266
266
|
```HTML
|
267
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.8.
|
267
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@2.8.99/dist/ccxt.browser.js"></script>
|
268
268
|
```
|
269
269
|
|
270
270
|
Creates a global `ccxt` object:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
ccxt/__init__.py,sha256=
|
1
|
+
ccxt/__init__.py,sha256=fHuvllNKmukDjFfaGZTpqG90kWePe3YDebmqCx5xztY,15913
|
2
2
|
ccxt/ace.py,sha256=LHJs8ki3q_vhTf67M2dY5PhdhlNe3iYdWpI8Ac2rtB8,41009
|
3
3
|
ccxt/alpaca.py,sha256=dd8lDHGg24qRhOyfvXgyjiLZ6YgnJ5ODpW4t4GFR8d8,32910
|
4
4
|
ccxt/ascendex.py,sha256=lmBXXBJxSnfQP_Yl2e8djgx1v1aKPdMEFHNRXKv_f1o,125846
|
@@ -39,7 +39,7 @@ ccxt/btcmarkets.py,sha256=trlczer8FfF-G8goHx7JGL69t4dKEicqN1s3vTPkLNc,48035
|
|
39
39
|
ccxt/btctradeua.py,sha256=eyflzEU3iWPLTnc2Rlpwztj3mrhfl4CeMB4kDpvCnfk,21661
|
40
40
|
ccxt/btcturk.py,sha256=nCpy58mPkvJexbFgYpBVTK42r0KbBPzMVYDR4LQMujY,34977
|
41
41
|
ccxt/buda.py,sha256=HIpIBjMN50t_PUfp8LA5YzA62WawZKkkH5NdJnfGUyU,45286
|
42
|
-
ccxt/bybit.py,sha256=
|
42
|
+
ccxt/bybit.py,sha256=Q3M2H7PCBv3H7XYR18bBzXFiNMX-ksarOnKjm06pPRg,379408
|
43
43
|
ccxt/cex.py,sha256=Q8u9bjn5qA61JwwWRLsOYkxcZ7P3RPJvGj-YnWEqlME,64515
|
44
44
|
ccxt/coinbase.py,sha256=Z55ziczlCLoLbvGEMRv-mOdyVz5aJZ0TW_zMQSUVgSM,123514
|
45
45
|
ccxt/coinbaseprime.py,sha256=R4S5GPob14ELGeKZHtn1yCAdWO8Z48DCqA1tU6dHa1w,1154
|
@@ -110,7 +110,7 @@ ccxt/yobit.py,sha256=XSwUxMPj7615KMSJ0uO_6r_XC86PVI9JmoFW7Sa5rhQ,50480
|
|
110
110
|
ccxt/zaif.py,sha256=amUZYqnOc_YQHoEHYmXQDAuprZX9IiLwIVQELrM4EdY,27619
|
111
111
|
ccxt/zb.py,sha256=ET77-_n6472ce0w2rEvmm9yaxTaH3fsXHoVn58i-tEA,183164
|
112
112
|
ccxt/zonda.py,sha256=BgryogRDDWndzXIhzUCVmDp-Z-4NStgUQ52KveQ3F_k,72727
|
113
|
-
ccxt/async_support/__init__.py,sha256=
|
113
|
+
ccxt/async_support/__init__.py,sha256=WjeBaOfHgrptkC6i1rnINOKCejDKNXXVEFYWRLwjL18,15746
|
114
114
|
ccxt/async_support/ace.py,sha256=KBkF9jOtfuexziucqdz9hVQ8EQDYEaHAnF7qpb3sUT8,41239
|
115
115
|
ccxt/async_support/alpaca.py,sha256=4vMmD34LgVuwoWN4AK_2Wt12dL5KA3uwGJKQuzG6sAg,33056
|
116
116
|
ccxt/async_support/ascendex.py,sha256=epuquvLlW0vwcjs46tlMTuRf2kAP3rqzCqUMg9IDppw,126460
|
@@ -151,7 +151,7 @@ ccxt/async_support/btcmarkets.py,sha256=mqB-YZnh_ZRK9PwpvAcp579Cj6Ul_A3d3AIEOtGm
|
|
151
151
|
ccxt/async_support/btctradeua.py,sha256=B5OlisST-2mpE_r8svLfxqj4LWZ1EMyaAMcOb971cg0,21807
|
152
152
|
ccxt/async_support/btcturk.py,sha256=jhTw3LqZNdkfnBcF-3nJubvMKdr_nICJ_-u2qFy9UyM,35195
|
153
153
|
ccxt/async_support/buda.py,sha256=I0l06fNVF5SW8lIQ1l5V1wEWK67j3lw-E-8giUt9XE0,45654
|
154
|
-
ccxt/async_support/bybit.py,sha256
|
154
|
+
ccxt/async_support/bybit.py,sha256=-JMfnACroUucA7oCv1m8Y4rUTVUiPi3DPdEe8WLQGNg,381300
|
155
155
|
ccxt/async_support/cex.py,sha256=5IYG3CgOnc7zPP5TZzCM7wbKpkcAsTWq_oOTWMCDu7A,64841
|
156
156
|
ccxt/async_support/coinbase.py,sha256=vOXow_M1c5vwUOoV7RyDqCbG0P5s3tPt_hbDi2UKpAQ,124158
|
157
157
|
ccxt/async_support/coinbaseprime.py,sha256=u9CmGA9iAq5eSsFzyn4vDSwEBxt5iFTKQOYy-9ZTnJ0,1168
|
@@ -223,14 +223,14 @@ ccxt/async_support/zaif.py,sha256=pU8VIbfzoal-aYYOwXjCJom1wv39QQHp2QWVmf7v5uI,27
|
|
223
223
|
ccxt/async_support/zb.py,sha256=f91YoThqWGOyYl_ywW2x6pw_LQABGS8_4DczWAQKLpU,183868
|
224
224
|
ccxt/async_support/zonda.py,sha256=9pqglR6VBN-iqEYj7CBIZC-96tl05WFrkLf_5csxPVk,73017
|
225
225
|
ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
226
|
-
ccxt/async_support/base/exchange.py,sha256=
|
226
|
+
ccxt/async_support/base/exchange.py,sha256=eq5AiBO19OVDb0EmTIH98dj7U6sfzQwca-iY0wBB7vs,108099
|
227
227
|
ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
|
228
228
|
ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
229
229
|
ccxt/base/decimal_to_precision.py,sha256=FG3IBmZKwWPg7Kj2mgCX7txELUEhfgfmnxrbKwVVtok,6531
|
230
230
|
ccxt/base/errors.py,sha256=-LVeTNyXvu3QEgb-p-KzMpcBgzHlvFTwDzmZK7Gfc14,3401
|
231
|
-
ccxt/base/exchange.py,sha256=
|
231
|
+
ccxt/base/exchange.py,sha256=bbSzSPpP2Phd0g2iZUT23SqB1FPWdtdZRXlR4oukz8E,163551
|
232
232
|
ccxt/base/precise.py,sha256=_xfu54sV0vWNnOfGTKRFykeuWP8mn4K1m9lk1tcllX4,8565
|
233
|
-
ccxt/pro/__init__.py,sha256=
|
233
|
+
ccxt/pro/__init__.py,sha256=WDn8xUFUYhikKwLZ4TBynQdH0cchw41pyj7YopIlGY8,5947
|
234
234
|
ccxt/pro/alpaca.py,sha256=7o59h7qBbF9U1_jVBFVlGvstywQOh_dkfV4yqXuspgo,26426
|
235
235
|
ccxt/pro/ascendex.py,sha256=UikwO6-yiSfIV-OImOOIZ2xO_zanAB49VDQsoDN6Q5M,34311
|
236
236
|
ccxt/pro/bequant.py,sha256=qz8JjnpkAQY_CFiFSKGqrjjgZ2167_TBKjSJOb9NeDw,1081
|
@@ -289,7 +289,7 @@ ccxt/pro/base/__init__.py,sha256=XscxcHui5I8za8dAzz0O3J-UeyxGkUEXlErAaBWHCjY,184
|
|
289
289
|
ccxt/pro/base/aiohttp_client.py,sha256=wd0ae_KYgQ3gqYgj7uYeJcDPfJWzxMKUQsxs8ZZcTr4,4961
|
290
290
|
ccxt/pro/base/cache.py,sha256=r9l1tEvR3sfN4Joqj6bPBRS0Xrg7mjAFjTDW4QBMozY,6085
|
291
291
|
ccxt/pro/base/client.py,sha256=XvQt-puPiGBXYw1s9nFXj_xXRNkDxc8hF5kvQBVwBnk,7270
|
292
|
-
ccxt/pro/base/exchange.py,sha256=
|
292
|
+
ccxt/pro/base/exchange.py,sha256=28B4tYeUkfbaUXMTZrhhsDBrpVrDasM2EUSXlDSaLl4,8213
|
293
293
|
ccxt/pro/base/fast_client.py,sha256=NCAHUS35OzhsPve2owVLzM9BmM7cTsYcNFEJBw1UESU,3245
|
294
294
|
ccxt/pro/base/functions.py,sha256=vf2FUrlCak5Tf5a6-vbTtmtzHzbXi0nECRygTmNhxFw,1495
|
295
295
|
ccxt/pro/base/future.py,sha256=hcvcH5rUP4Jn7qbQwx19P4ItM1DWZU2vvRS8Ob6MIDU,249
|
@@ -326,7 +326,7 @@ ccxt/test/test_sync.py,sha256=omZA0xK_2nl58Gwoz65Oi4xRN4uLyuZ0AWZwf2Eqa9w,22795
|
|
326
326
|
ccxt/test/test_throttle.py,sha256=GvLQWtA4fAk_yJrxeisek-wAz7eJdHj0DDKR4_V1beg,3123
|
327
327
|
ccxt/test/test_trade.py,sha256=-pw3gxe26wozFeN_Vy4zWNUQr0fSXOg3FRu-gVvOrqE,3243
|
328
328
|
ccxt/test/test_transaction.py,sha256=IlyTFDWDwGUGzk94yx6vLaJy9zyCRlhEVigXE6hDd40,1514
|
329
|
-
ccxt-2.8.
|
330
|
-
ccxt-2.8.
|
331
|
-
ccxt-2.8.
|
332
|
-
ccxt-2.8.
|
329
|
+
ccxt-2.8.99.dist-info/METADATA,sha256=SYKVkgyzrq9zCAIvV-b2vjMdF5l7aQcDLURDow3-XFs,109916
|
330
|
+
ccxt-2.8.99.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
331
|
+
ccxt-2.8.99.dist-info/top_level.txt,sha256=CkQDuCTDKNcImPV60t36G6MdYfxsAPNiSaEwifVoVMo,5
|
332
|
+
ccxt-2.8.99.dist-info/RECORD,,
|
File without changes
|
File without changes
|