ccxt 4.3.68__py2.py3-none-any.whl → 4.3.69__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.
Files changed (57) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/async_support/__init__.py +1 -1
  3. ccxt/async_support/base/exchange.py +1 -1
  4. ccxt/async_support/binance.py +2 -2
  5. ccxt/async_support/bingx.py +129 -73
  6. ccxt/async_support/bitget.py +2 -2
  7. ccxt/async_support/bitmart.py +2 -2
  8. ccxt/async_support/bitrue.py +2 -2
  9. ccxt/async_support/btcbox.py +1 -1
  10. ccxt/async_support/bybit.py +2 -2
  11. ccxt/async_support/coinbaseinternational.py +72 -1
  12. ccxt/async_support/coinex.py +2 -2
  13. ccxt/async_support/coinlist.py +2 -2
  14. ccxt/async_support/deribit.py +2 -2
  15. ccxt/async_support/digifinex.py +2 -2
  16. ccxt/async_support/hyperliquid.py +0 -2
  17. ccxt/async_support/kucoin.py +11 -5
  18. ccxt/async_support/latoken.py +2 -2
  19. ccxt/async_support/mexc.py +2 -2
  20. ccxt/async_support/okx.py +2 -2
  21. ccxt/async_support/oxfun.py +1 -1
  22. ccxt/async_support/phemex.py +2 -2
  23. ccxt/async_support/poloniex.py +33 -33
  24. ccxt/async_support/poloniexfutures.py +26 -26
  25. ccxt/async_support/woo.py +2 -2
  26. ccxt/base/exchange.py +329 -117
  27. ccxt/base/types.py +21 -3
  28. ccxt/binance.py +2 -2
  29. ccxt/bingx.py +129 -73
  30. ccxt/bitget.py +2 -2
  31. ccxt/bitmart.py +2 -2
  32. ccxt/bitrue.py +2 -2
  33. ccxt/btcbox.py +1 -1
  34. ccxt/bybit.py +2 -2
  35. ccxt/coinbaseinternational.py +72 -1
  36. ccxt/coinex.py +2 -2
  37. ccxt/coinlist.py +2 -2
  38. ccxt/deribit.py +2 -2
  39. ccxt/digifinex.py +2 -2
  40. ccxt/hyperliquid.py +0 -2
  41. ccxt/kucoin.py +11 -5
  42. ccxt/latoken.py +2 -2
  43. ccxt/mexc.py +2 -2
  44. ccxt/okx.py +2 -2
  45. ccxt/oxfun.py +1 -1
  46. ccxt/phemex.py +2 -2
  47. ccxt/poloniex.py +33 -33
  48. ccxt/poloniexfutures.py +26 -26
  49. ccxt/pro/__init__.py +1 -1
  50. ccxt/pro/poloniex.py +13 -13
  51. ccxt/pro/poloniexfutures.py +5 -5
  52. ccxt/woo.py +2 -2
  53. {ccxt-4.3.68.dist-info → ccxt-4.3.69.dist-info}/METADATA +6 -6
  54. {ccxt-4.3.68.dist-info → ccxt-4.3.69.dist-info}/RECORD +57 -57
  55. {ccxt-4.3.68.dist-info → ccxt-4.3.69.dist-info}/LICENSE.txt +0 -0
  56. {ccxt-4.3.68.dist-info → ccxt-4.3.69.dist-info}/WHEEL +0 -0
  57. {ccxt-4.3.68.dist-info → ccxt-4.3.69.dist-info}/top_level.txt +0 -0
@@ -6,7 +6,7 @@
6
6
  from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.mexc import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Account, Balances, Currencies, Currency, IndexType, Int, Leverage, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntry, TransferEntries
9
+ from ccxt.base.types import Account, Balances, Currencies, Currency, IndexType, Int, Leverage, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntry
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import AuthenticationError
@@ -4690,7 +4690,7 @@ class mexc(Exchange, ImplicitAPI):
4690
4690
  raise BadRequest(self.id + ' fetchTransfer() is not supported for ' + marketType)
4691
4691
  return None
4692
4692
 
