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/bitrue.py
CHANGED
@@ -543,7 +543,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
543
543
|
def fetch_status(self, params={}):
|
544
544
|
"""
|
545
545
|
the latest known information on the availability of the exchange API
|
546
|
-
|
546
|
+
|
547
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#test-connectivity
|
548
|
+
|
547
549
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
548
550
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
549
551
|
"""
|
@@ -567,7 +569,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
567
569
|
def fetch_time(self, params={}):
|
568
570
|
"""
|
569
571
|
fetches the current integer timestamp in milliseconds from the exchange server
|
570
|
-
|
572
|
+
|
573
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#check-server-time
|
574
|
+
|
571
575
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
572
576
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
573
577
|
"""
|
@@ -703,9 +707,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
703
707
|
def fetch_markets(self, params={}) -> List[Market]:
|
704
708
|
"""
|
705
709
|
retrieves data on all markets for bitrue
|
706
|
-
|
707
|
-
|
708
|
-
|
710
|
+
|
711
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
712
|
+
https://www.bitrue.com/api-docs#current-open-contract
|
713
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#current-open-contract
|
714
|
+
|
709
715
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
710
716
|
:returns dict[]: an array of objects representing market data
|
711
717
|
"""
|
@@ -962,9 +968,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
962
968
|
def fetch_balance(self, params={}) -> Balances:
|
963
969
|
"""
|
964
970
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
965
|
-
|
966
|
-
|
967
|
-
|
971
|
+
|
972
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#account-information-user_data
|
973
|
+
https://www.bitrue.com/api-docs#account-information-v2-user_data-hmac-sha256
|
974
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#account-information-v2-user_data-hmac-sha256
|
975
|
+
|
968
976
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
969
977
|
:param str [params.type]: 'future', 'delivery', 'spot', 'swap'
|
970
978
|
:param str [params.subType]: 'linear', 'inverse'
|
@@ -1069,9 +1077,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1069
1077
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1070
1078
|
"""
|
1071
1079
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1080
|
+
|
1081
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#order-book
|
1082
|
+
https://www.bitrue.com/api-docs#order-book
|
1083
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#order-book
|
1084
|
+
|
1075
1085
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1076
1086
|
:param int [limit]: the maximum amount of order book entries to return
|
1077
1087
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1203,9 +1213,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1203
1213
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1204
1214
|
"""
|
1205
1215
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1216
|
+
|
1217
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#24hr-ticker-price-change-statistics
|
1218
|
+
https://www.bitrue.com/api-docs#ticker
|
1219
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
1220
|
+
|
1209
1221
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1210
1222
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1211
1223
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1274,9 +1286,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1274
1286
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1275
1287
|
"""
|
1276
1288
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1289
|
+
|
1290
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#kline-data
|
1291
|
+
https://www.bitrue.com/api-docs#kline-candlestick-data
|
1292
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#kline-candlestick-data
|
1293
|
+
|
1280
1294
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1281
1295
|
:param str timeframe: the length of time each candle represents
|
1282
1296
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1392,9 +1406,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1392
1406
|
def fetch_bids_asks(self, symbols: Strings = None, params={}):
|
1393
1407
|
"""
|
1394
1408
|
fetches the bid and ask price and volume for multiple markets
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1409
|
+
|
1410
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#symbol-order-book-ticker
|
1411
|
+
https://www.bitrue.com/api-docs#ticker
|
1412
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
1413
|
+
|
1398
1414
|
:param str[]|None symbols: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
1399
1415
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1400
1416
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1450,9 +1466,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1450
1466
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1451
1467
|
"""
|
1452
1468
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1469
|
+
|
1470
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#24hr-ticker-price-change-statistics
|
1471
|
+
https://www.bitrue.com/api-docs#ticker
|
1472
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#ticker
|
1473
|
+
|
1456
1474
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1457
1475
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1458
1476
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1619,7 +1637,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1619
1637
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1620
1638
|
"""
|
1621
1639
|
get the list of most recent trades for a particular symbol
|
1622
|
-
|
1640
|
+
|
1641
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#recent-trades-list
|
1642
|
+
|
1623
1643
|
:param str symbol: unified symbol of the market to fetch trades for
|
1624
1644
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1625
1645
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1786,8 +1806,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1786
1806
|
def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
1787
1807
|
"""
|
1788
1808
|
create a market buy order by providing the symbol and cost
|
1789
|
-
|
1790
|
-
|
1809
|
+
|
1810
|
+
https://www.bitrue.com/api-docs#new-order-trade-hmac-sha256
|
1811
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#new-order-trade-hmac-sha256
|
1812
|
+
|
1791
1813
|
:param str symbol: unified symbol of the market to create an order in
|
1792
1814
|
:param float cost: how much you want to trade in units of the quote currency
|
1793
1815
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1803,9 +1825,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1803
1825
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1804
1826
|
"""
|
1805
1827
|
create a trade order
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1828
|
+
|
1829
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#recent-trades-list
|
1830
|
+
https://www.bitrue.com/api-docs#new-order-trade-hmac-sha256
|
1831
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#new-order-trade-hmac-sha256
|
1832
|
+
|
1809
1833
|
:param str symbol: unified symbol of the market to create an order in
|
1810
1834
|
:param str type: 'market' or 'limit'
|
1811
1835
|
:param str side: 'buy' or 'sell'
|
@@ -1818,7 +1842,7 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1818
1842
|
:param str [params.timeInForce]: 'fok', 'ioc' or 'po'
|
1819
1843
|
:param bool [params.postOnly]: default False
|
1820
1844
|
:param bool [params.reduceOnly]: default False
|
1821
|
-
|
1845
|
+
EXCHANGE SPECIFIC PARAMETERS
|
1822
1846
|
:param decimal [params.icebergQty]:
|
1823
1847
|
:param long [params.recvWindow]:
|
1824
1848
|
:param float [params.cost]: *swap market buy only* the quote quantity that can be used alternative for the amount
|
@@ -1925,9 +1949,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
1925
1949
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1926
1950
|
"""
|
1927
1951
|
fetches information on an order made by the user
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1952
|
+
|
1953
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#query-order-user_data
|
1954
|
+
https://www.bitrue.com/api-docs#query-order-user_data-hmac-sha256
|
1955
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#query-order-user_data-hmac-sha256
|
1956
|
+
|
1931
1957
|
:param str id: the order id
|
1932
1958
|
:param str symbol: unified symbol of the market the order was made in
|
1933
1959
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2011,7 +2037,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2011
2037
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2012
2038
|
"""
|
2013
2039
|
fetches information on multiple closed orders made by the user
|
2014
|
-
|
2040
|
+
|
2041
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#all-orders-user_data
|
2042
|
+
|
2015
2043
|
:param str symbol: unified market symbol of the market orders were made in
|
2016
2044
|
:param int [since]: the earliest time in ms to fetch orders for
|
2017
2045
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2063,9 +2091,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2063
2091
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
2064
2092
|
"""
|
2065
2093
|
fetch all unfilled currently open orders
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2094
|
+
|
2095
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#current-open-orders-user_data
|
2096
|
+
https://www.bitrue.com/api-docs#current-all-open-orders-user_data-hmac-sha256
|
2097
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#current-all-open-orders-user_data-hmac-sha256
|
2098
|
+
|
2069
2099
|
:param str symbol: unified market symbol
|
2070
2100
|
:param int [since]: the earliest time in ms to fetch open orders for
|
2071
2101
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -2143,9 +2173,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2143
2173
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
2144
2174
|
"""
|
2145
2175
|
cancels an open order
|
2146
|
-
|
2147
|
-
|
2148
|
-
|
2176
|
+
|
2177
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#cancel-order-trade
|
2178
|
+
https://www.bitrue.com/api-docs#cancel-order-trade-hmac-sha256
|
2179
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#cancel-order-trade-hmac-sha256
|
2180
|
+
|
2149
2181
|
:param str id: order id
|
2150
2182
|
:param str symbol: unified symbol of the market the order was made in
|
2151
2183
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2205,8 +2237,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2205
2237
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
2206
2238
|
"""
|
2207
2239
|
cancel all open orders in a market
|
2208
|
-
|
2209
|
-
|
2240
|
+
|
2241
|
+
https://www.bitrue.com/api-docs#cancel-all-open-orders-trade-hmac-sha256
|
2242
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#cancel-all-open-orders-trade-hmac-sha256
|
2243
|
+
|
2210
2244
|
:param str symbol: unified market symbol of the market to cancel orders in
|
2211
2245
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2212
2246
|
:param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
|
@@ -2241,9 +2275,11 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2241
2275
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2242
2276
|
"""
|
2243
2277
|
fetch all trades made by the user
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2278
|
+
|
2279
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#account-trade-list-user_data
|
2280
|
+
https://www.bitrue.com/api-docs#account-trade-list-user_data-hmac-sha256
|
2281
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#account-trade-list-user_data-hmac-sha256
|
2282
|
+
|
2247
2283
|
:param str symbol: unified market symbol
|
2248
2284
|
:param int [since]: the earliest time in ms to fetch trades for
|
2249
2285
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2326,7 +2362,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2326
2362
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2327
2363
|
"""
|
2328
2364
|
fetch all deposits made to an account
|
2329
|
-
|
2365
|
+
|
2366
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#deposit-history--withdraw_data
|
2367
|
+
|
2330
2368
|
:param str code: unified currency code
|
2331
2369
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2332
2370
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2393,7 +2431,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2393
2431
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2394
2432
|
"""
|
2395
2433
|
fetch all withdrawals made from an account
|
2396
|
-
|
2434
|
+
|
2435
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#withdraw-history--withdraw_data
|
2436
|
+
|
2397
2437
|
:param str code: unified currency code
|
2398
2438
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2399
2439
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2582,7 +2622,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2582
2622
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2583
2623
|
"""
|
2584
2624
|
make a withdrawal
|
2585
|
-
|
2625
|
+
|
2626
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#withdraw-commit--withdraw_data
|
2627
|
+
|
2586
2628
|
:param str code: unified currency code
|
2587
2629
|
:param float amount: the amount to withdraw
|
2588
2630
|
:param str address: the address to withdraw to
|
@@ -2669,7 +2711,9 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2669
2711
|
def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
2670
2712
|
"""
|
2671
2713
|
fetch deposit and withdraw fees
|
2672
|
-
|
2714
|
+
|
2715
|
+
https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
2716
|
+
|
2673
2717
|
:param str[]|None codes: list of unified currency codes
|
2674
2718
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2675
2719
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -2718,8 +2762,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2718
2762
|
def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
|
2719
2763
|
"""
|
2720
2764
|
fetch a history of internal transfers made on an account
|
2721
|
-
|
2722
|
-
|
2765
|
+
|
2766
|
+
https://www.bitrue.com/api-docs#get-future-account-transfer-history-list-user_data-hmac-sha256
|
2767
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#get-future-account-transfer-history-list-user_data-hmac-sha256
|
2768
|
+
|
2723
2769
|
:param str code: unified currency code of the currency transferred
|
2724
2770
|
:param int [since]: the earliest time in ms to fetch transfers for
|
2725
2771
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -2767,8 +2813,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2767
2813
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
2768
2814
|
"""
|
2769
2815
|
transfer currency internally between wallets on the same account
|
2770
|
-
|
2771
|
-
|
2816
|
+
|
2817
|
+
https://www.bitrue.com/api-docs#new-future-account-transfer-user_data-hmac-sha256
|
2818
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#user-commission-rate-user_data-hmac-sha256
|
2819
|
+
|
2772
2820
|
:param str code: unified currency code
|
2773
2821
|
:param float amount: amount to transfer
|
2774
2822
|
:param str fromAccount: account to transfer from
|
@@ -2800,8 +2848,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2800
2848
|
def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
2801
2849
|
"""
|
2802
2850
|
set the level of leverage for a market
|
2803
|
-
|
2804
|
-
|
2851
|
+
|
2852
|
+
https://www.bitrue.com/api-docs#change-initial-leverage-trade-hmac-sha256
|
2853
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#change-initial-leverage-trade-hmac-sha256
|
2854
|
+
|
2805
2855
|
:param float leverage: the rate of leverage
|
2806
2856
|
:param str symbol: unified market symbol
|
2807
2857
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2852,8 +2902,10 @@ class bitrue(Exchange, ImplicitAPI):
|
|
2852
2902
|
def set_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
2853
2903
|
"""
|
2854
2904
|
Either adds or reduces margin in an isolated position in order to set the margin to a specific value
|
2855
|
-
|
2856
|
-
|
2905
|
+
|
2906
|
+
https://www.bitrue.com/api-docs#modify-isolated-position-margin-trade-hmac-sha256
|
2907
|
+
https://www.bitrue.com/api_docs_includes_file/delivery.html#modify-isolated-position-margin-trade-hmac-sha256
|
2908
|
+
|
2857
2909
|
:param str symbol: unified market symbol of the market to set margin in
|
2858
2910
|
:param float amount: the amount to set the margin to
|
2859
2911
|
:param dict [params]: parameters specific to the exchange API endpoint
|
ccxt/bitso.py
CHANGED
@@ -355,7 +355,9 @@ class bitso(Exchange, ImplicitAPI):
|
|
355
355
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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>`
|