ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__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/okcoin.py +70 -206
- ccxt/ace.py +12 -12
- ccxt/ascendex.py +5 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +12 -12
- ccxt/async_support/ascendex.py +5 -5
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +184 -184
- ccxt/async_support/bingx.py +48 -48
- ccxt/async_support/bitbank.py +14 -14
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +35 -35
- ccxt/async_support/bitflyer.py +17 -17
- ccxt/async_support/bitforex.py +9 -9
- ccxt/async_support/bitget.py +433 -215
- ccxt/async_support/bitmart.py +39 -39
- ccxt/async_support/bitmex.py +7 -7
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcalpha.py +7 -7
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +58 -58
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +13 -13
- ccxt/async_support/coinbasepro.py +15 -15
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +4 -4
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +28 -28
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +26 -26
- ccxt/async_support/deribit.py +9 -9
- ccxt/async_support/digifinex.py +38 -38
- ccxt/async_support/exmo.py +18 -18
- ccxt/async_support/gate.py +59 -59
- ccxt/async_support/gemini.py +4 -4
- ccxt/async_support/hitbtc.py +6 -6
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/huobi.py +70 -70
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +33 -33
- ccxt/async_support/krakenfutures.py +6 -5
- ccxt/async_support/kucoin.py +74 -74
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank2.py +33 -33
- ccxt/async_support/mexc.py +22 -22
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +22 -22
- ccxt/async_support/oceanex.py +18 -18
- ccxt/async_support/okcoin.py +1950 -2758
- ccxt/async_support/okx.py +73 -73
- ccxt/async_support/paymium.py +11 -11
- ccxt/async_support/phemex.py +26 -26
- ccxt/async_support/poloniex.py +30 -30
- ccxt/async_support/poloniexfutures.py +25 -25
- ccxt/async_support/probit.py +21 -21
- ccxt/async_support/tokocrypto.py +22 -22
- ccxt/async_support/upbit.py +21 -21
- ccxt/async_support/wavesexchange.py +2 -2
- ccxt/async_support/wazirx.py +14 -14
- ccxt/async_support/whitebit.py +6 -6
- ccxt/async_support/woo.py +21 -21
- ccxt/async_support/yobit.py +16 -16
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +15 -15
- ccxt/base/exchange.py +2 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +184 -184
- ccxt/bingx.py +48 -48
- ccxt/bitbank.py +14 -14
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +35 -35
- ccxt/bitflyer.py +17 -17
- ccxt/bitforex.py +9 -9
- ccxt/bitget.py +433 -215
- ccxt/bitmart.py +39 -39
- ccxt/bitmex.py +7 -7
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/bl3p.py +1 -1
- ccxt/btcalpha.py +7 -7
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +58 -58
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +13 -13
- ccxt/coinbasepro.py +15 -15
- ccxt/coinex.py +19 -19
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +4 -4
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +28 -28
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +26 -26
- ccxt/deribit.py +9 -9
- ccxt/digifinex.py +38 -38
- ccxt/exmo.py +18 -18
- ccxt/gate.py +59 -59
- ccxt/gemini.py +4 -4
- ccxt/hitbtc.py +6 -6
- ccxt/hollaex.py +2 -2
- ccxt/huobi.py +70 -70
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +33 -33
- ccxt/krakenfutures.py +6 -5
- ccxt/kucoin.py +74 -74
- ccxt/kucoinfutures.py +8 -8
- ccxt/latoken.py +14 -14
- ccxt/lbank2.py +33 -33
- ccxt/mexc.py +22 -22
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +22 -22
- ccxt/oceanex.py +18 -18
- ccxt/okcoin.py +1950 -2758
- ccxt/okx.py +73 -73
- ccxt/paymium.py +11 -11
- ccxt/phemex.py +26 -26
- ccxt/poloniex.py +30 -30
- ccxt/poloniexfutures.py +25 -25
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +12 -12
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitpanda.py +7 -7
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/blockchaincom.py +6 -6
- ccxt/pro/bybit.py +15 -15
- ccxt/pro/cex.py +8 -8
- ccxt/pro/coinbase.py +6 -6
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +8 -8
- ccxt/pro/cryptocom.py +12 -12
- ccxt/pro/deribit.py +7 -7
- ccxt/pro/gemini.py +4 -4
- ccxt/pro/hitbtc.py +17 -17
- ccxt/pro/huobi.py +3 -3
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +10 -10
- ccxt/pro/kucoin.py +85 -42
- ccxt/pro/kucoinfutures.py +5 -5
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +7 -7
- ccxt/pro/okx.py +16 -15
- ccxt/pro/phemex.py +15 -15
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +5 -5
- ccxt/pro/wazirx.py +5 -5
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +21 -21
- ccxt/test/base/test_shared_methods.py +1 -1
- ccxt/tokocrypto.py +22 -22
- ccxt/upbit.py +21 -21
- ccxt/wavesexchange.py +2 -2
- ccxt/wazirx.py +14 -14
- ccxt/whitebit.py +6 -6
- ccxt/woo.py +21 -21
- ccxt/yobit.py +16 -16
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +15 -15
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/wazirx.py
CHANGED
@@ -167,7 +167,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
167
167
|
|
168
168
|
def fetch_markets(self, params={}):
|
169
169
|
"""
|
170
|
-
see https://docs.wazirx.com/#exchange-info
|
170
|
+
:see: https://docs.wazirx.com/#exchange-info
|
171
171
|
retrieves data on all markets for wazirx
|
172
172
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
173
173
|
:returns dict[]: an array of objects representing market data
|
@@ -277,7 +277,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
277
277
|
|
278
278
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
279
279
|
"""
|
280
|
-
see https://docs.wazirx.com/#kline-candlestick-data
|
280
|
+
:see: https://docs.wazirx.com/#kline-candlestick-data
|
281
281
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
282
282
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
283
283
|
:param str timeframe: the length of time each candle represents. Available values [1m,5m,15m,30m,1h,2h,4h,6h,12h,1d,1w]
|
@@ -325,7 +325,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
325
325
|
|
326
326
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
327
327
|
"""
|
328
|
-
see https://docs.wazirx.com/#order-book
|
328
|
+
:see: https://docs.wazirx.com/#order-book
|
329
329
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
330
330
|
:param str symbol: unified symbol of the market to fetch the order book for
|
331
331
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -358,7 +358,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
358
358
|
|
359
359
|
def fetch_ticker(self, symbol: str, params={}):
|
360
360
|
"""
|
361
|
-
see https://docs.wazirx.com/#24hr-ticker-price-change-statistics
|
361
|
+
:see: https://docs.wazirx.com/#24hr-ticker-price-change-statistics
|
362
362
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
363
363
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
364
364
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
@@ -389,7 +389,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
389
389
|
|
390
390
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
391
391
|
"""
|
392
|
-
see https://docs.wazirx.com/#24hr-tickers-price-change-statistics
|
392
|
+
:see: https://docs.wazirx.com/#24hr-tickers-price-change-statistics
|
393
393
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
394
394
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
395
395
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
@@ -424,7 +424,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
424
424
|
|
425
425
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
426
426
|
"""
|
427
|
-
see https://docs.wazirx.com/#recent-trades-list
|
427
|
+
:see: https://docs.wazirx.com/#recent-trades-list
|
428
428
|
get the list of most recent trades for a particular symbol
|
429
429
|
:param str symbol: unified symbol of the market to fetch trades for
|
430
430
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -491,7 +491,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
491
491
|
|
492
492
|
def fetch_status(self, params={}):
|
493
493
|
"""
|
494
|
-
see https://docs.wazirx.com/#system-status
|
494
|
+
:see: https://docs.wazirx.com/#system-status
|
495
495
|
the latest known information on the availability of the exchange API
|
496
496
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
497
497
|
:returns dict: a `status structure <https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure>`
|
@@ -514,7 +514,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
514
514
|
|
515
515
|
def fetch_time(self, params={}):
|
516
516
|
"""
|
517
|
-
see https://docs.wazirx.com/#check-server-time
|
517
|
+
:see: https://docs.wazirx.com/#check-server-time
|
518
518
|
fetches the current integer timestamp in milliseconds from the exchange server
|
519
519
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
520
520
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
@@ -591,7 +591,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
591
591
|
|
592
592
|
def fetch_balance(self, params={}):
|
593
593
|
"""
|
594
|
-
see https://docs.wazirx.com/#fund-details-user_data
|
594
|
+
:see: https://docs.wazirx.com/#fund-details-user_data
|
595
595
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
596
596
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
597
597
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
@@ -611,7 +611,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
611
611
|
|
612
612
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
613
613
|
"""
|
614
|
-
see https://docs.wazirx.com/#all-orders-user_data
|
614
|
+
:see: https://docs.wazirx.com/#all-orders-user_data
|
615
615
|
fetches information on multiple orders made by the user
|
616
616
|
:param str symbol: unified market symbol of the market orders were made in
|
617
617
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -666,7 +666,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
666
666
|
|
667
667
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
668
668
|
"""
|
669
|
-
see https://docs.wazirx.com/#current-open-orders-user_data
|
669
|
+
:see: https://docs.wazirx.com/#current-open-orders-user_data
|
670
670
|
fetch all unfilled currently open orders
|
671
671
|
:param str symbol: unified market symbol
|
672
672
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -713,7 +713,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
713
713
|
|
714
714
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
715
715
|
"""
|
716
|
-
see https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
|
716
|
+
:see: https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
|
717
717
|
cancel all open orders in a market
|
718
718
|
:param str symbol: unified market symbol of the market to cancel orders in
|
719
719
|
:param dict [params]: extra parameters specific to the wazirx api endpoint
|
@@ -730,7 +730,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
730
730
|
|
731
731
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
732
732
|
"""
|
733
|
-
see https://docs.wazirx.com/#cancel-order-trade
|
733
|
+
:see: https://docs.wazirx.com/#cancel-order-trade
|
734
734
|
cancels an open order
|
735
735
|
:param str id: order id
|
736
736
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -750,7 +750,7 @@ class wazirx(Exchange, ImplicitAPI):
|
|
750
750
|
|
751
751
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
752
752
|
"""
|
753
|
-
see https://docs.wazirx.com/#new-order-trade
|
753
|
+
:see: https://docs.wazirx.com/#new-order-trade
|
754
754
|
create a trade order
|
755
755
|
:param str symbol: unified symbol of the market to create an order in
|
756
756
|
:param str type: 'market' or 'limit'
|
ccxt/whitebit.py
CHANGED
@@ -282,7 +282,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
282
282
|
def fetch_markets(self, params={}):
|
283
283
|
"""
|
284
284
|
retrieves data on all markets for whitebit
|
285
|
-
see https://whitebit-exchange.github.io/api-docs/docs/Public/http-v4#market-info
|
285
|
+
:see: https://whitebit-exchange.github.io/api-docs/docs/Public/http-v4#market-info
|
286
286
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
287
287
|
:returns dict[]: an array of objects representing market data
|
288
288
|
"""
|
@@ -812,7 +812,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
812
812
|
|
813
813
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
814
814
|
"""
|
815
|
-
see https://whitebit-exchange.github.io/api-docs/public/http-v4/#orderbook
|
815
|
+
:see: https://whitebit-exchange.github.io/api-docs/public/http-v4/#orderbook
|
816
816
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
817
817
|
:param str symbol: unified symbol of the market to fetch the order book for
|
818
818
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -1592,7 +1592,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1592
1592
|
def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
1593
1593
|
"""
|
1594
1594
|
transfer currency internally between wallets on the same account
|
1595
|
-
see https://github.com/whitebit-exchange/api-docs/blob/main/docs/Private/http-main-v4.md#transfer-between-main-and-trade-balances
|
1595
|
+
:see: https://github.com/whitebit-exchange/api-docs/blob/main/docs/Private/http-main-v4.md#transfer-between-main-and-trade-balances
|
1596
1596
|
:param str code: unified currency code
|
1597
1597
|
:param float amount: amount to transfer
|
1598
1598
|
:param str fromAccount: account to transfer from - main, spot, collateral
|
@@ -1879,7 +1879,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1879
1879
|
def fetch_borrow_interest(self, code: Optional[str] = None, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1880
1880
|
"""
|
1881
1881
|
fetch the interest owed by the user for borrowing currency for margin trading
|
1882
|
-
see https://github.com/whitebit-exchange/api-docs/blob/main/docs/Private/http-trade-v4.md#open-positions
|
1882
|
+
:see: https://github.com/whitebit-exchange/api-docs/blob/main/docs/Private/http-trade-v4.md#open-positions
|
1883
1883
|
:param str code: unified currency code
|
1884
1884
|
:param str symbol: unified market symbol
|
1885
1885
|
:param int [since]: the earliest time in ms to fetch borrrow interest for
|
@@ -1955,7 +1955,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1955
1955
|
|
1956
1956
|
def fetch_funding_rate(self, symbol: str, params={}):
|
1957
1957
|
"""
|
1958
|
-
see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
1958
|
+
:see: https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
1959
1959
|
fetch the current funding rate
|
1960
1960
|
:param str symbol: unified market symbol
|
1961
1961
|
:param dict [params]: extra parameters specific to the whitebit api endpoint
|
@@ -1968,7 +1968,7 @@ class whitebit(Exchange, ImplicitAPI):
|
|
1968
1968
|
|
1969
1969
|
def fetch_funding_rates(self, symbols: Optional[List[str]] = None, params={}):
|
1970
1970
|
"""
|
1971
|
-
see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
1971
|
+
:see: https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
1972
1972
|
fetch the funding rate for multiple markets
|
1973
1973
|
:param str[]|None symbols: list of unified market symbols
|
1974
1974
|
:param dict [params]: extra parameters specific to the whitebit api endpoint
|
ccxt/woo.py
CHANGED
@@ -537,7 +537,7 @@ class woo(Exchange, ImplicitAPI):
|
|
537
537
|
def fetch_trading_fees(self, params={}):
|
538
538
|
"""
|
539
539
|
fetch the trading fees for multiple markets
|
540
|
-
see https://docs.woo.org/#get-account-information-new
|
540
|
+
:see: https://docs.woo.org/#get-account-information-new
|
541
541
|
:param dict [params]: extra parameters specific to the woo api endpoint
|
542
542
|
:returns dict: a dictionary of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>` indexed by market symbols
|
543
543
|
"""
|
@@ -720,8 +720,8 @@ class woo(Exchange, ImplicitAPI):
|
|
720
720
|
|
721
721
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
722
722
|
"""
|
723
|
-
see https://docs.woo.org/#send-order
|
724
|
-
see https://docs.woo.org/#send-algo-order
|
723
|
+
:see: https://docs.woo.org/#send-order
|
724
|
+
:see: https://docs.woo.org/#send-algo-order
|
725
725
|
create a trade order
|
726
726
|
:param str symbol: unified symbol of the market to create an order in
|
727
727
|
:param str type: 'market' or 'limit'
|
@@ -870,10 +870,10 @@ class woo(Exchange, ImplicitAPI):
|
|
870
870
|
|
871
871
|
def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
872
872
|
"""
|
873
|
-
see https://docs.woo.org/#edit-order
|
874
|
-
see https://docs.woo.org/#edit-order-by-client_order_id
|
875
|
-
see https://docs.woo.org/#edit-algo-order
|
876
|
-
see https://docs.woo.org/#edit-algo-order-by-client_order_id
|
873
|
+
:see: https://docs.woo.org/#edit-order
|
874
|
+
:see: https://docs.woo.org/#edit-order-by-client_order_id
|
875
|
+
:see: https://docs.woo.org/#edit-algo-order
|
876
|
+
:see: https://docs.woo.org/#edit-algo-order-by-client_order_id
|
877
877
|
edit a trade order
|
878
878
|
:param str id: order id
|
879
879
|
:param str symbol: unified symbol of the market to create an order in
|
@@ -937,9 +937,9 @@ class woo(Exchange, ImplicitAPI):
|
|
937
937
|
|
938
938
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
939
939
|
"""
|
940
|
-
see https://docs.woo.org/#cancel-algo-order
|
941
|
-
see https://docs.woo.org/#cancel-order
|
942
|
-
see https://docs.woo.org/#cancel-order-by-client_order_id
|
940
|
+
:see: https://docs.woo.org/#cancel-algo-order
|
941
|
+
:see: https://docs.woo.org/#cancel-order
|
942
|
+
:see: https://docs.woo.org/#cancel-order-by-client_order_id
|
943
943
|
cancels an open order
|
944
944
|
:param str id: order id
|
945
945
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -985,9 +985,9 @@ class woo(Exchange, ImplicitAPI):
|
|
985
985
|
|
986
986
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
987
987
|
"""
|
988
|
-
see https://docs.woo.org/#cancel-all-pending-orders
|
989
|
-
see https://docs.woo.org/#cancel-orders
|
990
|
-
see https://docs.woo.org/#cancel-all-pending-algo-orders
|
988
|
+
:see: https://docs.woo.org/#cancel-all-pending-orders
|
989
|
+
:see: https://docs.woo.org/#cancel-orders
|
990
|
+
:see: https://docs.woo.org/#cancel-all-pending-algo-orders
|
991
991
|
cancel all open orders in a market
|
992
992
|
:param str symbol: unified market symbol
|
993
993
|
:param dict [params]: extra parameters specific to the woo api endpoint
|
@@ -1015,8 +1015,8 @@ class woo(Exchange, ImplicitAPI):
|
|
1015
1015
|
|
1016
1016
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1017
1017
|
"""
|
1018
|
-
see https://docs.woo.org/#get-algo-order
|
1019
|
-
see https://docs.woo.org/#get-order
|
1018
|
+
:see: https://docs.woo.org/#get-algo-order
|
1019
|
+
:see: https://docs.woo.org/#get-order
|
1020
1020
|
fetches information on an order made by the user
|
1021
1021
|
:param str symbol: unified symbol of the market the order was made in
|
1022
1022
|
:param dict [params]: extra parameters specific to the woo api endpoint
|
@@ -1080,8 +1080,8 @@ class woo(Exchange, ImplicitAPI):
|
|
1080
1080
|
|
1081
1081
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1082
1082
|
"""
|
1083
|
-
see https://docs.woo.org/#get-orders
|
1084
|
-
see https://docs.woo.org/#get-algo-orders
|
1083
|
+
:see: https://docs.woo.org/#get-orders
|
1084
|
+
:see: https://docs.woo.org/#get-algo-orders
|
1085
1085
|
fetches information on multiple orders made by the user
|
1086
1086
|
:param str symbol: unified market symbol of the market orders were made in
|
1087
1087
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -1318,7 +1318,7 @@ class woo(Exchange, ImplicitAPI):
|
|
1318
1318
|
|
1319
1319
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1320
1320
|
"""
|
1321
|
-
see https://docs.woo.org/#kline-public
|
1321
|
+
:see: https://docs.woo.org/#kline-public
|
1322
1322
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1323
1323
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1324
1324
|
:param str timeframe: the length of time each candle represents
|
@@ -1509,7 +1509,7 @@ class woo(Exchange, ImplicitAPI):
|
|
1509
1509
|
def fetch_balance(self, params={}):
|
1510
1510
|
"""
|
1511
1511
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1512
|
-
see https://docs.woo.org/#get-current-holding-get-balance-new
|
1512
|
+
:see: https://docs.woo.org/#get-current-holding-get-balance-new
|
1513
1513
|
:param dict [params]: extra parameters specific to the woo api endpoint
|
1514
1514
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1515
1515
|
"""
|
@@ -1956,7 +1956,7 @@ class woo(Exchange, ImplicitAPI):
|
|
1956
1956
|
def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
1957
1957
|
"""
|
1958
1958
|
repay borrowed margin and interest
|
1959
|
-
see https://docs.woo.org/#repay-interest
|
1959
|
+
:see: https://docs.woo.org/#repay-interest
|
1960
1960
|
:param str code: unified currency code of the currency to repay
|
1961
1961
|
:param float amount: the amount to repay
|
1962
1962
|
:param str symbol: not used by woo.repayMargin()
|
@@ -2223,7 +2223,7 @@ class woo(Exchange, ImplicitAPI):
|
|
2223
2223
|
def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2224
2224
|
"""
|
2225
2225
|
fetches historical funding rate prices
|
2226
|
-
see https://docs.woo.org/#get-funding-rate-history-for-one-market-public
|
2226
|
+
:see: https://docs.woo.org/#get-funding-rate-history-for-one-market-public
|
2227
2227
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2228
2228
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2229
2229
|
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
ccxt/yobit.py
CHANGED
@@ -312,7 +312,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
312
312
|
|
313
313
|
def fetch_balance(self, params={}):
|
314
314
|
"""
|
315
|
-
see https://yobit.net/en/api
|
315
|
+
:see: https://yobit.net/en/api
|
316
316
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
317
317
|
:param dict [params]: extra parameters specific to the yobit api endpoint
|
318
318
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
@@ -348,7 +348,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
348
348
|
|
349
349
|
def fetch_markets(self, params={}):
|
350
350
|
"""
|
351
|
-
see https://yobit.net/en/api
|
351
|
+
:see: https://yobit.net/en/api
|
352
352
|
retrieves data on all markets for yobit
|
353
353
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
354
354
|
:returns dict[]: an array of objects representing market data
|
@@ -442,7 +442,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
442
442
|
|
443
443
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
444
444
|
"""
|
445
|
-
see https://yobit.net/en/api
|
445
|
+
:see: https://yobit.net/en/api
|
446
446
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
447
447
|
:param str symbol: unified symbol of the market to fetch the order book for
|
448
448
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -465,7 +465,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
465
465
|
|
466
466
|
def fetch_order_books(self, symbols: Optional[List[str]] = None, limit: Optional[int] = None, params={}):
|
467
467
|
"""
|
468
|
-
see https://yobit.net/en/api
|
468
|
+
:see: https://yobit.net/en/api
|
469
469
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data for multiple markets
|
470
470
|
:param str[]|None symbols: list of unified market symbols, all symbols fetched if None, default is None
|
471
471
|
:param int [limit]: max number of entries per orderbook to return, default is None
|
@@ -539,7 +539,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
539
539
|
|
540
540
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
541
541
|
"""
|
542
|
-
see https://yobit.net/en/api
|
542
|
+
:see: https://yobit.net/en/api
|
543
543
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
544
544
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
545
545
|
:param dict [params]: extra parameters specific to the yobit api endpoint
|
@@ -578,7 +578,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
578
578
|
|
579
579
|
def fetch_ticker(self, symbol: str, params={}):
|
580
580
|
"""
|
581
|
-
see https://yobit.net/en/api
|
581
|
+
:see: https://yobit.net/en/api
|
582
582
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
583
583
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
584
584
|
:param dict [params]: extra parameters specific to the yobit api endpoint
|
@@ -663,7 +663,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
663
663
|
|
664
664
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
665
665
|
"""
|
666
|
-
see https://yobit.net/en/api
|
666
|
+
:see: https://yobit.net/en/api
|
667
667
|
get the list of most recent trades for a particular symbol
|
668
668
|
:param str symbol: unified symbol of the market to fetch trades for
|
669
669
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -701,7 +701,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
701
701
|
|
702
702
|
def fetch_trading_fees(self, params={}):
|
703
703
|
"""
|
704
|
-
see https://yobit.net/en/api
|
704
|
+
:see: https://yobit.net/en/api
|
705
705
|
fetch the trading fees for multiple markets
|
706
706
|
:param dict [params]: extra parameters specific to the yobit api endpoint
|
707
707
|
:returns dict: a dictionary of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>` indexed by market symbols
|
@@ -750,7 +750,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
750
750
|
|
751
751
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
752
752
|
"""
|
753
|
-
see https://yobit.net/en/api
|
753
|
+
:see: https://yobit.net/en/api
|
754
754
|
create a trade order
|
755
755
|
:param str symbol: unified symbol of the market to create an order in
|
756
756
|
:param str type: must be 'limit'
|
@@ -797,7 +797,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
797
797
|
|
798
798
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
799
799
|
"""
|
800
|
-
see https://yobit.net/en/api
|
800
|
+
:see: https://yobit.net/en/api
|
801
801
|
cancels an open order
|
802
802
|
:param str id: order id
|
803
803
|
:param str symbol: not used by yobit cancelOrder()
|
@@ -944,7 +944,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
944
944
|
|
945
945
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
946
946
|
"""
|
947
|
-
see https://yobit.net/en/api
|
947
|
+
:see: https://yobit.net/en/api
|
948
948
|
fetches information on an order made by the user
|
949
949
|
:param str symbol: not used by yobit fetchOrder
|
950
950
|
:param dict [params]: extra parameters specific to the yobit api endpoint
|
@@ -977,7 +977,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
977
977
|
|
978
978
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
979
979
|
"""
|
980
|
-
see https://yobit.net/en/api
|
980
|
+
:see: https://yobit.net/en/api
|
981
981
|
fetch all unfilled currently open orders
|
982
982
|
:param str symbol: unified market symbol
|
983
983
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -1022,7 +1022,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
1022
1022
|
|
1023
1023
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1024
1024
|
"""
|
1025
|
-
see https://yobit.net/en/api
|
1025
|
+
:see: https://yobit.net/en/api
|
1026
1026
|
fetch all trades made by the user
|
1027
1027
|
:param str symbol: unified market symbol
|
1028
1028
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -1079,7 +1079,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
1079
1079
|
|
1080
1080
|
def create_deposit_address(self, code: str, params={}):
|
1081
1081
|
"""
|
1082
|
-
see https://yobit.net/en/api
|
1082
|
+
:see: https://yobit.net/en/api
|
1083
1083
|
create a currency deposit address
|
1084
1084
|
:param str code: unified currency code of the currency for the deposit address
|
1085
1085
|
:param dict [params]: extra parameters specific to the yobit api endpoint
|
@@ -1100,7 +1100,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
1100
1100
|
|
1101
1101
|
def fetch_deposit_address(self, code: str, params={}):
|
1102
1102
|
"""
|
1103
|
-
see https://yobit.net/en/api
|
1103
|
+
:see: https://yobit.net/en/api
|
1104
1104
|
fetch the deposit address for a currency associated with self account
|
1105
1105
|
:param str code: unified currency code
|
1106
1106
|
:param dict [params]: extra parameters specific to the yobit api endpoint
|
@@ -1133,7 +1133,7 @@ class yobit(Exchange, ImplicitAPI):
|
|
1133
1133
|
|
1134
1134
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
1135
1135
|
"""
|
1136
|
-
see https://yobit.net/en/api
|
1136
|
+
:see: https://yobit.net/en/api
|
1137
1137
|
make a withdrawal
|
1138
1138
|
:param str code: unified currency code
|
1139
1139
|
:param float amount: the amount to withdraw
|
ccxt/zaif.py
CHANGED
@@ -154,7 +154,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
154
154
|
|
155
155
|
def fetch_markets(self, params={}):
|
156
156
|
"""
|
157
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id12
|
157
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id12
|
158
158
|
retrieves data on all markets for zaif
|
159
159
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
160
160
|
:returns dict[]: an array of objects representing market data
|
@@ -269,7 +269,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
269
269
|
|
270
270
|
def fetch_balance(self, params={}):
|
271
271
|
"""
|
272
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id10
|
272
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id10
|
273
273
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
274
274
|
:param dict [params]: extra parameters specific to the zaif api endpoint
|
275
275
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
@@ -280,7 +280,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
280
280
|
|
281
281
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
282
282
|
"""
|
283
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id34
|
283
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id34
|
284
284
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
285
285
|
:param str symbol: unified symbol of the market to fetch the order book for
|
286
286
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -338,7 +338,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
338
338
|
|
339
339
|
def fetch_ticker(self, symbol: str, params={}):
|
340
340
|
"""
|
341
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id22
|
341
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id22
|
342
342
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
343
343
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
344
344
|
:param dict [params]: extra parameters specific to the zaif api endpoint
|
@@ -402,7 +402,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
402
402
|
|
403
403
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
404
404
|
"""
|
405
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id28
|
405
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id28
|
406
406
|
get the list of most recent trades for a particular symbol
|
407
407
|
:param str symbol: unified symbol of the market to fetch trades for
|
408
408
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -437,7 +437,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
437
437
|
|
438
438
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
439
439
|
"""
|
440
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/MarginTradingAPI.html#id23
|
440
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/MarginTradingAPI.html#id23
|
441
441
|
create a trade order
|
442
442
|
:param str symbol: unified symbol of the market to create an order in
|
443
443
|
:param str type: must be 'limit'
|
@@ -465,7 +465,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
465
465
|
|
466
466
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
467
467
|
"""
|
468
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id37
|
468
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id37
|
469
469
|
cancels an open order
|
470
470
|
:param str id: order id
|
471
471
|
:param str symbol: not used by zaif cancelOrder()
|
@@ -523,7 +523,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
523
523
|
|
524
524
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
525
525
|
"""
|
526
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/MarginTradingAPI.html#id28
|
526
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/MarginTradingAPI.html#id28
|
527
527
|
fetch all unfilled currently open orders
|
528
528
|
:param str symbol: unified market symbol
|
529
529
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -545,7 +545,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
545
545
|
|
546
546
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
547
547
|
"""
|
548
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id24
|
548
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id24
|
549
549
|
fetches information on multiple closed orders made by the user
|
550
550
|
:param str symbol: unified market symbol of the market orders were made in
|
551
551
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -573,7 +573,7 @@ class zaif(Exchange, ImplicitAPI):
|
|
573
573
|
|
574
574
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
575
575
|
"""
|
576
|
-
see https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id41
|
576
|
+
:see: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id41
|
577
577
|
make a withdrawal
|
578
578
|
:param str code: unified currency code
|
579
579
|
:param float amount: the amount to withdraw
|