4693
- async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> TransferEntries:
4693
+ async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
4694
4694
  """
4695
4695
  fetch a history of internal transfers made on an account
4696
4696
  :param str code: unified currency code of the currency transferred
ccxt/async_support/okx.py CHANGED
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.okx import ImplicitAPI
8
8
  import asyncio
9
9
  import hashlib
10
- from ccxt.base.types import Account, Balances, Conversion, CrossBorrowRate, CrossBorrowRates, Currencies, Currency, Greeks, Int, Leverage, LeverageTier, MarginModification, Market, MarketInterface, Num, Option, OptionChain, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry, TransferEntries
10
+ from ccxt.base.types import Account, Balances, Conversion, CrossBorrowRate, CrossBorrowRates, Currencies, Currency, Greeks, Int, Leverage, LeverageTier, MarginModification, Market, MarketInterface, Num, Option, OptionChain, Order, OrderBook, OrderRequest, CancellationRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, TransferEntry
11
11
  from typing import List
12
12
  from typing import Any
13
13
  from ccxt.base.errors import ExchangeError
@@ -5524,7 +5524,7 @@ class okx(Exchange, ImplicitAPI):
5524
5524
  transfer = self.safe_dict(data, 0)
5525
5525
  return self.parse_transfer(transfer)
5526
5526
 
5527
- async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> TransferEntries:
5527
+ async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
5528
5528
  """
5529
5529
  fetch a history of internal transfers made on an account
5530
5530
  :see: https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-bills-details-last-3-months
@@ -1969,7 +1969,7 @@ class oxfun(Exchange, ImplicitAPI):
1969
1969
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1970
1970
  """
1971
1971
  make a withdrawal
1972
- :see: https://docs.bitflex.com/spot#withdraw
1972
+ :see: https://docs.ox.fun/?json#post-v3-withdrawal
1973
1973
  :param str code: unified currency code
1974
1974
  :param float amount: the amount to withdraw
1975
1975
  :param str address: the address to withdraw to
@@ -7,7 +7,7 @@ from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.phemex import ImplicitAPI
8
8
  import hashlib
9
9
  import numbers
10
- from ccxt.base.types import Balances, Currencies, Currency, Int, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry, TransferEntries
10
+ from ccxt.base.types import Balances, Currencies, Currency, Int, LeverageTier, LeverageTiers, MarginModification, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry
11
11
  from typing import List
12
12
  from ccxt.base.errors import ExchangeError
13
13
  from ccxt.base.errors import AuthenticationError
@@ -4233,7 +4233,7 @@ class phemex(Exchange, ImplicitAPI):
4233
4233
  transfer['currency'] = code
4234
4234
  return transfer
4235
4235
 
4236
- async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> TransferEntries:
4236
+ async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
4237
4237
  """
4238
4238
  fetch a history of internal transfers made on an account
4239
4239
  :param str code: unified currency code of the currency transferred
@@ -113,7 +113,7 @@ class poloniex(Exchange, ImplicitAPI):
113
113
  'rest': 'https://sand-spot-api-gateway.poloniex.com',
114
114
  },
115
115
  'www': 'https://www.poloniex.com',
116
- 'doc': 'https://docs.poloniex.com',
116
+ 'doc': 'https://api-docs.poloniex.com/spot/',
117
117
  'fees': 'https://poloniex.com/fees',
118
118
  'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
119
119
  },
@@ -425,7 +425,7 @@ class poloniex(Exchange, ImplicitAPI):
425
425
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
426
426
  """
427
427
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
428
- :see: https://docs.poloniex.com/#public-endpoints-market-data-candles
428
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#candles
429
429
  :param str symbol: unified symbol of the market to fetch OHLCV data for
430
430
  :param str timeframe: the length of time each candle represents
431
431
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -484,7 +484,7 @@ class poloniex(Exchange, ImplicitAPI):
484
484
  async def fetch_markets(self, params={}) -> List[Market]:
485
485
  """
486
486
  retrieves data on all markets for poloniex
487
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
487
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
488
488
  :param dict [params]: extra parameters specific to the exchange API endpoint
489
489
  :returns dict[]: an array of objects representing market data
490
490
  """
@@ -573,7 +573,7 @@ class poloniex(Exchange, ImplicitAPI):
573
573
  async def fetch_time(self, params={}):
574
574
  """
575
575
  fetches the current integer timestamp in milliseconds from the exchange server
576
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
576
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
577
577
  :param dict [params]: extra parameters specific to the exchange API endpoint
