ccxt 4.3.68__py2.py3-none-any.whl → 4.3.70__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ccxt might be problematic. Click here for more details.

Files changed (68) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/abstract/coinbaseinternational.py +1 -1
  3. ccxt/async_support/__init__.py +1 -1
  4. ccxt/async_support/base/exchange.py +1 -1
  5. ccxt/async_support/binance.py +2 -2
  6. ccxt/async_support/bingx.py +129 -73
  7. ccxt/async_support/bitget.py +2 -2
  8. ccxt/async_support/bitmart.py +2 -2
  9. ccxt/async_support/bitrue.py +2 -2
  10. ccxt/async_support/blofin.py +63 -6
  11. ccxt/async_support/btcbox.py +1 -1
  12. ccxt/async_support/bybit.py +3 -3
  13. ccxt/async_support/coinbaseinternational.py +227 -3
  14. ccxt/async_support/coinex.py +2 -2
  15. ccxt/async_support/coinlist.py +2 -2
  16. ccxt/async_support/cryptocom.py +12 -1
  17. ccxt/async_support/deribit.py +2 -2
  18. ccxt/async_support/digifinex.py +2 -2
  19. ccxt/async_support/hyperliquid.py +0 -2
  20. ccxt/async_support/kucoin.py +11 -5
  21. ccxt/async_support/latoken.py +2 -2
  22. ccxt/async_support/mexc.py +2 -2
  23. ccxt/async_support/okx.py +2 -2
  24. ccxt/async_support/oxfun.py +1 -1
  25. ccxt/async_support/phemex.py +2 -2
  26. ccxt/async_support/poloniex.py +34 -33
  27. ccxt/async_support/poloniexfutures.py +26 -26
  28. ccxt/async_support/woo.py +2 -2
  29. ccxt/base/exchange.py +334 -117
  30. ccxt/base/types.py +21 -3
  31. ccxt/binance.py +2 -2
  32. ccxt/bingx.py +129 -73
  33. ccxt/bitget.py +2 -2
  34. ccxt/bitmart.py +2 -2
  35. ccxt/bitrue.py +2 -2
  36. ccxt/blofin.py +63 -6
  37. ccxt/btcbox.py +1 -1
  38. ccxt/bybit.py +3 -3
  39. ccxt/coinbaseinternational.py +227 -3
  40. ccxt/coinex.py +2 -2
  41. ccxt/coinlist.py +2 -2
  42. ccxt/cryptocom.py +12 -1
  43. ccxt/deribit.py +2 -2
  44. ccxt/digifinex.py +2 -2
  45. ccxt/hyperliquid.py +0 -2
  46. ccxt/kucoin.py +11 -5
  47. ccxt/latoken.py +2 -2
  48. ccxt/mexc.py +2 -2
  49. ccxt/okx.py +2 -2
  50. ccxt/oxfun.py +1 -1
  51. ccxt/phemex.py +2 -2
  52. ccxt/poloniex.py +34 -33
  53. ccxt/poloniexfutures.py +26 -26
  54. ccxt/pro/__init__.py +3 -1
  55. ccxt/pro/blofin.py +608 -0
  56. ccxt/pro/coinbaseinternational.py +142 -11
  57. ccxt/pro/cryptocom.py +4 -1
  58. ccxt/pro/hitbtc.py +20 -8
  59. ccxt/pro/okx.py +6 -0
  60. ccxt/pro/poloniex.py +45 -23
  61. ccxt/pro/poloniexfutures.py +5 -5
  62. ccxt/pro/woo.py +5 -4
  63. ccxt/woo.py +2 -2
  64. {ccxt-4.3.68.dist-info → ccxt-4.3.70.dist-info}/METADATA +7 -7
  65. {ccxt-4.3.68.dist-info → ccxt-4.3.70.dist-info}/RECORD +68 -67
  66. {ccxt-4.3.68.dist-info → ccxt-4.3.70.dist-info}/LICENSE.txt +0 -0
  67. {ccxt-4.3.68.dist-info → ccxt-4.3.70.dist-info}/WHEEL +0 -0
  68. {ccxt-4.3.68.dist-info → ccxt-4.3.70.dist-info}/top_level.txt +0 -0
