ccxt 4.4.29__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/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- 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 +564 -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 +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- 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 +198 -132
- 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 +138 -53
- 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 +203 -42
- 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 +90 -39
- 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 +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- 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 +138 -53
- 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 +203 -42
- 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 +90 -39
- 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 +38 -13
- 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/test/tests_helpers.py +2 -2
- 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.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
@@ -220,7 +220,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
220
220
|
async def fetch_markets(self, params={}) -> List[Market]:
|
221
221
|
"""
|
222
222
|
retrieves data on all markets for poloniexfutures
|
223
|
-
|
223
|
+
|
224
|
+
https://api-docs.poloniex.com/futures/api/symbol
|
225
|
+
|
224
226
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
225
227
|
:returns dict[]: an array of objects representing market data
|
226
228
|
"""
|
@@ -426,7 +428,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
426
428
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
427
429
|
"""
|
428
430
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
429
|
-
|
431
|
+
|
432
|
+
https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-20
|
433
|
+
|
430
434
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
431
435
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
432
436
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -460,7 +464,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
460
464
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
461
465
|
"""
|
462
466
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
463
|
-
|
467
|
+
|
468
|
+
https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-of-all-symbols
|
469
|
+
|
464
470
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
465
471
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
466
472
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -473,8 +479,10 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
473
479
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
474
480
|
"""
|
475
481
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
476
|
-
|
477
|
-
|
482
|
+
|
483
|
+
https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book---level-2
|
484
|
+
https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
485
|
+
|
478
486
|
:param str symbol: unified symbol of the market to fetch the order book for
|
479
487
|
:param int [limit]: the maximum amount of order book entries to return
|
480
488
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -553,7 +561,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
553
561
|
async def fetch_l3_order_book(self, symbol: str, limit: Int = None, params={}):
|
554
562
|
"""
|
555
563
|
fetches level 3 information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
556
|
-
|
564
|
+
|
565
|
+
https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
566
|
+
|
557
567
|
:param str symbol: unified market symbol
|
558
568
|
:param int [limit]: max number of orders to return, default is None
|
559
569
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -652,7 +662,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
652
662
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
653
663
|
"""
|
654
664
|
get the list of most recent trades for a particular symbol
|
655
|
-
|
665
|
+
|
666
|
+
https://api-docs.poloniex.com/futures/api/historical#transaction-history
|
667
|
+
|
656
668
|
:param str symbol: unified symbol of the market to fetch trades for
|
657
669
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
658
670
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -687,7 +699,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
687
699
|
async def fetch_time(self, params={}):
|
688
700
|
"""
|
689
701
|
fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
690
|
-
|
702
|
+
|
703
|
+
https://api-docs.poloniex.com/futures/api/time#server-time
|
704
|
+
|
691
705
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
692
706
|
:returns int: the current integer timestamp in milliseconds from the poloniexfutures server
|
693
707
|
"""
|
@@ -704,7 +718,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
704
718
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
705
719
|
"""
|
706
720
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
707
|
-
|
721
|
+
|
722
|
+
https://api-docs.poloniex.com/futures/api/kline#get-k-line-data-of-contract
|
723
|
+
|
708
724
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
709
725
|
:param str timeframe: the length of time each candle represents
|
710
726
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -766,7 +782,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
766
782
|
async def fetch_balance(self, params={}) -> Balances:
|
767
783
|
"""
|
768
784
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
769
|
-
|
785
|
+
|
786
|
+
https://api-docs.poloniex.com/futures/api/account#get-account-overview
|
787
|
+
|
770
788
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
771
789
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
772
790
|
"""
|
@@ -799,7 +817,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
799
817
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
800
818
|
"""
|
801
819
|
Create an order on the exchange
|
802
|
-
|
820
|
+
|
821
|
+
https://api-docs.poloniex.com/futures/api/orders#place-an-order
|
822
|
+
|
803
823
|
:param str symbol: Unified CCXT market symbol
|
804
824
|
:param str type: 'limit' or 'market'
|
805
825
|
:param str side: 'buy' or 'sell'
|
@@ -896,7 +916,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
896
916
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
897
917
|
"""
|
898
918
|
cancels an open order
|
899
|
-
|
919
|
+
|
920
|
+
https://api-docs.poloniex.com/futures/api/orders#cancel-an-order
|
921
|
+
|
900
922
|
:param str id: order id
|
901
923
|
:param str symbol: unified symbol of the market the order was made in
|
902
924
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -933,7 +955,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
933
955
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
934
956
|
"""
|
935
957
|
fetch all open positions
|
936
|
-
|
958
|
+
|
959
|
+
https://api-docs.poloniex.com/futures/api/positions#get-position-list
|
960
|
+
|
937
961
|
:param str[]|None symbols: list of unified market symbols
|
938
962
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
939
963
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -1083,7 +1107,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1083
1107
|
async def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1084
1108
|
"""
|
1085
1109
|
fetch the history of funding payments paid and received on self account
|
1086
|
-
|
1110
|
+
|
1111
|
+
https://api-docs.poloniex.com/futures/api/funding-fees#get-funding-history
|
1112
|
+
|
1087
1113
|
:param str symbol: unified market symbol
|
1088
1114
|
:param int [since]: the earliest time in ms to fetch funding history for
|
1089
1115
|
:param int [limit]: the maximum number of funding history structures to retrieve
|
@@ -1210,8 +1236,10 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1210
1236
|
async def fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1211
1237
|
"""
|
1212
1238
|
fetches a list of orders placed on the exchange
|
1213
|
-
|
1214
|
-
|
1239
|
+
|
1240
|
+
https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
1241
|
+
https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
1242
|
+
|
1215
1243
|
:param str status: 'active' or 'closed', only 'active' is valid for stop orders
|
1216
1244
|
:param str symbol: unified symbol for the market to retrieve orders from
|
1217
1245
|
:param int [since]: timestamp in ms of the earliest order to retrieve
|
@@ -1308,8 +1336,10 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1308
1336
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1309
1337
|
"""
|
1310
1338
|
fetch all unfilled currently open orders
|
1311
|
-
|
1312
|
-
|
1339
|
+
|
1340
|
+
https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
1341
|
+
https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
1342
|
+
|
1313
1343
|
:param str symbol: unified market symbol
|
1314
1344
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1315
1345
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1324,8 +1354,10 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1324
1354
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1325
1355
|
"""
|
1326
1356
|
fetches information on multiple closed orders made by the user
|
1327
|
-
|
1328
|
-
|
1357
|
+
|
1358
|
+
https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
1359
|
+
https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
1360
|
+
|
1329
1361
|
:param str symbol: unified market symbol of the market orders were made in
|
1330
1362
|
:param int [since]: the earliest time in ms to fetch orders for
|
1331
1363
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1340,8 +1372,10 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1340
1372
|
async def fetch_order(self, id: Str = None, symbol: Str = None, params={}):
|
1341
1373
|
"""
|
1342
1374
|
fetches information on an order made by the user
|
1343
|
-
|
1344
|
-
|
1375
|
+
|
1376
|
+
https://api-docs.poloniex.com/futures/api/orders#get-details-of-a-single-order
|
1377
|
+
https://api-docs.poloniex.com/futures/api/orders#get-single-order-by-clientoid
|
1378
|
+
|
1345
1379
|
:param str id: the order id
|
1346
1380
|
:param str symbol: unified symbol of the market the order was made in
|
1347
1381
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1532,7 +1566,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1532
1566
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
1533
1567
|
"""
|
1534
1568
|
fetch the current funding rate
|
1535
|
-
|
1569
|
+
|
1570
|
+
https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
|
1571
|
+
|
1536
1572
|
:param str symbol: unified market symbol
|
1537
1573
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1538
1574
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1558,7 +1594,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1558
1594
|
async def fetch_funding_interval(self, symbol: str, params={}) -> FundingRate:
|
1559
1595
|
"""
|
1560
1596
|
fetch the current funding rate interval
|
1561
|
-
|
1597
|
+
|
1598
|
+
https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
|
1599
|
+
|
1562
1600
|
:param str symbol: unified market symbol
|
1563
1601
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1564
1602
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1611,15 +1649,17 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1611
1649
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1612
1650
|
"""
|
1613
1651
|
fetch all trades made by the user
|
1614
|
-
|
1652
|
+
|
1653
|
+
https://api-docs.poloniex.com/futures/api/fills#get-fillsdeprecated
|
1654
|
+
|
1615
1655
|
:param str symbol: unified market symbol
|
1616
1656
|
:param int [since]: the earliest time in ms to fetch trades for
|
1617
1657
|
:param int [limit]: the maximum number of trades structures to retrieve
|
1618
1658
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1619
|
-
:param str orderIdFills: filles for a specific order(other parameters can be ignored if specified)
|
1620
|
-
:param str side: buy or sell
|
1621
|
-
:param str type: limit, market, limit_stop or market_stop
|
1622
|
-
:param int endAt: end time(milisecond)
|
1659
|
+
:param str [params.orderIdFills]: filles for a specific order(other parameters can be ignored if specified)
|
1660
|
+
:param str [params.side]: buy or sell
|
1661
|
+
:param str [params.type]: limit, market, limit_stop or market_stop
|
1662
|
+
:param int [params.endAt]: end time(milisecond)
|
1623
1663
|
:returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
|
1624
1664
|
"""
|
1625
1665
|
await self.load_markets()
|
@@ -1672,7 +1712,9 @@ class poloniexfutures(Exchange, ImplicitAPI):
|
|
1672
1712
|
async def set_margin_mode(self, marginMode: str, symbol: Str = None, params={}):
|
1673
1713
|
"""
|
1674
1714
|
set margin mode to 'cross' or 'isolated'
|
1675
|
-
|
1715
|
+
|
1716
|
+
https://api-docs.poloniex.com/futures/api/margin-mode#change-margin-mode
|
1717
|
+
|
1676
1718
|
:param str marginMode: "0"(isolated) or "1"(cross)
|
1677
1719
|
:param str symbol: unified market symbol
|
1678
1720
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
ccxt/async_support/probit.py
CHANGED
@@ -245,7 +245,9 @@ class probit(Exchange, ImplicitAPI):
|
|
245
245
|
|
246
246
|
async def fetch_markets(self, params={}) -> List[Market]:
|
247
247
|
"""
|
248
|
-
|
248
|
+
|
249
|
+
https://docs-en.probit.com/reference/market
|
250
|
+
|
249
251
|
retrieves data on all markets for probit
|
250
252
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
251
253
|
:returns dict[]: an array of objects representing market data
|
@@ -344,7 +346,9 @@ class probit(Exchange, ImplicitAPI):
|
|
344
346
|
|
345
347
|
async def fetch_currencies(self, params={}) -> Currencies:
|
346
348
|
"""
|
347
|
-
|
349
|
+
|
350
|
+
https://docs-en.probit.com/reference/currency
|
351
|
+
|
348
352
|
fetches all available currencies on an exchange
|
349
353
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
350
354
|
:returns dict: an associative dictionary of currencies
|
@@ -525,7 +529,9 @@ class probit(Exchange, ImplicitAPI):
|
|
525
529
|
|
526
530
|
async def fetch_balance(self, params={}) -> Balances:
|
527
531
|
"""
|
528
|
-
|
532
|
+
|
533
|
+
https://docs-en.probit.com/reference/balance
|
534
|
+
|
529
535
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
530
536
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
531
537
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -547,7 +553,9 @@ class probit(Exchange, ImplicitAPI):
|
|
547
553
|
|
548
554
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
549
555
|
"""
|
550
|
-
|
556
|
+
|
557
|
+
https://docs-en.probit.com/reference/order_book
|
558
|
+
|
551
559
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
552
560
|
:param str symbol: unified symbol of the market to fetch the order book for
|
553
561
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -575,7 +583,9 @@ class probit(Exchange, ImplicitAPI):
|
|
575
583
|
|
576
584
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
577
585
|
"""
|
578
|
-
|
586
|
+
|
587
|
+
https://docs-en.probit.com/reference/ticker
|
588
|
+
|
579
589
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
580
590
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
581
591
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -608,7 +618,9 @@ class probit(Exchange, ImplicitAPI):
|
|
608
618
|
|
609
619
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
610
620
|
"""
|
611
|
-
|
621
|
+
|
622
|
+
https://docs-en.probit.com/reference/ticker
|
623
|
+
|
612
624
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
613
625
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
614
626
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -687,7 +699,9 @@ class probit(Exchange, ImplicitAPI):
|
|
687
699
|
|
688
700
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
689
701
|
"""
|
690
|
-
|
702
|
+
|
703
|
+
https://docs-en.probit.com/reference/trade
|
704
|
+
|
691
705
|
fetch all trades made by the user
|
692
706
|
:param str symbol: unified market symbol
|
693
707
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -736,7 +750,9 @@ class probit(Exchange, ImplicitAPI):
|
|
736
750
|
|
737
751
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
738
752
|
"""
|
739
|
-
|
753
|
+
|
754
|
+
https://docs-en.probit.com/reference/trade-1
|
755
|
+
|
740
756
|
get the list of most recent trades for a particular symbol
|
741
757
|
:param str symbol: unified symbol of the market to fetch trades for
|
742
758
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -851,7 +867,9 @@ class probit(Exchange, ImplicitAPI):
|
|
851
867
|
|
852
868
|
async def fetch_time(self, params={}):
|
853
869
|
"""
|
854
|
-
|
870
|
+
|
871
|
+
https://docs-en.probit.com/reference/time
|
872
|
+
|
855
873
|
fetches the current integer timestamp in milliseconds from the exchange server
|
856
874
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
857
875
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
@@ -894,7 +912,9 @@ class probit(Exchange, ImplicitAPI):
|
|
894
912
|
|
895
913
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
896
914
|
"""
|
897
|
-
|
915
|
+
|
916
|
+
https://docs-en.probit.com/reference/candle
|
917
|
+
|
898
918
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
899
919
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
900
920
|
:param str timeframe: the length of time each candle represents
|
@@ -978,7 +998,9 @@ class probit(Exchange, ImplicitAPI):
|
|
978
998
|
|
979
999
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
980
1000
|
"""
|
981
|
-
|
1001
|
+
|
1002
|
+
https://docs-en.probit.com/reference/open_order-1
|
1003
|
+
|
982
1004
|
fetch all unfilled currently open orders
|
983
1005
|
:param str symbol: unified market symbol
|
984
1006
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -999,7 +1021,9 @@ class probit(Exchange, ImplicitAPI):
|
|
999
1021
|
|
1000
1022
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1001
1023
|
"""
|
1002
|
-
|
1024
|
+
|
1025
|
+
https://docs-en.probit.com/reference/order
|
1026
|
+
|
1003
1027
|
fetches information on multiple closed orders made by the user
|
1004
1028
|
:param str symbol: unified market symbol of the market orders were made in
|
1005
1029
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -1027,7 +1051,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1027
1051
|
|
1028
1052
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1029
1053
|
"""
|
1030
|
-
|
1054
|
+
|
1055
|
+
https://docs-en.probit.com/reference/order-3
|
1056
|
+
|
1031
1057
|
fetches information on an order made by the user
|
1032
1058
|
:param str id: the order id
|
1033
1059
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1129,7 +1155,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1129
1155
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1130
1156
|
"""
|
1131
1157
|
create a trade order
|
1132
|
-
|
1158
|
+
|
1159
|
+
https://docs-en.probit.com/reference/order-1
|
1160
|
+
|
1133
1161
|
:param str symbol: unified symbol of the market to create an order in
|
1134
1162
|
:param str type: 'market' or 'limit'
|
1135
1163
|
:param str side: 'buy' or 'sell'
|
@@ -1214,7 +1242,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1214
1242
|
|
1215
1243
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1216
1244
|
"""
|
1217
|
-
|
1245
|
+
|
1246
|
+
https://docs-en.probit.com/reference/order-2
|
1247
|
+
|
1218
1248
|
cancels an open order
|
1219
1249
|
:param str id: order id
|
1220
1250
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1251,7 +1281,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1251
1281
|
|
1252
1282
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1253
1283
|
"""
|
1254
|
-
|
1284
|
+
|
1285
|
+
https://docs-en.probit.com/reference/deposit_address
|
1286
|
+
|
1255
1287
|
fetch the deposit address for a currency associated with self account
|
1256
1288
|
:param str code: unified currency code
|
1257
1289
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1301,7 +1333,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1301
1333
|
|
1302
1334
|
async def fetch_deposit_addresses(self, codes: Strings = None, params={}) -> List[DepositAddress]:
|
1303
1335
|
"""
|
1304
|
-
|
1336
|
+
|
1337
|
+
https://docs-en.probit.com/reference/deposit_address
|
1338
|
+
|
1305
1339
|
fetch deposit addresses for multiple currencies and chain types
|
1306
1340
|
:param str[]|None codes: list of unified currency codes, default is None
|
1307
1341
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1321,7 +1355,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1321
1355
|
|
1322
1356
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1323
1357
|
"""
|
1324
|
-
|
1358
|
+
|
1359
|
+
https://docs-en.probit.com/reference/withdrawal
|
1360
|
+
|
1325
1361
|
make a withdrawal
|
1326
1362
|
:param str code: unified currency code
|
1327
1363
|
:param float amount: the amount to withdraw
|
@@ -1395,12 +1431,14 @@ class probit(Exchange, ImplicitAPI):
|
|
1395
1431
|
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1396
1432
|
"""
|
1397
1433
|
fetch history of deposits and withdrawals
|
1398
|
-
|
1434
|
+
|
1435
|
+
https://docs-en.probit.com/reference/transferpayment
|
1436
|
+
|
1399
1437
|
:param str code: unified currency code
|
1400
1438
|
:param int [since]: the earliest time in ms to fetch transactions for
|
1401
1439
|
:param int [limit]: the maximum number of transaction structures to retrieve
|
1402
|
-
:param int [params.until]: the latest time in ms to fetch transactions for
|
1403
1440
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1441
|
+
:param int [params.until]: the latest time in ms to fetch transactions for
|
1404
1442
|
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
|
1405
1443
|
"""
|
1406
1444
|
await self.load_markets()
|
@@ -1529,7 +1567,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1529
1567
|
|
1530
1568
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
1531
1569
|
"""
|
1532
|
-
|
1570
|
+
|
1571
|
+
https://docs-en.probit.com/reference/currency
|
1572
|
+
|
1533
1573
|
fetch deposit and withdraw fees
|
1534
1574
|
:param str[]|None codes: list of unified currency codes
|
1535
1575
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1700,7 +1740,9 @@ class probit(Exchange, ImplicitAPI):
|
|
1700
1740
|
|
1701
1741
|
async def sign_in(self, params={}):
|
1702
1742
|
"""
|
1703
|
-
|
1743
|
+
|
1744
|
+
https://docs-en.probit.com/reference/token
|
1745
|
+
|
1704
1746
|
sign in, must be called prior to using other authenticated methods
|
1705
1747
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1706
1748
|
:returns: response from exchange
|