578
578
  :returns int: the current integer timestamp in milliseconds from the exchange server
579
579
  """
@@ -638,7 +638,7 @@ class poloniex(Exchange, ImplicitAPI):
638
638
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
639
639
  """
640
640
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
641
- :see: https://docs.poloniex.com/#public-endpoints-market-data-ticker
641
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#ticker
642
642
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
643
643
  :param dict [params]: extra parameters specific to the exchange API endpoint
644
644
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -675,7 +675,7 @@ class poloniex(Exchange, ImplicitAPI):
675
675
  async def fetch_currencies(self, params={}) -> Currencies:
676
676
  """
677
677
  fetches all available currencies on an exchange
678
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
678
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
679
679
  :param dict [params]: extra parameters specific to the exchange API endpoint
680
680
  :returns dict: an associative dictionary of currencies
681
681
  """
@@ -805,7 +805,7 @@ class poloniex(Exchange, ImplicitAPI):
805
805
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
806
806
  """
807
807
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
808
- :see: https://docs.poloniex.com/#public-endpoints-market-data-ticker
808
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#ticker
809
809
  :param str symbol: unified symbol of the market to fetch the ticker for
810
810
  :param dict [params]: extra parameters specific to the exchange API endpoint
811
811
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -933,7 +933,7 @@ class poloniex(Exchange, ImplicitAPI):
933
933
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
934
934
  """
935
935
  get the list of most recent trades for a particular symbol
936
- :see: https://docs.poloniex.com/#public-endpoints-market-data-trades
936
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#trades
937
937
  :param str symbol: unified symbol of the market to fetch trades for
938
938
  :param int [since]: timestamp in ms of the earliest trade to fetch
939
939
  :param int [limit]: the maximum amount of trades to fetch
@@ -966,7 +966,7 @@ class poloniex(Exchange, ImplicitAPI):
966
966
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
967
967
  """
968
968
  fetch all trades made by the user
969
- :see: https://docs.poloniex.com/#authenticated-endpoints-trades-trade-history
969
+ :see: https://api-docs.poloniex.com/spot/api/private/trade#trade-history
970
970
  :param str symbol: unified market symbol
971
971
  :param int [since]: the earliest time in ms to fetch trades for
972
972
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -1165,8 +1165,8 @@ class poloniex(Exchange, ImplicitAPI):
1165
1165
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1166
1166
  """
1167
1167
  fetch all unfilled currently open orders
1168
- :see: https://docs.poloniex.com/#authenticated-endpoints-orders-open-orders
1169
- :see: https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders # trigger orders
1168
+ :see: https://api-docs.poloniex.com/spot/api/private/order#open-orders
1169
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders # trigger orders
1170
1170
  :param str symbol: unified market symbol
1171
1171
  :param int [since]: the earliest time in ms to fetch open orders for
1172
1172
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -1218,8 +1218,8 @@ class poloniex(Exchange, ImplicitAPI):
1218
1218
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1219
1219
  """
1220
1220
  create a trade order
1221
- :see: https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
1222
- :see: https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order # trigger orders
1221
+ :see: https://api-docs.poloniex.com/spot/api/private/order#create-order
1222
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#create-order # trigger orders
1223
1223
  :param str symbol: unified symbol of the market to create an order in
1224
1224
  :param str type: 'market' or 'limit'
1225
1225
  :param str side: 'buy' or 'sell'
@@ -1307,8 +1307,8 @@ class poloniex(Exchange, ImplicitAPI):
1307
1307
  async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
1308
1308
  """
1309
1309
  edit a trade order
1310
- :see: https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
1311
- :see: https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
1310
+ :see: https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
1311
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
1312
1312
  :param str id: order id
1313
1313
  :param str symbol: unified symbol of the market to create an order in
1314
1314
  :param str type: 'market' or 'limit'
@@ -1351,8 +1351,8 @@ class poloniex(Exchange, ImplicitAPI):
1351
1351
  # @method
1352
1352
  # @name poloniex#cancelOrder
1353
1353
  # @description cancels an open order
1354
- # @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-order-by-id
1355
- # @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-order-by-id # trigger orders
1354
+ # @see https://api-docs.poloniex.com/spot/api/private/order#cancel-order-by-id
1355
+ # @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-order-by-id # trigger orders
1356
1356
  # @param {string} id order id