@@ -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
  },
@@ -359,6 +359,7 @@ class poloniex(Exchange, ImplicitAPI):
359
359
  '21350': InvalidOrder, # Amount must be greater than 1 USDT
360
360
  '21355': ExchangeError, # Interval between startTime and endTime in trade/order history has exceeded 7 day limit
361
361
  '21356': BadRequest, # Order size would cause too much price movement. Reduce order size.
362
+ '21721': InsufficientFunds,
362
363
  '24101': BadSymbol, # Invalid symbol
363
364
  '24102': InvalidOrder, # Invalid K-line type
364
365
  '24103': InvalidOrder, # Invalid endTime
@@ -425,7 +426,7 @@ class poloniex(Exchange, ImplicitAPI):
425
426
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
426
427
  """
427
428
  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
429
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#candles
429
430
  :param str symbol: unified symbol of the market to fetch OHLCV data for
430
431
  :param str timeframe: the length of time each candle represents
431
432
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -484,7 +485,7 @@ class poloniex(Exchange, ImplicitAPI):
484
485
  async def fetch_markets(self, params={}) -> List[Market]:
485
486
  """
486
487
  retrieves data on all markets for poloniex
487
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
488
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
488
489
  :param dict [params]: extra parameters specific to the exchange API endpoint
489
490
  :returns dict[]: an array of objects representing market data
490
491
  """
@@ -573,7 +574,7 @@ class poloniex(Exchange, ImplicitAPI):
573
574
  async def fetch_time(self, params={}):
574
575
  """
575
576
  fetches the current integer timestamp in milliseconds from the exchange server
576
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
577
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
577
578
  :param dict [params]: extra parameters specific to the exchange API endpoint
578
579
  :returns int: the current integer timestamp in milliseconds from the exchange server
579
580
  """
@@ -638,7 +639,7 @@ class poloniex(Exchange, ImplicitAPI):
638
639
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
639
640
  """
640
641
  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
642
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#ticker
642
643
  :param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
643
644
  :param dict [params]: extra parameters specific to the exchange API endpoint
644
645
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -675,7 +676,7 @@ class poloniex(Exchange, ImplicitAPI):
675
676
  async def fetch_currencies(self, params={}) -> Currencies:
676
677
  """
677
678
  fetches all available currencies on an exchange
678
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
679
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
679
680
  :param dict [params]: extra parameters specific to the exchange API endpoint
680
681
  :returns dict: an associative dictionary of currencies
681
682
  """
@@ -805,7 +806,7 @@ class poloniex(Exchange, ImplicitAPI):
805
806
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
806
807
  """
807
808
  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
809
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#ticker
809
810
  :param str symbol: unified symbol of the market to fetch the ticker for
810
811
  :param dict [params]: extra parameters specific to the exchange API endpoint
811
812
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -933,7 +934,7 @@ class poloniex(Exchange, ImplicitAPI):
933
934
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
934
935
  """
935
936
  get the list of most recent trades for a particular symbol
936
- :see: https://docs.poloniex.com/#public-endpoints-market-data-trades
937
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#trades
937
938
  :param str symbol: unified symbol of the market to fetch trades for
938
939
  :param int [since]: timestamp in ms of the earliest trade to fetch
939
940
  :param int [limit]: the maximum amount of trades to fetch
@@ -966,7 +967,7 @@ class poloniex(Exchange, ImplicitAPI):
966
967
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
967
968
  """
968
969
  fetch all trades made by the user
969
- :see: https://docs.poloniex.com/#authenticated-endpoints-trades-trade-history
970
+ :see: https://api-docs.poloniex.com/spot/api/private/trade#trade-history
970
971
  :param str symbol: unified market symbol
971
972
  :param int [since]: the earliest time in ms to fetch trades for
972
973
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -1165,8 +1166,8 @@ class poloniex(Exchange, ImplicitAPI):
1165
1166
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1166
1167
  """
