ccxt 4.4.30__py2.py3-none-any.whl → 4.4.31__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/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 -19
- 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 +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- 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 +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- 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 +91 -41
- 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 +29 -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 +118 -49
- 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 +34 -34
- 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 -19
- 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 +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- 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 +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- 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 +91 -41
- 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 +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- 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 +51 -17
- 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 +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- 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 +35 -17
- 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 +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- 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.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/async_support/bitrue.py
CHANGED
@@ -544,7 +544,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
544
544
|
async def fetch_status(self, params={}):
|
545
545
|
"""
|
546
546
|
the latest known information on the availability of the exchange API
|
547
|
-
|
547
|
+
|
548
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#test-connectivity
|
549
|
+
|
548
550
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
549
551
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
550
552
|
"""
|
@@ -568,7 +570,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
568
570
|
async def fetch_time(self, params={}):
|
569
571
|
"""
|
570
572
|
fetches the current integer timestamp in milliseconds from the exchange server
|
571
|
-
|
573
|
+
|
574
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#check-server-time
|
575
|
+
|
572
576
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
573
577
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
574
578
|
"""
|
@@ -704,9 +708,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
704
708
|
async def fetch_markets(self, params={}) -> List[Market]:
|
705
709
|
"""
|
706
710
|
retrieves data on all markets for bitrue
|
707
|
-
|
708
|
-
|
709
|
-
|
711
|
+
|
712
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
713
|
+
https://www.bitrue.com/api-docs#current-open-contract
|
714
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#current-open-contract
|
715
|
+
|
710
716
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
711
717
|
:returns dict[]: an array of objects representing market data
|
712
718
|
"""
|
@@ -963,9 +969,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
963
969
|
async def fetch_balance(self, params={}) -> Balances:
|
964
970
|
"""
|
965
971
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
966
|
-
|
967
|
-
|
968
|
-
|
972
|
+
|
973
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#account-information-user_data
|
974
|
+
https://www.bitrue.com/api-docs#account-information-v2-user_data-hmac-sha256
|
975
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#account-information-v2-user_data-hmac-sha256
|
976
|
+
|
969
977
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
970
978
|
:param str [params.type]: 'future', 'delivery', 'spot', 'swap'
|
971
979
|
:param str [params.subType]: 'linear', 'inverse'
|
@@ -1070,9 +1078,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1070
1078
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1071
1079
|
"""
|
1072
1080
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1081
|
+
|
1082
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#order-book
|
1083
|
+
https://www.bitrue.com/api-docs#order-book
|
1084
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#order-book
|
1085
|
+
|
1076
1086
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1077
1087
|
:param int [limit]: the maximum amount of order book entries to return
|
1078
1088
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1204,9 +1214,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1204
1214
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1205
1215
|
"""
|
1206
1216
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1217
|
+
|
1218
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#24hr-ticker-price-change-statistics
|
1219
|
+
https://www.bitrue.com/api-docs#ticker
|
1220
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
1221
|
+
|
1210
1222
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1211
1223
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1212
1224
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1275,9 +1287,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1275
1287
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1276
1288
|
"""
|
1277
1289
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1290
|
+
|
1291
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#kline-data
|
1292
|
+
https://www.bitrue.com/api-docs#kline-candlestick-data
|
1293
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#kline-candlestick-data
|
1294
|
+
|
1281
1295
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1282
1296
|
:param str timeframe: the length of time each candle represents
|
1283
1297
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1393,9 +1407,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1393
1407
|
async def fetch_bids_asks(self, symbols: Strings = None, params={}):
|
1394
1408
|
"""
|
1395
1409
|
fetches the bid and ask price and volume for multiple markets
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1410
|
+
|
1411
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#symbol-order-book-ticker
|
1412
|
+
https://www.bitrue.com/api-docs#ticker
|
1413
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
1414
|
+
|
1399
1415
|
:param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
1400
1416
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1401
1417
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1451,9 +1467,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1451
1467
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1452
1468
|
"""
|
1453
1469
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1470
|
+
|
1471
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#24hr-ticker-price-change-statistics
|
1472
|
+
https://www.bitrue.com/api-docs#ticker
|
1473
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
1474
|
+
|
1457
1475
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1458
1476
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1459
1477
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1620,7 +1638,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1620
1638
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1621
1639
|
"""
|
1622
1640
|
get the list of most recent trades for a particular symbol
|
1623
|
-
|
1641
|
+
|
1642
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#recent-trades-list
|
1643
|
+
|
1624
1644
|
:param str symbol: unified symbol of the market to fetch trades for
|
1625
1645
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1626
1646
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1787,8 +1807,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1787
1807
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
1788
1808
|
"""
|
1789
1809
|
create a market buy order by providing the symbol and cost
|
1790
|
-
|
1791
|
-
|
1810
|
+
|
1811
|
+
https://www.bitrue.com/api-docs#new-order-trade-hmac-sha256
|
1812
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#new-order-trade-hmac-sha256
|
1813
|
+
|
1792
1814
|
:param str symbol: unified symbol of the market to create an order in
|
1793
1815
|
:param float cost: how much you want to trade in units of the quote currency
|
1794
1816
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1804,9 +1826,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1804
1826
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1805
1827
|
"""
|
1806
1828
|
create a trade order
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1829
|
+
|
1830
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#recent-trades-list
|
1831
|
+
https://www.bitrue.com/api-docs#new-order-trade-hmac-sha256
|
1832
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#new-order-trade-hmac-sha256
|
1833
|
+
|
1810
1834
|
:param str symbol: unified symbol of the market to create an order in
|
1811
1835
|
:param str type: 'market' or 'limit'
|
1812
1836
|
:param str side: 'buy' or 'sell'
|
@@ -1819,7 +1843,7 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1819
1843
|
:param str [params.timeInForce]: 'fok', 'ioc' or 'po'
|
1820
1844
|
:param bool [params.postOnly]: default False
|
1821
1845
|
:param bool [params.reduceOnly]: default False
|
1822
|
-
|
1846
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1823
1847
|
:param decimal [params.icebergQty]:
|
1824
1848
|
:param long [params.recvWindow]:
|
1825
1849
|
:param float [params.cost]: *swap market buy only* the quote quantity that can be used alternative for the amount
|
@@ -1926,9 +1950,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1926
1950
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1927
1951
|
"""
|
1928
1952
|
fetches information on an order made by the user
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1953
|
+
|
1954
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#query-order-user_data
|
1955
|
+
https://www.bitrue.com/api-docs#query-order-user_data-hmac-sha256
|
1956
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#query-order-user_data-hmac-sha256
|
1957
|
+
|
1932
1958
|
:param str id: the order id
|
1933
1959
|
:param str symbol: unified symbol of the market the order was made in
|
1934
1960
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2012,7 +2038,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2012
2038
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2013
2039
|
"""
|
2014
2040
|
fetches information on multiple closed orders made by the user
|
2015
|
-
|
2041
|
+
|
2042
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#all-orders-user_data
|
2043
|
+
|
2016
2044
|
:param str symbol: unified market symbol of the market orders were made in
|
2017
2045
|
:param int [since]: the earliest time in ms to fetch orders for
|
2018
2046
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2064,9 +2092,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2064
2092
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2065
2093
|
"""
|
2066
2094
|
fetch all unfilled currently open orders
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2095
|
+
|
2096
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#current-open-orders-user_data
|
2097
|
+
https://www.bitrue.com/api-docs#current-all-open-orders-user_data-hmac-sha256
|
2098
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#current-all-open-orders-user_data-hmac-sha256
|
2099
|
+
|
2070
2100
|
:param str symbol: unified market symbol
|
2071
2101
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2072
2102
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -2144,9 +2174,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2144
2174
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2145
2175
|
"""
|
2146
2176
|
cancels an open order
|
2147
|
-
|
2148
|
-
|
2149
|
-
|
2177
|
+
|
2178
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#cancel-order-trade
|
2179
|
+
https://www.bitrue.com/api-docs#cancel-order-trade-hmac-sha256
|
2180
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#cancel-order-trade-hmac-sha256
|
2181
|
+
|
2150
2182
|
:param str id: order id
|
2151
2183
|
:param str symbol: unified symbol of the market the order was made in
|
2152
2184
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2206,8 +2238,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2206
2238
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
2207
2239
|
"""
|
2208
2240
|
cancel all open orders in a market
|
2209
|
-
|
2210
|
-
|
2241
|
+
|
2242
|
+
https://www.bitrue.com/api-docs#cancel-all-open-orders-trade-hmac-sha256
|
2243
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#cancel-all-open-orders-trade-hmac-sha256
|
2244
|
+
|
2211
2245
|
:param str symbol: unified market symbol of the market to cancel orders in
|
2212
2246
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2213
2247
|
:param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
|
@@ -2242,9 +2276,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2242
2276
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2243
2277
|
"""
|
2244
2278
|
fetch all trades made by the user
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2279
|
+
|
2280
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#account-trade-list-user_data
|
2281
|
+
https://www.bitrue.com/api-docs#account-trade-list-user_data-hmac-sha256
|
2282
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#account-trade-list-user_data-hmac-sha256
|
2283
|
+
|
2248
2284
|
:param str symbol: unified market symbol
|
2249
2285
|
:param int [since]: the earliest time in ms to fetch trades for
|
2250
2286
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2327,7 +2363,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2327
2363
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2328
2364
|
"""
|
2329
2365
|
fetch all deposits made to an account
|
2330
|
-
|
2366
|
+
|
2367
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#deposit-history--withdraw_data
|
2368
|
+
|
2331
2369
|
:param str code: unified currency code
|
2332
2370
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2333
2371
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2394,7 +2432,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2394
2432
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2395
2433
|
"""
|
2396
2434
|
fetch all withdrawals made from an account
|
2397
|
-
|
2435
|
+
|
2436
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#withdraw-history--withdraw_data
|
2437
|
+
|
2398
2438
|
:param str code: unified currency code
|
2399
2439
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2400
2440
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2583,7 +2623,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2583
2623
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2584
2624
|
"""
|
2585
2625
|
make a withdrawal
|
2586
|
-
|
2626
|
+
|
2627
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#withdraw-commit--withdraw_data
|
2628
|
+
|
2587
2629
|
:param str code: unified currency code
|
2588
2630
|
:param float amount: the amount to withdraw
|
2589
2631
|
:param str address: the address to withdraw to
|
@@ -2670,7 +2712,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2670
2712
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
2671
2713
|
"""
|
2672
2714
|
fetch deposit and withdraw fees
|
2673
|
-
|
2715
|
+
|
2716
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
2717
|
+
|
2674
2718
|
:param str[]|None codes: list of unified currency codes
|
2675
2719
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2676
2720
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -2719,8 +2763,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2719
2763
|
async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
|
2720
2764
|
"""
|
2721
2765
|
fetch a history of internal transfers made on an account
|
2722
|
-
|
2723
|
-
|
2766
|
+
|
2767
|
+
https://www.bitrue.com/api-docs#get-future-account-transfer-history-list-user_data-hmac-sha256
|
2768
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#get-future-account-transfer-history-list-user_data-hmac-sha256
|
2769
|
+
|
2724
2770
|
:param str code: unified currency code of the currency transferred
|
2725
2771
|
:param int [since]: the earliest time in ms to fetch transfers for
|
2726
2772
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -2768,8 +2814,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2768
2814
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
2769
2815
|
"""
|
2770
2816
|
transfer currency internally between wallets on the same account
|
2771
|
-
|
2772
|
-
|
2817
|
+
|
2818
|
+
https://www.bitrue.com/api-docs#new-future-account-transfer-user_data-hmac-sha256
|
2819
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#user-commission-rate-user_data-hmac-sha256
|
2820
|
+
|
2773
2821
|
:param str code: unified currency code
|
2774
2822
|
:param float amount: amount to transfer
|
2775
2823
|
:param str fromAccount: account to transfer from
|
@@ -2801,8 +2849,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2801
2849
|
async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
2802
2850
|
"""
|
2803
2851
|
set the level of leverage for a market
|
2804
|
-
|
2805
|
-
|
2852
|
+
|
2853
|
+
https://www.bitrue.com/api-docs#change-initial-leverage-trade-hmac-sha256
|
2854
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#change-initial-leverage-trade-hmac-sha256
|
2855
|
+
|
2806
2856
|
:param float leverage: the rate of leverage
|
2807
2857
|
:param str symbol: unified market symbol
|
2808
2858
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2853,8 +2903,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2853
2903
|
async def set_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
2854
2904
|
"""
|
2855
2905
|
Either adds or reduces margin in an isolated position in order to set the margin to a specific value
|
2856
|
-
|
2857
|
-
|
2906
|
+
|
2907
|
+
https://www.bitrue.com/api-docs#modify-isolated-position-margin-trade-hmac-sha256
|
2908
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#modify-isolated-position-margin-trade-hmac-sha256
|
2909
|
+
|
2858
2910
|
:param str symbol: unified market symbol of the market to set margin in
|
2859
2911
|
:param float amount: the amount to set the margin to
|
2860
2912
|
:param dict [params]: parameters specific to the exchange API endpoint
|
ccxt/async_support/bitso.py
CHANGED
@@ -355,7 +355,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
355
355
|
async def fetch_markets(self, params={}) -> List[Market]:
|
356
356
|
"""
|
357
357
|
retrieves data on all markets for bitso
|
358
|
-
|
358
|
+
|
359
|
+
https://docs.bitso.com/bitso-api/docs/list-available-books
|
360
|
+
|
359
361
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
360
362
|
:returns dict[]: an array of objects representing market data
|
361
363
|
"""
|
@@ -509,7 +511,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
509
511
|
async def fetch_balance(self, params={}) -> Balances:
|
510
512
|
"""
|
511
513
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
512
|
-
|
514
|
+
|
515
|
+
https://docs.bitso.com/bitso-api/docs/get-account-balance
|
516
|
+
|
513
517
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
514
518
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
515
519
|
"""
|
@@ -545,7 +549,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
545
549
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
546
550
|
"""
|
547
551
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
548
|
-
|
552
|
+
|
553
|
+
https://docs.bitso.com/bitso-api/docs/list-order-book
|
554
|
+
|
549
555
|
:param str symbol: unified symbol of the market to fetch the order book for
|
550
556
|
:param int [limit]: the maximum amount of order book entries to return
|
551
557
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -608,7 +614,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
608
614
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
609
615
|
"""
|
610
616
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
611
|
-
|
617
|
+
|
618
|
+
https://docs.bitso.com/bitso-api/docs/ticker
|
619
|
+
|
612
620
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
613
621
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
614
622
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -813,7 +821,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
813
821
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
814
822
|
"""
|
815
823
|
get the list of most recent trades for a particular symbol
|
816
|
-
|
824
|
+
|
825
|
+
https://docs.bitso.com/bitso-api/docs/list-trades
|
826
|
+
|
817
827
|
:param str symbol: unified symbol of the market to fetch trades for
|
818
828
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
819
829
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -831,7 +841,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
831
841
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
832
842
|
"""
|
833
843
|
fetch the trading fees for multiple markets
|
834
|
-
|
844
|
+
|
845
|
+
https://docs.bitso.com/bitso-api/docs/list-fees
|
846
|
+
|
835
847
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
836
848
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
837
849
|
"""
|
@@ -900,7 +912,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
900
912
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = 25, params={}):
|
901
913
|
"""
|
902
914
|
fetch all trades made by the user
|
903
|
-
|
915
|
+
|
916
|
+
https://docs.bitso.com/bitso-api/docs/user-trades
|
917
|
+
|
904
918
|
:param str symbol: unified market symbol
|
905
919
|
:param int [since]: the earliest time in ms to fetch trades for
|
906
920
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -934,7 +948,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
934
948
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
935
949
|
"""
|
936
950
|
create a trade order
|
937
|
-
|
951
|
+
|
952
|
+
https://docs.bitso.com/bitso-api/docs/place-an-order
|
953
|
+
|
938
954
|
:param str symbol: unified symbol of the market to create an order in
|
939
955
|
:param str type: 'market' or 'limit'
|
940
956
|
:param str side: 'buy' or 'sell'
|
@@ -963,7 +979,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
963
979
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
964
980
|
"""
|
965
981
|
cancels an open order
|
966
|
-
|
982
|
+
|
983
|
+
https://docs.bitso.com/bitso-api/docs/cancel-an-order
|
984
|
+
|
967
985
|
:param str id: order id
|
968
986
|
:param str symbol: not used by bitso cancelOrder()
|
969
987
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -990,7 +1008,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
990
1008
|
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
991
1009
|
"""
|
992
1010
|
cancel multiple orders
|
993
|
-
|
1011
|
+
|
1012
|
+
https://docs.bitso.com/bitso-api/docs/cancel-an-order
|
1013
|
+
|
994
1014
|
:param str[] ids: order ids
|
995
1015
|
:param str symbol: unified market symbol
|
996
1016
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1022,7 +1042,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
1022
1042
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1023
1043
|
"""
|
1024
1044
|
cancel all open orders
|
1025
|
-
|
1045
|
+
|
1046
|
+
https://docs.bitso.com/bitso-api/docs/cancel-an-order
|
1047
|
+
|
1026
1048
|
:param None symbol: bitso does not support canceling orders for only a specific market
|
1027
1049
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1028
1050
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1101,7 +1123,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
1101
1123
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = 25, params={}) -> List[Order]:
|
1102
1124
|
"""
|
1103
1125
|
fetch all unfilled currently open orders
|
1104
|
-
|
1126
|
+
|
1127
|
+
https://docs.bitso.com/bitso-api/docs/list-open-orders
|
1128
|
+
|
1105
1129
|
:param str symbol: unified market symbol
|
1106
1130
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1107
1131
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1136,7 +1160,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
1136
1160
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1137
1161
|
"""
|
1138
1162
|
fetches information on an order made by the user
|
1139
|
-
|
1163
|
+
|
1164
|
+
https://docs.bitso.com/bitso-api/docs/look-up-orders
|
1165
|
+
|
1140
1166
|
:param str id: the order id
|
1141
1167
|
:param str symbol: not used by bitso fetchOrder
|
1142
1168
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1156,7 +1182,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
1156
1182
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1157
1183
|
"""
|
1158
1184
|
fetch all the trades made from a single order
|
1159
|
-
|
1185
|
+
|
1186
|
+
https://docs.bitso.com/bitso-api/docs/list-user-trades
|
1187
|
+
|
1160
1188
|
:param str id: order id
|
1161
1189
|
:param str symbol: unified market symbol
|
1162
1190
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -1175,7 +1203,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
1175
1203
|
async def fetch_deposit(self, id: str, code: Str = None, params={}):
|
1176
1204
|
"""
|
1177
1205
|
fetch information on a deposit
|
1178
|
-
|
1206
|
+
|
1207
|
+
https://docs.bitso.com/bitso-payouts-funding/docs/fundings
|
1208
|
+
|
1179
1209
|
:param str id: deposit id
|
1180
1210
|
:param str code: bitso does not support filtering by currency code and will ignore self argument
|
1181
1211
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1216,7 +1246,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
1216
1246
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1217
1247
|
"""
|
1218
1248
|
fetch all deposits made to an account
|
1219
|
-
|
1249
|
+
|
1250
|
+
https://docs.bitso.com/bitso-payouts-funding/docs/fundings
|
1251
|
+
|
1220
1252
|
:param str code: unified currency code
|
1221
1253
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1222
1254
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1284,9 +1316,11 @@ class bitso(Exchange, ImplicitAPI):
|
|
1284
1316
|
|
1285
1317
|
async def fetch_transaction_fees(self, codes: Strings = None, params={}):
|
1286
1318
|
"""
|
1287
|
-
|
1319
|
+
@deprecated
|
1288
1320
|
please use fetchDepositWithdrawFees instead
|
1289
|
-
|
1321
|
+
|
1322
|
+
https://docs.bitso.com/bitso-api/docs/list-fees
|
1323
|
+
|
1290
1324
|
:param str[]|None codes: list of unified currency codes
|
1291
1325
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1292
1326
|
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1373,7 +1407,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
1373
1407
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
1374
1408
|
"""
|
1375
1409
|
fetch deposit and withdraw fees
|
1376
|
-
|
1410
|
+
|
1411
|
+
https://docs.bitso.com/bitso-api/docs/list-fees
|
1412
|
+
|
1377
1413
|
:param str[]|None codes: list of unified currency codes
|
1378
1414
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1379
1415
|
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|