1357
1357
  # @param {string} symbol unified symbol of the market the order was made in
1358
1358
  # @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1386,8 +1386,8 @@ class poloniex(Exchange, ImplicitAPI):
1386
1386
  async def cancel_all_orders(self, symbol: Str = None, params={}):
1387
1387
  """
1388
1388
  cancel all open orders
1389
- :see: https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1390
- :see: https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders # trigger orders
1389
+ :see: https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
1390
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders # trigger orders
1391
1391
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1392
1392
  :param dict [params]: extra parameters specific to the exchange API endpoint
1393
1393
  :param boolean [params.trigger]: True if canceling trigger orders
@@ -1433,8 +1433,8 @@ class poloniex(Exchange, ImplicitAPI):
1433
1433
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
1434
1434
  """
1435
1435
  fetch an order by it's id
1436
- :see: https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
1437
- :see: https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders # trigger orders
1436
+ :see: https://api-docs.poloniex.com/spot/api/private/order#order-details
1437
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders # trigger orders
1438
1438
  :param str id: order id
1439
1439
  :param str symbol: unified market symbol, default is None
1440
1440
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1488,7 +1488,7 @@ class poloniex(Exchange, ImplicitAPI):
1488
1488
  async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1489
1489
  """
1490
1490
  fetch all the trades made from a single order
1491
- :see: https://docs.poloniex.com/#authenticated-endpoints-trades-trades-by-order-id
1491
+ :see: https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
1492
1492
  :param str id: order id
1493
1493
  :param str symbol: unified market symbol
1494
1494
  :param int [since]: the earliest time in ms to fetch trades for
@@ -1546,7 +1546,7 @@ class poloniex(Exchange, ImplicitAPI):
1546
1546
  async def fetch_balance(self, params={}) -> Balances:
1547
1547
  """
1548
1548
  query for balance and get the amount of funds available for trading or funds locked in orders
1549
- :see: https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
1549
+ :see: https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
1550
1550
  :param dict [params]: extra parameters specific to the exchange API endpoint
1551
1551
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
1552
1552
  """
@@ -1576,7 +1576,7 @@ class poloniex(Exchange, ImplicitAPI):
1576
1576
  async def fetch_trading_fees(self, params={}) -> TradingFees:
1577
1577
  """
1578
1578
  fetch the trading fees for multiple markets
1579
- :see: https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
1579
+ :see: https://api-docs.poloniex.com/spot/api/private/account#fee-info
1580
1580
  :param dict [params]: extra parameters specific to the exchange API endpoint
1581
1581
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
1582
1582
  """
@@ -1606,7 +1606,7 @@ class poloniex(Exchange, ImplicitAPI):
1606
1606
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
1607
1607
  """
1608
1608
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
1609
- :see: https://docs.poloniex.com/#public-endpoints-market-data-order-book
1609
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#order-book
1610
1610
  :param str symbol: unified symbol of the market to fetch the order book for
1611
1611
  :param int [limit]: the maximum amount of order book entries to return
1612
1612
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1656,7 +1656,7 @@ class poloniex(Exchange, ImplicitAPI):
1656
1656
  async def create_deposit_address(self, code: str, params={}):
1657
1657
  """
1658
1658
  create a currency deposit address
1659
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1659
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1660
1660
  :param str code: unified currency code of the currency for the deposit address
1661
1661
  :param dict [params]: extra parameters specific to the exchange API endpoint
1662
1662
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1700,7 +1700,7 @@ class poloniex(Exchange, ImplicitAPI):
1700
1700
  async def fetch_deposit_address(self, code: str, params={}):
1701
1701
  """
1702
1702
  fetch the deposit address for a currency associated with self account
1703
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1703
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1704
1704
  :param str code: unified currency code
1705
1705
  :param dict [params]: extra parameters specific to the exchange API endpoint
1706
1706
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1744,7 +1744,7 @@ class poloniex(Exchange, ImplicitAPI):
1744
1744
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
1745
1745
  """
1746
1746
  transfer currency internally between wallets on the same account
1747
- :see: https://docs.poloniex.com/#authenticated-endpoints-accounts-accounts-transfer
1747
+ :see: https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
1748
1748
  :param str code: unified currency code
1749
1749
  :param float amount: amount to transfer
1750
1750
  :param str fromAccount: account to transfer from
@@ -1792,7 +1792,7 @@ class poloniex(Exchange, ImplicitAPI):
1792
1792
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1793
1793
  """