1167
1168
  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
1169
+ :see: https://api-docs.poloniex.com/spot/api/private/order#open-orders
1170
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders # trigger orders
1170
1171
  :param str symbol: unified market symbol
1171
1172
  :param int [since]: the earliest time in ms to fetch open orders for
1172
1173
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -1218,8 +1219,8 @@ class poloniex(Exchange, ImplicitAPI):
1218
1219
  async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1219
1220
  """
1220
1221
  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
1222
+ :see: https://api-docs.poloniex.com/spot/api/private/order#create-order
1223
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#create-order # trigger orders
1223
1224
  :param str symbol: unified symbol of the market to create an order in
1224
1225
  :param str type: 'market' or 'limit'
1225
1226
  :param str side: 'buy' or 'sell'
@@ -1307,8 +1308,8 @@ class poloniex(Exchange, ImplicitAPI):
1307
1308
  async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
1308
1309
  """
1309
1310
  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
1311
+ :see: https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
1312
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
1312
1313
  :param str id: order id
1313
1314
  :param str symbol: unified symbol of the market to create an order in
1314
1315
  :param str type: 'market' or 'limit'
@@ -1351,8 +1352,8 @@ class poloniex(Exchange, ImplicitAPI):
1351
1352
  # @method
1352
1353
  # @name poloniex#cancelOrder
1353
1354
  # @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
1355
+ # @see https://api-docs.poloniex.com/spot/api/private/order#cancel-order-by-id
1356
+ # @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-order-by-id # trigger orders
1356
1357
  # @param {string} id order id
1357
1358
  # @param {string} symbol unified symbol of the market the order was made in
1358
1359
  # @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1386,8 +1387,8 @@ class poloniex(Exchange, ImplicitAPI):
1386
1387
  async def cancel_all_orders(self, symbol: Str = None, params={}):
1387
1388
  """
1388
1389
  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
1390
+ :see: https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
1391
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders # trigger orders
1391
1392
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1392
1393
  :param dict [params]: extra parameters specific to the exchange API endpoint
1393
1394
  :param boolean [params.trigger]: True if canceling trigger orders
@@ -1433,8 +1434,8 @@ class poloniex(Exchange, ImplicitAPI):
1433
1434
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
1434
1435
  """
1435
1436
  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
1437
+ :see: https://api-docs.poloniex.com/spot/api/private/order#order-details
1438
+ :see: https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders # trigger orders
1438
1439
  :param str id: order id
1439
1440
  :param str symbol: unified market symbol, default is None
1440
1441
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1488,7 +1489,7 @@ class poloniex(Exchange, ImplicitAPI):
1488
1489
  async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1489
1490
  """
1490
1491
  fetch all the trades made from a single order
1491
- :see: https://docs.poloniex.com/#authenticated-endpoints-trades-trades-by-order-id
1492
+ :see: https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
1492
1493
  :param str id: order id
1493
1494
  :param str symbol: unified market symbol
1494
1495
  :param int [since]: the earliest time in ms to fetch trades for
@@ -1546,7 +1547,7 @@ class poloniex(Exchange, ImplicitAPI):
1546
1547
  async def fetch_balance(self, params={}) -> Balances:
1547
1548
  """
1548
1549
  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
1550
+ :see: https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
1550
1551
  :param dict [params]: extra parameters specific to the exchange API endpoint
1551
1552
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
1552
1553
  """
@@ -1576,7 +1577,7 @@ class poloniex(Exchange, ImplicitAPI):
1576
1577
  async def fetch_trading_fees(self, params={}) -> TradingFees:
1577
1578
  """
1578
1579
  fetch the trading fees for multiple markets
