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/coinbasepro.py
CHANGED
@@ -498,7 +498,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
498
498
|
|
499
499
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
500
500
|
"""
|
501
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductbook
|
501
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductbook
|
502
502
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
503
503
|
:param str symbol: unified symbol of the market to fetch the order book for
|
504
504
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -657,7 +657,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
657
657
|
|
658
658
|
def fetch_ticker(self, symbol: str, params={}):
|
659
659
|
"""
|
660
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductticker
|
660
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductticker
|
661
661
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
662
662
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
663
663
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
@@ -766,7 +766,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
766
766
|
|
767
767
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
768
768
|
"""
|
769
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfills
|
769
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfills
|
770
770
|
fetch all trades made by the user
|
771
771
|
:param str symbol: unified market symbol
|
772
772
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -799,7 +799,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
799
799
|
|
800
800
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
801
801
|
"""
|
802
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducttrades
|
802
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducttrades
|
803
803
|
get the list of most recent trades for a particular symbol
|
804
804
|
:param str symbol: unified symbol of the market to fetch trades for
|
805
805
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -880,7 +880,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
880
880
|
|
881
881
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
882
882
|
"""
|
883
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductcandles
|
883
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductcandles
|
884
884
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
885
885
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
886
886
|
:param str timeframe: the length of time each candle represents
|
@@ -1033,7 +1033,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1033
1033
|
|
1034
1034
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1035
1035
|
"""
|
1036
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
|
1036
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
|
1037
1037
|
fetches information on an order made by the user
|
1038
1038
|
:param str symbol: not used by coinbasepro fetchOrder
|
1039
1039
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
@@ -1075,7 +1075,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1075
1075
|
|
1076
1076
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1077
1077
|
"""
|
1078
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1078
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1079
1079
|
fetches information on multiple orders made by the user
|
1080
1080
|
:param str symbol: unified market symbol of the market orders were made in
|
1081
1081
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -1091,7 +1091,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1091
1091
|
|
1092
1092
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1093
1093
|
"""
|
1094
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1094
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1095
1095
|
fetch all unfilled currently open orders
|
1096
1096
|
:param str symbol: unified market symbol
|
1097
1097
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -1124,7 +1124,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1124
1124
|
|
1125
1125
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1126
1126
|
"""
|
1127
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1127
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1128
1128
|
fetches information on multiple closed orders made by the user
|
1129
1129
|
:param str symbol: unified market symbol of the market orders were made in
|
1130
1130
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -1140,7 +1140,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1140
1140
|
|
1141
1141
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1142
1142
|
"""
|
1143
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postorders
|
1143
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postorders
|
1144
1144
|
create a trade order
|
1145
1145
|
:param str symbol: unified symbol of the market to create an order in
|
1146
1146
|
:param str type: 'market' or 'limit'
|
@@ -1223,7 +1223,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1223
1223
|
|
1224
1224
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1225
1225
|
"""
|
1226
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorder
|
1226
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorder
|
1227
1227
|
cancels an open order
|
1228
1228
|
:param str id: order id
|
1229
1229
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1251,7 +1251,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1251
1251
|
|
1252
1252
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1253
1253
|
"""
|
1254
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorders
|
1254
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorders
|
1255
1255
|
cancel all open orders
|
1256
1256
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1257
1257
|
:param dict [params]: extra parameters specific to the coinbasepro api endpoint
|
@@ -1418,7 +1418,7 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1418
1418
|
|
1419
1419
|
def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1420
1420
|
"""
|
1421
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccountledger
|
1421
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccountledger
|
1422
1422
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
1423
1423
|
:param str code: unified currency code, default is None
|
1424
1424
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
@@ -1462,8 +1462,8 @@ class coinbasepro(Exchange, ImplicitAPI):
|
|
1462
1462
|
def fetch_deposits_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1463
1463
|
"""
|
1464
1464
|
fetch history of deposits and withdrawals
|
1465
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
1466
|
-
see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
1465
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
1466
|
+
:see: https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
1467
1467
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
1468
1468
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1469
1469
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
ccxt/coinex.py
CHANGED
@@ -780,8 +780,8 @@ class coinex(Exchange, ImplicitAPI):
|
|
780
780
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
781
781
|
"""
|
782
782
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
783
|
-
see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot001_market008_all_market_ticker
|
784
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http009_market_ticker_all
|
783
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot001_market008_all_market_ticker
|
784
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http009_market_ticker_all
|
785
785
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
786
786
|
:param dict [params]: extra parameters specific to the coinex api endpoint
|
787
787
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1448,10 +1448,10 @@ class coinex(Exchange, ImplicitAPI):
|
|
1448
1448
|
def fetch_balance(self, params={}):
|
1449
1449
|
"""
|
1450
1450
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1451
|
-
see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account001_account_info # spot
|
1452
|
-
see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account004_investment_balance # financial
|
1453
|
-
see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account006_margin_account # margin
|
1454
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http016_asset_query # swap
|
1451
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account001_account_info # spot
|
1452
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account004_investment_balance # financial
|
1453
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account006_margin_account # margin
|
1454
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http016_asset_query # swap
|
1455
1455
|
:param dict [params]: extra parameters specific to the coinex api endpoint
|
1456
1456
|
:param str [params.type]: 'margin', 'swap', 'financial', or 'spot'
|
1457
1457
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
@@ -1767,12 +1767,12 @@ class coinex(Exchange, ImplicitAPI):
|
|
1767
1767
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1768
1768
|
"""
|
1769
1769
|
create a trade order
|
1770
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http017_put_limit
|
1771
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http018_put_market
|
1772
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http019_put_limit_stop
|
1773
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http020_put_market_stop
|
1774
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http031_market_close
|
1775
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http030_limit_close
|
1770
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http017_put_limit
|
1771
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http018_put_market
|
1772
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http019_put_limit_stop
|
1773
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http020_put_market_stop
|
1774
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http031_market_close
|
1775
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http030_limit_close
|
1776
1776
|
:param str symbol: unified symbol of the market to create an order in
|
1777
1777
|
:param str type: 'market' or 'limit'
|
1778
1778
|
:param str side: 'buy' or 'sell'
|
@@ -1989,7 +1989,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
1989
1989
|
def edit_order(self, id, symbol, type, side, amount=None, price=None, params={}):
|
1990
1990
|
"""
|
1991
1991
|
edit a trade order
|
1992
|
-
see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade022_modify_order
|
1992
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade022_modify_order
|
1993
1993
|
:param str id: order id
|
1994
1994
|
:param str symbol: unified symbol of the market to create an order in
|
1995
1995
|
:param str type: 'market' or 'limit'
|
@@ -3122,7 +3122,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
3122
3122
|
|
3123
3123
|
def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
3124
3124
|
"""
|
3125
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http014_adjust_leverage
|
3125
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http014_adjust_leverage
|
3126
3126
|
set the level of leverage for a market
|
3127
3127
|
:param float leverage: the rate of leverage
|
3128
3128
|
:param str symbol: unified market symbol
|
@@ -3573,7 +3573,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
3573
3573
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
3574
3574
|
"""
|
3575
3575
|
make a withdrawal
|
3576
|
-
see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account015_submit_withdraw
|
3576
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account015_submit_withdraw
|
3577
3577
|
:param str code: unified currency code
|
3578
3578
|
:param float amount: the amount to withdraw
|
3579
3579
|
:param str address: the address to withdraw to
|
@@ -3635,7 +3635,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
3635
3635
|
|
3636
3636
|
def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
3637
3637
|
"""
|
3638
|
-
see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http038_funding_history
|
3638
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http038_funding_history
|
3639
3639
|
fetches historical funding rate prices
|
3640
3640
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
3641
3641
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
@@ -4315,7 +4315,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
4315
4315
|
def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
4316
4316
|
"""
|
4317
4317
|
create a loan to borrow margin
|
4318
|
-
see https://github.com/coinexcom/coinex_exchange_api/wiki/086margin_loan
|
4318
|
+
:see: https://github.com/coinexcom/coinex_exchange_api/wiki/086margin_loan
|
4319
4319
|
:param str code: unified currency code of the currency to borrow
|
4320
4320
|
:param float amount: the amount to borrow
|
4321
4321
|
:param str symbol: unified market symbol, required for coinex
|
@@ -4352,7 +4352,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
4352
4352
|
def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
4353
4353
|
"""
|
4354
4354
|
repay borrowed margin and interest
|
4355
|
-
see https://github.com/coinexcom/coinex_exchange_api/wiki/087margin_flat
|
4355
|
+
:see: https://github.com/coinexcom/coinex_exchange_api/wiki/087margin_flat
|
4356
4356
|
:param str code: unified currency code of the currency to repay
|
4357
4357
|
:param float amount: the amount to repay
|
4358
4358
|
:param str symbol: unified market symbol, required for coinex
|
@@ -4416,7 +4416,7 @@ class coinex(Exchange, ImplicitAPI):
|
|
4416
4416
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
4417
4417
|
"""
|
4418
4418
|
fetch deposit and withdraw fees
|
4419
|
-
see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot001_market010_asset_config
|
4419
|
+
:see: https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot001_market010_asset_config
|
4420
4420
|
:param str[]|None codes: list of unified currency codes
|
4421
4421
|
:param dict [params]: extra parameters specific to the coinex api endpoint
|
4422
4422
|
:returns dict[]: a list of `fees structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
ccxt/coinone.py
CHANGED
@@ -478,8 +478,8 @@ class coinone(Exchange, ImplicitAPI):
|
|
478
478
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
479
479
|
"""
|
480
480
|
create a trade order
|
481
|
-
see https://doc.coinone.co.kr/#tag/Order-V2/operation/v2_order_limit_buy
|
482
|
-
see https://doc.coinone.co.kr/#tag/Order-V2/operation/v2_order_limit_sell
|
481
|
+
:see: https://doc.coinone.co.kr/#tag/Order-V2/operation/v2_order_limit_buy
|
482
|
+
:see: https://doc.coinone.co.kr/#tag/Order-V2/operation/v2_order_limit_sell
|
483
483
|
:param str symbol: unified symbol of the market to create an order in
|
484
484
|
:param str type: must be 'limit'
|
485
485
|
:param str side: 'buy' or 'sell'
|
ccxt/coinsph.py
CHANGED
@@ -1448,7 +1448,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1448
1448
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
1449
1449
|
"""
|
1450
1450
|
make a withdrawal to coins_ph account
|
1451
|
-
see https://coins-docs.github.io/rest-api/#withdrawuser_data
|
1451
|
+
:see: https://coins-docs.github.io/rest-api/#withdrawuser_data
|
1452
1452
|
:param str code: unified currency code
|
1453
1453
|
:param float amount: the amount to withdraw
|
1454
1454
|
:param str address: not used by coinsph withdraw()
|
@@ -1506,7 +1506,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1506
1506
|
def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1507
1507
|
"""
|
1508
1508
|
fetch all deposits made to an account
|
1509
|
-
see https://coins-docs.github.io/rest-api/#deposit-history-user_data
|
1509
|
+
:see: https://coins-docs.github.io/rest-api/#deposit-history-user_data
|
1510
1510
|
:param str code: unified currency code
|
1511
1511
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1512
1512
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1558,7 +1558,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1558
1558
|
def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1559
1559
|
"""
|
1560
1560
|
fetch all withdrawals made from an account
|
1561
|
-
see https://coins-docs.github.io/rest-api/#withdraw-history-user_data
|
1561
|
+
:see: https://coins-docs.github.io/rest-api/#withdraw-history-user_data
|
1562
1562
|
:param str code: unified currency code
|
1563
1563
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1564
1564
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1713,7 +1713,7 @@ class coinsph(Exchange, ImplicitAPI):
|
|
1713
1713
|
def fetch_deposit_address(self, code: str, params={}):
|
1714
1714
|
"""
|
1715
1715
|
fetch the deposit address for a currency associated with self account
|
1716
|
-
see https://coins-docs.github.io/rest-api/#deposit-address-user_data
|
1716
|
+
:see: https://coins-docs.github.io/rest-api/#deposit-address-user_data
|
1717
1717
|
:param str code: unified currency code
|
1718
1718
|
:param dict [params]: extra parameters specific to the bitget api endpoint
|
1719
1719
|
:param str [params.network]: network for fetch deposit address
|
ccxt/coinspot.py
CHANGED
@@ -276,7 +276,7 @@ class coinspot(Exchange, ImplicitAPI):
|
|
276
276
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
277
277
|
"""
|
278
278
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
279
|
-
see https://www.coinspot.com.au/api#latestprices
|
279
|
+
:see: https://www.coinspot.com.au/api#latestprices
|
280
280
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
281
281
|
:param dict [params]: extra parameters specific to the coinspot api endpoint
|
282
282
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -461,7 +461,7 @@ class coinspot(Exchange, ImplicitAPI):
|
|
461
461
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
462
462
|
"""
|
463
463
|
create a trade order
|
464
|
-
see https://www.coinspot.com.au/api#placebuyorder
|
464
|
+
:see: https://www.coinspot.com.au/api#placebuyorder
|
465
465
|
:param str symbol: unified symbol of the market to create an order in
|
466
466
|
:param str type: must be 'limit'
|
467
467
|
:param str side: 'buy' or 'sell'
|
ccxt/cryptocom.py
CHANGED
@@ -396,7 +396,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
396
396
|
|
397
397
|
def fetch_markets(self, params={}):
|
398
398
|
"""
|
399
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-instruments
|
399
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-instruments
|
400
400
|
retrieves data on all markets for cryptocom
|
401
401
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
402
402
|
:returns dict[]: an array of objects representing market data
|
@@ -583,8 +583,8 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
583
583
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
584
584
|
"""
|
585
585
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
586
|
-
see https://exchange-docs.crypto.com/spot/index.html#public-get-ticker
|
587
|
-
see https://exchange-docs.crypto.com/derivatives/index.html#public-get-tickers
|
586
|
+
:see: https://exchange-docs.crypto.com/spot/index.html#public-get-ticker
|
587
|
+
:see: https://exchange-docs.crypto.com/derivatives/index.html#public-get-tickers
|
588
588
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
589
589
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
590
590
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -634,7 +634,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
634
634
|
|
635
635
|
def fetch_ticker(self, symbol: str, params={}):
|
636
636
|
"""
|
637
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-tickers
|
637
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-tickers
|
638
638
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
639
639
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
640
640
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
@@ -648,7 +648,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
648
648
|
def fetch_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
649
649
|
"""
|
650
650
|
fetches information on multiple orders made by the user
|
651
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-history
|
651
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-history
|
652
652
|
:param str symbol: unified market symbol of the market the orders were made in
|
653
653
|
:param int [since]: the earliest time in ms to fetch orders for, max date range is one day
|
654
654
|
:param int [limit]: the maximum number of order structures to retrieve, default 100 max 100
|
@@ -722,7 +722,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
722
722
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
723
723
|
"""
|
724
724
|
get a list of the most recent trades for a particular symbol
|
725
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-trades
|
725
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-trades
|
726
726
|
:param str symbol: unified symbol of the market to fetch trades for
|
727
727
|
:param int [since]: timestamp in ms of the earliest trade to fetch, maximum date range is one day
|
728
728
|
:param int [limit]: the maximum number of trades to fetch
|
@@ -775,7 +775,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
775
775
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
776
776
|
"""
|
777
777
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
778
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-candlestick
|
778
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-candlestick
|
779
779
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
780
780
|
:param str timeframe: the length of time each candle represents
|
781
781
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -832,7 +832,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
832
832
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
833
833
|
"""
|
834
834
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
835
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-book
|
835
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-book
|
836
836
|
:param str symbol: unified symbol of the market to fetch the order book for
|
837
837
|
:param int [limit]: the number of order book entries to return, max 50
|
838
838
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
@@ -888,7 +888,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
888
888
|
def fetch_balance(self, params={}):
|
889
889
|
"""
|
890
890
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
891
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-user-balance
|
891
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-user-balance
|
892
892
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
893
893
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
894
894
|
"""
|
@@ -942,7 +942,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
942
942
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
943
943
|
"""
|
944
944
|
fetches information on an order made by the user
|
945
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-detail
|
945
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-detail
|
946
946
|
:param str symbol: unified symbol of the market the order was made in
|
947
947
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
948
948
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1076,7 +1076,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1076
1076
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
1077
1077
|
"""
|
1078
1078
|
create a trade order
|
1079
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order
|
1079
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order
|
1080
1080
|
:param str symbol: unified symbol of the market to create an order in
|
1081
1081
|
:param str type: 'market', 'limit', 'stop_loss', 'stop_limit', 'take_profit', 'take_profit_limit'
|
1082
1082
|
:param str side: 'buy' or 'sell'
|
@@ -1111,7 +1111,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1111
1111
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1112
1112
|
"""
|
1113
1113
|
cancel all open orders
|
1114
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
1114
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
1115
1115
|
:param str symbol: unified market symbol of the orders to cancel
|
1116
1116
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
1117
1117
|
:returns dict} Returns exchange raw message{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure:
|
@@ -1127,7 +1127,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1127
1127
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1128
1128
|
"""
|
1129
1129
|
cancels an open order
|
1130
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
|
1130
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order
|
1131
1131
|
:param str id: the order id of the order to cancel
|
1132
1132
|
:param str [symbol]: unified symbol of the market the order was made in
|
1133
1133
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
@@ -1159,7 +1159,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1159
1159
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1160
1160
|
"""
|
1161
1161
|
fetch all unfilled currently open orders
|
1162
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-open-orders
|
1162
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-open-orders
|
1163
1163
|
:param str symbol: unified market symbol
|
1164
1164
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1165
1165
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -1217,7 +1217,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1217
1217
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1218
1218
|
"""
|
1219
1219
|
fetch all trades made by the user
|
1220
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-trades
|
1220
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-trades
|
1221
1221
|
:param str symbol: unified market symbol
|
1222
1222
|
:param int [since]: the earliest time in ms to fetch trades for, maximum date range is one day
|
1223
1223
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -1293,7 +1293,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1293
1293
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
1294
1294
|
"""
|
1295
1295
|
make a withdrawal
|
1296
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-withdrawal
|
1296
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-withdrawal
|
1297
1297
|
:param str code: unified currency code
|
1298
1298
|
:param float amount: the amount to withdraw
|
1299
1299
|
:param str address: the address to withdraw to
|
@@ -1339,7 +1339,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1339
1339
|
def fetch_deposit_addresses_by_network(self, code: str, params={}):
|
1340
1340
|
"""
|
1341
1341
|
fetch a dictionary of addresses for a currency, indexed by network
|
1342
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address
|
1342
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address
|
1343
1343
|
:param str code: unified currency code of the currency for the deposit address
|
1344
1344
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
1345
1345
|
:returns dict: a dictionary of `address structures <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>` indexed by the network
|
@@ -1424,7 +1424,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1424
1424
|
def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1425
1425
|
"""
|
1426
1426
|
fetch all deposits made to an account
|
1427
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-history
|
1427
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-history
|
1428
1428
|
:param str code: unified currency code
|
1429
1429
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1430
1430
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1477,7 +1477,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
1477
1477
|
def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1478
1478
|
"""
|
1479
1479
|
fetch all withdrawals made from an account
|
1480
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-withdrawal-history
|
1480
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-withdrawal-history
|
1481
1481
|
:param str code: unified currency code
|
1482
1482
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1483
1483
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2034,7 +2034,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2034
2034
|
def repay_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
2035
2035
|
"""
|
2036
2036
|
repay borrowed margin and interest
|
2037
|
-
see https://exchange-docs.crypto.com/spot/index.html#private-margin-repay
|
2037
|
+
:see: https://exchange-docs.crypto.com/spot/index.html#private-margin-repay
|
2038
2038
|
:param str code: unified currency code of the currency to repay
|
2039
2039
|
:param float amount: the amount to repay
|
2040
2040
|
:param str symbol: unified market symbol, not used by cryptocom.repayMargin()
|
@@ -2066,7 +2066,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2066
2066
|
def borrow_margin(self, code: str, amount, symbol: Optional[str] = None, params={}):
|
2067
2067
|
"""
|
2068
2068
|
create a loan to borrow margin
|
2069
|
-
see https://exchange-docs.crypto.com/spot/index.html#private-margin-borrow
|
2069
|
+
:see: https://exchange-docs.crypto.com/spot/index.html#private-margin-borrow
|
2070
2070
|
:param str code: unified currency code of the currency to borrow
|
2071
2071
|
:param float amount: the amount to borrow
|
2072
2072
|
:param str symbol: unified market symbol, not used by cryptocom.repayMargin()
|
@@ -2242,7 +2242,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2242
2242
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
2243
2243
|
"""
|
2244
2244
|
fetch deposit and withdraw fees
|
2245
|
-
see https://exchange-docs.crypto.com/spot/index.html#private-get-currency-networks
|
2245
|
+
:see: https://exchange-docs.crypto.com/spot/index.html#private-get-currency-networks
|
2246
2246
|
:param str[]|None codes: list of unified currency codes
|
2247
2247
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
2248
2248
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -2256,7 +2256,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2256
2256
|
def fetch_ledger(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2257
2257
|
"""
|
2258
2258
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
2259
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-transactions
|
2259
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-transactions
|
2260
2260
|
:param str code: unified currency code
|
2261
2261
|
:param int [since]: timestamp in ms of the earliest ledger entry
|
2262
2262
|
:param int [limit]: max number of ledger entries to return
|
@@ -2391,7 +2391,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2391
2391
|
def fetch_accounts(self, params={}):
|
2392
2392
|
"""
|
2393
2393
|
fetch all the accounts associated with a profile
|
2394
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-accounts
|
2394
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-accounts
|
2395
2395
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
2396
2396
|
:returns dict: a dictionary of `account structures <https://github.com/ccxt/ccxt/wiki/Manual#account-structure>` indexed by the account type
|
2397
2397
|
"""
|
@@ -2470,7 +2470,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2470
2470
|
def fetch_settlement_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2471
2471
|
"""
|
2472
2472
|
fetches historical settlement records
|
2473
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-expired-settlement-price
|
2473
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-expired-settlement-price
|
2474
2474
|
:param str symbol: unified market symbol of the settlement history
|
2475
2475
|
:param int [since]: timestamp in ms
|
2476
2476
|
:param int [limit]: number of records
|
@@ -2552,7 +2552,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2552
2552
|
def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2553
2553
|
"""
|
2554
2554
|
fetches historical funding rates
|
2555
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-valuations
|
2555
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-valuations
|
2556
2556
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
2557
2557
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
2558
2558
|
:param int [limit]: the maximum amount of [funding rate structures] to fetch
|
@@ -2619,7 +2619,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2619
2619
|
def fetch_position(self, symbol: str, params={}):
|
2620
2620
|
"""
|
2621
2621
|
fetch data on a single open contract trade position
|
2622
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
2622
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
2623
2623
|
:param str symbol: unified market symbol of the market the position is held in
|
2624
2624
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
2625
2625
|
:returns dict: a `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
@@ -2659,7 +2659,7 @@ class cryptocom(Exchange, ImplicitAPI):
|
|
2659
2659
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
2660
2660
|
"""
|
2661
2661
|
fetch all open positions
|
2662
|
-
see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
2662
|
+
:see: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
2663
2663
|
:param str[]|None symbols: list of unified market symbols
|
2664
2664
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
2665
2665
|
:returns dict[]: a list of `position structure <https://github.com/ccxt/ccxt/wiki/Manual#position-structure>`
|
ccxt/currencycom.py
CHANGED
@@ -1309,7 +1309,7 @@ class currencycom(Exchange, ImplicitAPI):
|
|
1309
1309
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1310
1310
|
"""
|
1311
1311
|
fetches information on an order made by the user
|
1312
|
-
see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getOrderUsingGET
|
1312
|
+
:see: https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getOrderUsingGET
|
1313
1313
|
:param str symbol: unified symbol of the market the order was made in
|
1314
1314
|
:param dict [params]: extra parameters specific to the currencycom api endpoint
|
1315
1315
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|