1794
1794
  make a withdrawal
1795
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-withdraw-currency
1795
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
1796
1796
  :param str code: unified currency code
1797
1797
  :param float amount: the amount to withdraw
1798
1798
  :param str address: the address to withdraw to
@@ -1913,7 +1913,7 @@ class poloniex(Exchange, ImplicitAPI):
1913
1913
  async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1914
1914
  """
1915
1915
  fetch history of deposits and withdrawals
1916
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
1916
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
1917
1917
  :param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
1918
1918
  :param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
1919
1919
  :param int [limit]: max number of deposit/withdrawals to return, default is None
@@ -1935,7 +1935,7 @@ class poloniex(Exchange, ImplicitAPI):
1935
1935
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1936
1936
  """
1937
1937
  fetch all withdrawals made from an account
1938
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
1938
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
1939
1939
  :param str code: unified currency code
1940
1940
  :param int [since]: the earliest time in ms to fetch withdrawals for
1941
1941
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -1953,7 +1953,7 @@ class poloniex(Exchange, ImplicitAPI):
1953
1953
  async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
1954
1954
  """
1955
1955
  fetch deposit and withdraw fees
1956
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
1956
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
1957
1957
  :param str[]|None codes: list of unified currency codes
1958
1958
  :param dict [params]: extra parameters specific to the exchange API endpoint
1959
1959
  :returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -2071,7 +2071,7 @@ class poloniex(Exchange, ImplicitAPI):
2071
2071
  async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2072
2072
  """
2073
2073
  fetch all deposits made to an account
2074
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2074
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2075
2075
  :param str code: unified currency code
2076
2076
  :param int [since]: the earliest time in ms to fetch deposits for
2077
2077
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -84,7 +84,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
84
84
  'private': 'https://futures-api.poloniex.com',
85
85
  },
86
86
  'www': 'https://www.poloniex.com',
87
- 'doc': 'https://futures-docs.poloniex.com',
87
+ 'doc': 'https://api-docs.poloniex.com/futures/',
88
88
  'fees': 'https://poloniex.com/fee-schedule',
89
89
  'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
90
90
  },
@@ -218,7 +218,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
218
218
  async def fetch_markets(self, params={}) -> List[Market]:
219
219
  """
220
220
  retrieves data on all markets for poloniexfutures
221
- :see: https://futures-docs.poloniex.com/#symbol-2
221
+ :see: https://api-docs.poloniex.com/futures/api/symbol
222
222
  :param dict [params]: extra parameters specific to the exchange API endpoint
223
223
  :returns dict[]: an array of objects representing market data
224
224
  """
@@ -424,7 +424,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
424
424
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
425
425
  """
426
426
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
427
- :see: https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
427
+ :see: https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-20
428
428
  :param str symbol: unified symbol of the market to fetch the ticker for
429
429
  :param dict [params]: extra parameters specific to the exchange API endpoint
430
430
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -458,7 +458,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
458
458
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
459
459
  """
460
460
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
461
- :see: https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
461
+ :see: https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-of-all-symbols
462
462
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
463
463
  :param dict [params]: extra parameters specific to the exchange API endpoint
464
464
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -471,8 +471,8 @@ class poloniexfutures(Exchange, ImplicitAPI):
471
471
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
472
472
  """
473
473
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
474
- :see: https://futures-docs.poloniex.com/#get-full-order-book-level-2
475
- :see: https://futures-docs.poloniex.com/#get-full-order-book-level-3
474
+ :see: https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book---level-2
475
+ :see: https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
476
476
  :param str symbol: unified symbol of the market to fetch the order book for
477
477
  :param int [limit]: the maximum amount of order book entries to return
478
478
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -551,7 +551,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
551
551
  async def fetch_l3_order_book(self, symbol: str, limit: Int = None, params={}):
552
552
  """
553
553
  fetches level 3 information on open orders with bid(buy) and ask(sell) prices, volumes and other data
554
- :see: https://futures-docs.poloniex.com/#get-full-order-book-level-3
554
+ :see: https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
555
555
  :param str symbol: unified market symbol