1579
- :see: https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
1580
+ :see: https://api-docs.poloniex.com/spot/api/private/account#fee-info
1580
1581
  :param dict [params]: extra parameters specific to the exchange API endpoint
1581
1582
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
1582
1583
  """
@@ -1606,7 +1607,7 @@ class poloniex(Exchange, ImplicitAPI):
1606
1607
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
1607
1608
  """
1608
1609
  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
1610
+ :see: https://api-docs.poloniex.com/spot/api/public/market-data#order-book
1610
1611
  :param str symbol: unified symbol of the market to fetch the order book for
1611
1612
  :param int [limit]: the maximum amount of order book entries to return
1612
1613
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1656,7 +1657,7 @@ class poloniex(Exchange, ImplicitAPI):
1656
1657
  async def create_deposit_address(self, code: str, params={}):
1657
1658
  """
1658
1659
  create a currency deposit address
1659
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1660
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1660
1661
  :param str code: unified currency code of the currency for the deposit address
1661
1662
  :param dict [params]: extra parameters specific to the exchange API endpoint
1662
1663
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1700,7 +1701,7 @@ class poloniex(Exchange, ImplicitAPI):
1700
1701
  async def fetch_deposit_address(self, code: str, params={}):
1701
1702
  """
1702
1703
  fetch the deposit address for a currency associated with self account
1703
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
1704
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
1704
1705
  :param str code: unified currency code
1705
1706
  :param dict [params]: extra parameters specific to the exchange API endpoint
1706
1707
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1744,7 +1745,7 @@ class poloniex(Exchange, ImplicitAPI):
1744
1745
  async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
1745
1746
  """
1746
1747
  transfer currency internally between wallets on the same account
1747
- :see: https://docs.poloniex.com/#authenticated-endpoints-accounts-accounts-transfer
1748
+ :see: https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
1748
1749
  :param str code: unified currency code
1749
1750
  :param float amount: amount to transfer
1750
1751
  :param str fromAccount: account to transfer from
@@ -1792,7 +1793,7 @@ class poloniex(Exchange, ImplicitAPI):
1792
1793
  async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}):
1793
1794
  """
1794
1795
  make a withdrawal
1795
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-withdraw-currency
1796
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
1796
1797
  :param str code: unified currency code
1797
1798
  :param float amount: the amount to withdraw
1798
1799
  :param str address: the address to withdraw to
@@ -1913,7 +1914,7 @@ class poloniex(Exchange, ImplicitAPI):
1913
1914
  async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1914
1915
  """
1915
1916
  fetch history of deposits and withdrawals
1916
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
1917
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
1917
1918
  :param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
1918
1919
  :param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
1919
1920
  :param int [limit]: max number of deposit/withdrawals to return, default is None
@@ -1935,7 +1936,7 @@ class poloniex(Exchange, ImplicitAPI):
1935
1936
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1936
1937
  """
1937
1938
  fetch all withdrawals made from an account
1938
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
1939
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
1939
1940
  :param str code: unified currency code
1940
1941
  :param int [since]: the earliest time in ms to fetch withdrawals for
1941
1942
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -1953,7 +1954,7 @@ class poloniex(Exchange, ImplicitAPI):
1953
1954
  async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
1954
1955
  """
1955
1956
  fetch deposit and withdraw fees
1956
- :see: https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
1957
+ :see: https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
1957
1958
  :param str[]|None codes: list of unified currency codes
1958
1959
  :param dict [params]: extra parameters specific to the exchange API endpoint
1959
1960
  :returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -2071,7 +2072,7 @@ class poloniex(Exchange, ImplicitAPI):
2071
2072
  async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2072
2073
  """
2073
2074
  fetch all deposits made to an account
2074
- :see: https://docs.poloniex.com/#authenticated-endpoints-wallets-wallets-activity-records
2075
+ :see: https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
2075
2076
  :param str code: unified currency code
2076
2077
  :param int [since]: the earliest time in ms to fetch deposits for
2077
2078
  :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