ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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.
- ccxt/__init__.py +1 -1
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/base/ws/aiohttp_client.py +25 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +145 -79
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -22
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +313 -157
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +157 -74
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +54 -17
- ccxt/async_support/kraken.py +108 -36
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +214 -110
- ccxt/async_support/kucoinfutures.py +209 -64
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +108 -56
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +32 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +119 -50
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +47 -35
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -22
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +313 -157
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +157 -74
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +54 -17
- ccxt/kraken.py +108 -36
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +214 -110
- ccxt/kucoinfutures.py +209 -64
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +108 -56
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +204 -123
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +76 -37
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +97 -62
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +71 -27
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +65 -31
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +27 -9
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +36 -19
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +32 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +119 -50
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/async_support/hitbtc.py
CHANGED
@@ -672,7 +672,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
672
672
|
async def fetch_markets(self, params={}) -> List[Market]:
|
673
673
|
"""
|
674
674
|
retrieves data on all markets for hitbtc
|
675
|
-
|
675
|
+
|
676
|
+
https://api.hitbtc.com/#symbols
|
677
|
+
|
676
678
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
677
679
|
:returns dict[]: an array of objects representing market data
|
678
680
|
"""
|
@@ -809,7 +811,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
809
811
|
async def fetch_currencies(self, params={}) -> Currencies:
|
810
812
|
"""
|
811
813
|
fetches all available currencies on an exchange
|
812
|
-
|
814
|
+
|
815
|
+
https://api.hitbtc.com/#currencies
|
816
|
+
|
813
817
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
814
818
|
:returns dict: an associative dictionary of currencies
|
815
819
|
"""
|
@@ -915,7 +919,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
915
919
|
async def create_deposit_address(self, code: str, params={}):
|
916
920
|
"""
|
917
921
|
create a currency deposit address
|
918
|
-
|
922
|
+
|
923
|
+
https://api.hitbtc.com/#generate-deposit-crypto-address
|
924
|
+
|
919
925
|
:param str code: unified currency code of the currency for the deposit address
|
920
926
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
921
927
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -948,7 +954,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
948
954
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
949
955
|
"""
|
950
956
|
fetch the deposit address for a currency associated with self account
|
951
|
-
|
957
|
+
|
958
|
+
https://api.hitbtc.com/#get-deposit-crypto-address
|
959
|
+
|
952
960
|
:param str code: unified currency code
|
953
961
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
954
962
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -997,9 +1005,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
997
1005
|
async def fetch_balance(self, params={}) -> Balances:
|
998
1006
|
"""
|
999
1007
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1008
|
+
|
1009
|
+
https://api.hitbtc.com/#wallet-balance
|
1010
|
+
https://api.hitbtc.com/#get-spot-trading-balance
|
1011
|
+
https://api.hitbtc.com/#get-trading-balance
|
1012
|
+
|
1003
1013
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1004
1014
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1005
1015
|
"""
|
@@ -1033,7 +1043,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1033
1043
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1034
1044
|
"""
|
1035
1045
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1036
|
-
|
1046
|
+
|
1047
|
+
https://api.hitbtc.com/#tickers
|
1048
|
+
|
1037
1049
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1038
1050
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1039
1051
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1062,7 +1074,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1062
1074
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1063
1075
|
"""
|
1064
1076
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1065
|
-
|
1077
|
+
|
1078
|
+
https://api.hitbtc.com/#tickers
|
1079
|
+
|
1066
1080
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1067
1081
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1068
1082
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1146,7 +1160,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1146
1160
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1147
1161
|
"""
|
1148
1162
|
get the list of most recent trades for a particular symbol
|
1149
|
-
|
1163
|
+
|
1164
|
+
https://api.hitbtc.com/#trades
|
1165
|
+
|
1150
1166
|
:param str symbol: unified symbol of the market to fetch trades for
|
1151
1167
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1152
1168
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1182,9 +1198,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1182
1198
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1183
1199
|
"""
|
1184
1200
|
fetch all trades made by the user
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1201
|
+
|
1202
|
+
https://api.hitbtc.com/#spot-trades-history
|
1203
|
+
https://api.hitbtc.com/#futures-trades-history
|
1204
|
+
https://api.hitbtc.com/#margin-trades-history
|
1205
|
+
|
1188
1206
|
:param str symbol: unified market symbol
|
1189
1207
|
:param int [since]: the earliest time in ms to fetch trades for
|
1190
1208
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1467,7 +1485,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1467
1485
|
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1468
1486
|
"""
|
1469
1487
|
fetch history of deposits and withdrawals
|
1470
|
-
|
1488
|
+
|
1489
|
+
https://api.hitbtc.com/#get-transactions-history
|
1490
|
+
|
1471
1491
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
1472
1492
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1473
1493
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1479,7 +1499,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1479
1499
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1480
1500
|
"""
|
1481
1501
|
fetch all deposits made to an account
|
1482
|
-
|
1502
|
+
|
1503
|
+
https://api.hitbtc.com/#get-transactions-history
|
1504
|
+
|
1483
1505
|
:param str code: unified currency code
|
1484
1506
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1485
1507
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1491,7 +1513,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1491
1513
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1492
1514
|
"""
|
1493
1515
|
fetch all withdrawals made from an account
|
1494
|
-
|
1516
|
+
|
1517
|
+
https://api.hitbtc.com/#get-transactions-history
|
1518
|
+
|
1495
1519
|
:param str code: unified currency code
|
1496
1520
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1497
1521
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1503,8 +1527,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1503
1527
|
async def fetch_order_books(self, symbols: Strings = None, limit: Int = None, params={}):
|
1504
1528
|
"""
|
1505
1529
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
|
1506
|
-
|
1507
|
-
|
1530
|
+
|
1531
|
+
https://api.hitbtc.com/#order-books
|
1532
|
+
|
1533
|
+
:param str[] [symbols]: list of unified market symbols, all symbols fetched if None, default is None
|
1508
1534
|
:param int [limit]: max number of entries per orderbook to return, default is None
|
1509
1535
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1510
1536
|
:returns dict: a dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbol
|
@@ -1530,7 +1556,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1530
1556
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1531
1557
|
"""
|
1532
1558
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1533
|
-
|
1559
|
+
|
1560
|
+
https://api.hitbtc.com/#order-books
|
1561
|
+
|
1534
1562
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1535
1563
|
:param int [limit]: the maximum amount of order book entries to return
|
1536
1564
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1571,8 +1599,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1571
1599
|
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1572
1600
|
"""
|
1573
1601
|
fetch the trading fees for a market
|
1574
|
-
|
1575
|
-
|
1602
|
+
|
1603
|
+
https://api.hitbtc.com/#get-trading-commission
|
1604
|
+
https://api.hitbtc.com/#get-trading-commission-2
|
1605
|
+
|
1576
1606
|
:param str symbol: unified market symbol
|
1577
1607
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1578
1608
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1600,8 +1630,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1600
1630
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
1601
1631
|
"""
|
1602
1632
|
fetch the trading fees for multiple markets
|
1603
|
-
|
1604
|
-
|
1633
|
+
|
1634
|
+
https://api.hitbtc.com/#get-all-trading-commissions
|
1635
|
+
https://api.hitbtc.com/#get-all-trading-commissions-2
|
1636
|
+
|
1605
1637
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1606
1638
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
1607
1639
|
"""
|
@@ -1633,10 +1665,12 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1633
1665
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1634
1666
|
"""
|
1635
1667
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1668
|
+
|
1669
|
+
https://api.hitbtc.com/#candles
|
1670
|
+
https://api.hitbtc.com/#futures-index-price-candles
|
1671
|
+
https://api.hitbtc.com/#futures-mark-price-candles
|
1672
|
+
https://api.hitbtc.com/#futures-premium-index-candles
|
1673
|
+
|
1640
1674
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1641
1675
|
:param str timeframe: the length of time each candle represents
|
1642
1676
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1737,9 +1771,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1737
1771
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1738
1772
|
"""
|
1739
1773
|
fetches information on multiple closed orders made by the user
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1774
|
+
|
1775
|
+
https://api.hitbtc.com/#spot-orders-history
|
1776
|
+
https://api.hitbtc.com/#futures-orders-history
|
1777
|
+
https://api.hitbtc.com/#margin-orders-history
|
1778
|
+
|
1743
1779
|
:param str symbol: unified market symbol of the market orders were made in
|
1744
1780
|
:param int [since]: the earliest time in ms to fetch orders for
|
1745
1781
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1781,9 +1817,12 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1781
1817
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1782
1818
|
"""
|
1783
1819
|
fetches information on an order made by the user
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1820
|
+
|
1821
|
+
https://api.hitbtc.com/#spot-orders-history
|
1822
|
+
https://api.hitbtc.com/#futures-orders-history
|
1823
|
+
https://api.hitbtc.com/#margin-orders-history
|
1824
|
+
|
1825
|
+
:param str id: order id
|
1787
1826
|
:param str symbol: unified symbol of the market the order was made in
|
1788
1827
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1789
1828
|
:param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported
|
@@ -1839,9 +1878,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1839
1878
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1840
1879
|
"""
|
1841
1880
|
fetch all the trades made from a single order
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1881
|
+
|
1882
|
+
https://api.hitbtc.com/#spot-trades-history
|
1883
|
+
https://api.hitbtc.com/#futures-trades-history
|
1884
|
+
https://api.hitbtc.com/#margin-trades-history
|
1885
|
+
|
1845
1886
|
:param str id: order id
|
1846
1887
|
:param str symbol: unified market symbol
|
1847
1888
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -1918,9 +1959,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1918
1959
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1919
1960
|
"""
|
1920
1961
|
fetch all unfilled currently open orders
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1962
|
+
|
1963
|
+
https://api.hitbtc.com/#get-all-active-spot-orders
|
1964
|
+
https://api.hitbtc.com/#get-active-futures-orders
|
1965
|
+
https://api.hitbtc.com/#get-active-margin-orders
|
1966
|
+
|
1924
1967
|
:param str symbol: unified market symbol
|
1925
1968
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1926
1969
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1976,9 +2019,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
1976
2019
|
async def fetch_open_order(self, id: str, symbol: Str = None, params={}):
|
1977
2020
|
"""
|
1978
2021
|
fetch an open order by it's id
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
2022
|
+
|
2023
|
+
https://api.hitbtc.com/#get-active-spot-order
|
2024
|
+
https://api.hitbtc.com/#get-active-futures-order
|
2025
|
+
https://api.hitbtc.com/#get-active-margin-order
|
2026
|
+
|
1982
2027
|
:param str id: order id
|
1983
2028
|
:param str symbol: unified market symbol, default is None
|
1984
2029
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2015,9 +2060,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2015
2060
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
2016
2061
|
"""
|
2017
2062
|
cancel all open orders
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2063
|
+
|
2064
|
+
https://api.hitbtc.com/#cancel-all-spot-orders
|
2065
|
+
https://api.hitbtc.com/#cancel-futures-orders
|
2066
|
+
https://api.hitbtc.com/#cancel-all-margin-orders
|
2067
|
+
|
2021
2068
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
2022
2069
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2023
2070
|
:param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported
|
@@ -2052,9 +2099,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2052
2099
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2053
2100
|
"""
|
2054
2101
|
cancels an open order
|
2055
|
-
|
2056
|
-
|
2057
|
-
|
2102
|
+
|
2103
|
+
https://api.hitbtc.com/#cancel-spot-order
|
2104
|
+
https://api.hitbtc.com/#cancel-futures-order
|
2105
|
+
https://api.hitbtc.com/#cancel-margin-order
|
2106
|
+
|
2058
2107
|
:param str id: order id
|
2059
2108
|
:param str symbol: unified symbol of the market the order was made in
|
2060
2109
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2123,9 +2172,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2123
2172
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
2124
2173
|
"""
|
2125
2174
|
create a trade order
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2175
|
+
|
2176
|
+
https://api.hitbtc.com/#create-new-spot-order
|
2177
|
+
https://api.hitbtc.com/#create-margin-order
|
2178
|
+
https://api.hitbtc.com/#create-futures-order
|
2179
|
+
|
2129
2180
|
:param str symbol: unified symbol of the market to create an order in
|
2130
2181
|
:param str type: 'market' or 'limit'
|
2131
2182
|
:param str side: 'buy' or 'sell'
|
@@ -2345,9 +2396,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2345
2396
|
async def fetch_margin_modes(self, symbols: List[Str] = None, params={}) -> MarginModes:
|
2346
2397
|
"""
|
2347
2398
|
fetches margin mode of the user
|
2348
|
-
|
2349
|
-
|
2350
|
-
|
2399
|
+
|
2400
|
+
https://api.hitbtc.com/#get-margin-position-parameters
|
2401
|
+
https://api.hitbtc.com/#get-futures-position-parameters
|
2402
|
+
|
2403
|
+
:param str[] symbols: unified market symbols
|
2351
2404
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2352
2405
|
:returns dict: a list of `margin mode structures <https://docs.ccxt.com/#/?id=margin-mode-structure>`
|
2353
2406
|
"""
|
@@ -2413,7 +2466,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2413
2466
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
2414
2467
|
"""
|
2415
2468
|
transfer currency internally between wallets on the same account
|
2416
|
-
|
2469
|
+
|
2470
|
+
https://api.hitbtc.com/#transfer-between-wallet-and-exchange
|
2471
|
+
|
2417
2472
|
:param str code: unified currency code
|
2418
2473
|
:param float amount: amount to transfer
|
2419
2474
|
:param str fromAccount: account to transfer from
|
@@ -2494,7 +2549,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2494
2549
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2495
2550
|
"""
|
2496
2551
|
make a withdrawal
|
2497
|
-
|
2552
|
+
|
2553
|
+
https://api.hitbtc.com/#withdraw-crypto
|
2554
|
+
|
2498
2555
|
:param str code: unified currency code
|
2499
2556
|
:param float amount: the amount to withdraw
|
2500
2557
|
:param str address: the address to withdraw to
|
@@ -2535,7 +2592,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2535
2592
|
async def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
2536
2593
|
"""
|
2537
2594
|
fetches funding rates for multiple markets
|
2538
|
-
|
2595
|
+
|
2596
|
+
https://api.hitbtc.com/#futures-info
|
2597
|
+
|
2539
2598
|
:param str[] symbols: unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
2540
2599
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2541
2600
|
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -2583,7 +2642,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2583
2642
|
|
2584
2643
|
async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2585
2644
|
"""
|
2586
|
-
|
2645
|
+
|
2646
|
+
https://api.hitbtc.com/#funding-history
|
2647
|
+
|
2587
2648
|
fetches historical funding rate prices
|
2588
2649
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2589
2650
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
@@ -2657,8 +2718,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2657
2718
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
2658
2719
|
"""
|
2659
2720
|
fetch all open positions
|
2660
|
-
|
2661
|
-
|
2721
|
+
|
2722
|
+
https://api.hitbtc.com/#get-futures-margin-accounts
|
2723
|
+
https://api.hitbtc.com/#get-all-margin-accounts
|
2724
|
+
|
2662
2725
|
:param str[]|None symbols: not used by hitbtc fetchPositions()
|
2663
2726
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2664
2727
|
:param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if self is set
|
@@ -2724,8 +2787,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2724
2787
|
async def fetch_position(self, symbol: str, params={}):
|
2725
2788
|
"""
|
2726
2789
|
fetch data on a single open contract trade position
|
2727
|
-
|
2728
|
-
|
2790
|
+
|
2791
|
+
https://api.hitbtc.com/#get-futures-margin-account
|
2792
|
+
https://api.hitbtc.com/#get-isolated-margin-account
|
2793
|
+
|
2729
2794
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
2730
2795
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2731
2796
|
:param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if self is set
|
@@ -2900,7 +2965,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2900
2965
|
async def fetch_open_interest(self, symbol: str, params={}):
|
2901
2966
|
"""
|
2902
2967
|
Retrieves the open interest of a derivative trading pair
|
2903
|
-
|
2968
|
+
|
2969
|
+
https://api.hitbtc.com/#futures-info
|
2970
|
+
|
2904
2971
|
:param str symbol: Unified CCXT market symbol
|
2905
2972
|
:param dict [params]: exchange specific parameters
|
2906
2973
|
:returns dict} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure:
|
@@ -2933,7 +3000,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
2933
3000
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
2934
3001
|
"""
|
2935
3002
|
fetch the current funding rate
|
2936
|
-
|
3003
|
+
|
3004
|
+
https://api.hitbtc.com/#futures-info
|
3005
|
+
|
2937
3006
|
:param str symbol: unified market symbol
|
2938
3007
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2939
3008
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -3096,8 +3165,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3096
3165
|
async def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
3097
3166
|
"""
|
3098
3167
|
remove margin from a position
|
3099
|
-
|
3100
|
-
|
3168
|
+
|
3169
|
+
https://api.hitbtc.com/#create-update-margin-account-2
|
3170
|
+
https://api.hitbtc.com/#create-update-margin-account
|
3171
|
+
|
3101
3172
|
:param str symbol: unified market symbol
|
3102
3173
|
:param float amount: the amount of margin to remove
|
3103
3174
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3112,8 +3183,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3112
3183
|
async def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
3113
3184
|
"""
|
3114
3185
|
add margin
|
3115
|
-
|
3116
|
-
|
3186
|
+
|
3187
|
+
https://api.hitbtc.com/#create-update-margin-account-2
|
3188
|
+
https://api.hitbtc.com/#create-update-margin-account
|
3189
|
+
|
3117
3190
|
:param str symbol: unified market symbol
|
3118
3191
|
:param float amount: amount of margin to add
|
3119
3192
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3126,8 +3199,10 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3126
3199
|
async def fetch_leverage(self, symbol: str, params={}) -> Leverage:
|
3127
3200
|
"""
|
3128
3201
|
fetch the set leverage for a market
|
3129
|
-
|
3130
|
-
|
3202
|
+
|
3203
|
+
https://api.hitbtc.com/#get-futures-margin-account
|
3204
|
+
https://api.hitbtc.com/#get-isolated-margin-account
|
3205
|
+
|
3131
3206
|
:param str symbol: unified market symbol
|
3132
3207
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3133
3208
|
:param str [params.marginMode]: 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if self is set
|
@@ -3200,7 +3275,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3200
3275
|
async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
3201
3276
|
"""
|
3202
3277
|
set the level of leverage for a market
|
3203
|
-
|
3278
|
+
|
3279
|
+
https://api.hitbtc.com/#create-update-margin-account-2
|
3280
|
+
|
3204
3281
|
:param float leverage: the rate of leverage
|
3205
3282
|
:param str symbol: unified market symbol
|
3206
3283
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3229,7 +3306,9 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3229
3306
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
3230
3307
|
"""
|
3231
3308
|
fetch deposit and withdraw fees
|
3232
|
-
|
3309
|
+
|
3310
|
+
https://api.hitbtc.com/#currencies
|
3311
|
+
|
3233
3312
|
:param str[]|None codes: list of unified currency codes
|
3234
3313
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3235
3314
|
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -3314,7 +3393,11 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3314
3393
|
async def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
|
3315
3394
|
"""
|
3316
3395
|
closes open positions for a market
|
3317
|
-
|
3396
|
+
|
3397
|
+
https://api.hitbtc.com/#close-all-futures-margin-positions
|
3398
|
+
|
3399
|
+
:param str symbol: unified ccxt market symbol
|
3400
|
+
:param str side: 'buy' or 'sell'
|
3318
3401
|
:param dict [params]: extra parameters specific to the okx api endpoint
|
3319
3402
|
:param str [params.symbol]: *required* unified market symbol
|
3320
3403
|
:param str [params.marginMode]: 'cross' or 'isolated', default is 'cross'
|
@@ -3348,7 +3431,7 @@ class hitbtc(Exchange, ImplicitAPI):
|
|
3348
3431
|
|
3349
3432
|
def handle_margin_mode_and_params(self, methodName, params={}, defaultValue=None):
|
3350
3433
|
"""
|
3351
|
-
|
3434
|
+
@ignore
|
3352
3435
|
marginMode specified by params["marginMode"], self.options["marginMode"], self.options["defaultMarginMode"], params["margin"] = True or self.options["defaultType"] = 'margin'
|
3353
3436
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3354
3437
|
:returns Array: the marginMode in lowercase
|