556
556
  :param int [limit]: max number of orders to return, default is None
557
557
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -650,7 +650,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
650
650
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
651
651
  """
652
652
  get the list of most recent trades for a particular symbol
653
- :see: https://futures-docs.poloniex.com/#historical-data
653
+ :see: https://api-docs.poloniex.com/futures/api/historical#transaction-history
654
654
  :param str symbol: unified symbol of the market to fetch trades for
655
655
  :param int [since]: timestamp in ms of the earliest trade to fetch
656
656
  :param int [limit]: the maximum amount of trades to fetch
@@ -685,7 +685,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
685
685
  async def fetch_time(self, params={}):
686
686
  """
687
687
  fetches the current integer timestamp in milliseconds from the poloniexfutures server
688
- :see: https://futures-docs.poloniex.com/#time
688
+ :see: https://api-docs.poloniex.com/futures/api/time#server-time
689
689
  :param dict [params]: extra parameters specific to the exchange API endpoint
690
690
  :returns int: the current integer timestamp in milliseconds from the poloniexfutures server
691
691
  """
@@ -702,7 +702,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
702
702
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
703
703
  """
704
704
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
705
- :see: https://futures-docs.poloniex.com/#k-chart
705
+ :see: https://api-docs.poloniex.com/futures/api/kline#get-k-line-data-of-contract
706
706
  :param str symbol: unified symbol of the market to fetch OHLCV data for
707
707
  :param str timeframe: the length of time each candle represents
708
708
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -764,7 +764,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
764
764
  async def fetch_balance(self, params={}) -> Balances:
765
765
  """
766
766
  query for balance and get the amount of funds available for trading or funds locked in orders
767
- :see: https://futures-docs.poloniex.com/#get-account-overview
767
+ :see: https://api-docs.poloniex.com/futures/api/account#get-account-overview
768
768
  :param dict [params]: extra parameters specific to the exchange API endpoint
769
769
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
770
770
  """
@@ -797,7 +797,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
797
797
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
798
798
  """
799
799
  Create an order on the exchange
800
- :see: https://futures-docs.poloniex.com/#place-an-order
800
+ :see: https://api-docs.poloniex.com/futures/api/orders#place-an-order
801
801
  :param str symbol: Unified CCXT market symbol
802
802
  :param str type: 'limit' or 'market'
803
803
  :param str side: 'buy' or 'sell'
@@ -894,7 +894,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
894
894
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
895
895
  """
896
896
  cancels an open order
897
- :see: https://futures-docs.poloniex.com/#cancel-an-order
897
+ :see: https://api-docs.poloniex.com/futures/api/orders#cancel-an-order
898
898
  :param str id: order id
899
899
  :param str symbol: unified symbol of the market the order was made in
900
900
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -931,7 +931,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
931
931
  async def fetch_positions(self, symbols: Strings = None, params={}):
932
932
  """
933
933
  fetch all open positions
934
- :see: https://futures-docs.poloniex.com/#get-position-list
934
+ :see: https://api-docs.poloniex.com/futures/api/positions#get-position-list
935
935
  :param str[]|None symbols: list of unified market symbols
936
936
  :param dict [params]: extra parameters specific to the exchange API endpoint
937
937
  :returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -1081,7 +1081,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1081
1081
  async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1082
1082
  """
1083
1083
  fetch the history of funding payments paid and received on self account
1084
- :see: https://futures-docs.poloniex.com/#get-funding-history
1084
+ :see: https://api-docs.poloniex.com/futures/api/funding-fees#get-funding-history
1085
1085
  :param str symbol: unified market symbol
1086
1086
  :param int [since]: the earliest time in ms to fetch funding history for
1087
1087
  :param int [limit]: the maximum number of funding history structures to retrieve
@@ -1208,8 +1208,8 @@ class poloniexfutures(Exchange, ImplicitAPI):
1208
1208
  async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1209
1209
  """
1210
1210
  fetches a list of orders placed on the exchange
1211
- :see: https://futures-docs.poloniex.com/#get-order-list
1212
- :see: https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1211
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1212
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1213
1213
  :param str status: 'active' or 'closed', only 'active' is valid for stop orders
1214
1214
  :param str symbol: unified symbol for the market to retrieve orders from
1215
1215
  :param int [since]: timestamp in ms of the earliest order to retrieve
@@ -1306,8 +1306,8 @@ class poloniexfutures(Exchange, ImplicitAPI):
1306
1306
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1307
1307
  """
1308
1308
  fetch all unfilled currently open orders
1309
- :see: https://futures-docs.poloniex.com/#get-order-list
1310
- :see: https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1309
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1310
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1311
1311
  :param str symbol: unified market symbol
1312
1312
  :param int [since]: the earliest time in ms to fetch open orders for
1313
1313
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -1322,8 +1322,8 @@ class poloniexfutures(Exchange, ImplicitAPI):
1322
1322
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1323
1323
  """
1324
1324
  fetches information on multiple closed orders made by the user
1325
- :see: https://futures-docs.poloniex.com/#get-order-list
1326
- :see: https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
1325
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
1326
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
1327
1327
  :param str symbol: unified market symbol of the market orders were made in
1328
1328
  :param int [since]: the earliest time in ms to fetch orders for
1329
1329
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1338,8 +1338,8 @@ class poloniexfutures(Exchange, ImplicitAPI):
1338
1338
  async def fetch_order(self, id: Str = None, symbol: Str = None, params={}):
1339
1339
  """
1340
1340
  fetches information on an order made by the user
1341
- :see: https://futures-docs.poloniex.com/#get-details-of-a-single-order
1342
- :see: https://futures-docs.poloniex.com/#get-single-order-by-clientoid
1341
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-details-of-a-single-order
1342
+ :see: https://api-docs.poloniex.com/futures/api/orders#get-single-order-by-clientoid
1343
1343
  :param str symbol: unified symbol of the market the order was made in
1344
1344
  :param dict [params]: extra parameters specific to the exchange API endpoint
1345
1345
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1529,7 +1529,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1529
1529
  async def fetch_funding_rate(self, symbol: str, params={}):
1530
1530
  """
1531
1531
  fetch the current funding rate
1532
- :see: https://futures-docs.poloniex.com/#get-premium-index
1532
+ :see: https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
1533
1533
  :param str symbol: unified market symbol
1534
1534
  :param dict [params]: extra parameters specific to the exchange API endpoint
1535
1535
  :returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
@@ -1575,7 +1575,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1575
1575
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1576
1576
  """
1577
1577
  fetch all trades made by the user
1578
- :see: https://futures-docs.poloniex.com/#get-fills
1578
+ :see: https://api-docs.poloniex.com/futures/api/fills#get-fillsdeprecated
1579
1579
  :param str symbol: unified market symbol
1580
1580
  :param int [since]: the earliest time in ms to fetch trades for
1581
1581
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -1636,7 +1636,7 @@ class poloniexfutures(Exchange, ImplicitAPI):
1636
1636
  async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
1637
1637
  """
1638
1638
  set margin mode to 'cross' or 'isolated'
1639
- :see: https://futures-docs.poloniex.com/#change-margin-mode
1639
+ :see: https://api-docs.poloniex.com/futures/api/margin-mode#change-margin-mode
1640
1640
  :param str marginMode: "0"(isolated) or "1"(cross)
1641
1641
  :param str symbol: unified market symbol
1642
1642
  :param dict [params]: extra parameters specific to the exchange API endpoint
ccxt/async_support/woo.py CHANGED
@@ -6,7 +6,7 @@
6
6
  from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.woo import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Account, Balances, Bool, Conversion, Currencies, Currency, Int, Leverage, MarginModification, Market, MarketType, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Trade, TradingFees, Transaction, TransferEntry, TransferEntries
9
+ from ccxt.base.types import Account, Balances, Bool, Conversion, Currencies, Currency, Int, Leverage, MarginModification, Market, MarketType, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Trade, TradingFees, Transaction, TransferEntry
10
10
  from typing import List
11
11
  from typing import Any
12
12
  from ccxt.base.errors import ExchangeError
@@ -2184,7 +2184,7 @@ class woo(Exchange, ImplicitAPI):
2184
2184
  transfer['toAccount'] = toAccount
2185
2185
  return transfer
2186
2186
 
2187
- async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> TransferEntries:
2187
+ async def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
2188
2188
  """
2189
2189
  fetch a history of internal transfers made on an account
2190
2190
  :see: https://docs.woo.org/#get-transfer-history