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
ccxt/async_support/coinbase.py
CHANGED
@@ -388,7 +388,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
388
388
|
async def fetch_time(self, params={}):
|
389
389
|
"""
|
390
390
|
fetches the current integer timestamp in milliseconds from the exchange server
|
391
|
-
|
391
|
+
|
392
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-time#http-request
|
393
|
+
|
392
394
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
393
395
|
:param str [params.method]: 'v2PublicGetTime' or 'v3PublicGetBrokerageTime' default is 'v2PublicGetTime'
|
394
396
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
@@ -422,8 +424,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
422
424
|
async def fetch_accounts(self, params={}) -> List[Account]:
|
423
425
|
"""
|
424
426
|
fetch all the accounts associated with a profile
|
425
|
-
|
426
|
-
|
427
|
+
|
428
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getaccounts
|
429
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
430
|
+
|
427
431
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
428
432
|
:param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
429
433
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
@@ -552,7 +556,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
552
556
|
async def fetch_portfolios(self, params={}) -> List[Account]:
|
553
557
|
"""
|
554
558
|
fetch all the portfolios
|
555
|
-
|
559
|
+
|
560
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getportfolios
|
561
|
+
|
556
562
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
557
563
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
558
564
|
"""
|
@@ -642,7 +648,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
642
648
|
async def create_deposit_address(self, code: str, params={}):
|
643
649
|
"""
|
644
650
|
create a currency deposit address
|
645
|
-
|
651
|
+
|
652
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-addresses#create-address
|
653
|
+
|
646
654
|
:param str code: unified currency code of the currency for the deposit address
|
647
655
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
648
656
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -710,9 +718,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
710
718
|
|
711
719
|
async def fetch_my_sells(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
712
720
|
"""
|
713
|
-
|
721
|
+
@ignore
|
714
722
|
fetch sells
|
715
|
-
|
723
|
+
|
724
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-sells#list-sells
|
725
|
+
|
716
726
|
:param str symbol: not used by coinbase fetchMySells()
|
717
727
|
:param int [since]: timestamp in ms of the earliest sell, default is None
|
718
728
|
:param int [limit]: max number of sells to return, default is None
|
@@ -728,9 +738,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
728
738
|
|
729
739
|
async def fetch_my_buys(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
730
740
|
"""
|
731
|
-
|
741
|
+
@ignore
|
732
742
|
fetch buys
|
733
|
-
|
743
|
+
|
744
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-buys#list-buys
|
745
|
+
|
734
746
|
:param str symbol: not used by coinbase fetchMyBuys()
|
735
747
|
:param int [since]: timestamp in ms of the earliest buy, default is None
|
736
748
|
:param int [limit]: max number of buys to return, default is None
|
@@ -754,7 +766,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
754
766
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
755
767
|
"""
|
756
768
|
Fetch all withdrawals made from an account. Won't return crypto withdrawals. Use fetchLedger for those.
|
757
|
-
|
769
|
+
|
770
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-withdrawals#list-withdrawals
|
771
|
+
|
758
772
|
:param str code: unified currency code
|
759
773
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
760
774
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -772,7 +786,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
772
786
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
773
787
|
"""
|
774
788
|
Fetch all fiat deposits made to an account. Won't return crypto deposits or staking rewards. Use fetchLedger for those.
|
775
|
-
|
789
|
+
|
790
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-deposits#list-deposits
|
791
|
+
|
776
792
|
:param str code: unified currency code
|
777
793
|
:param int [since]: the earliest time in ms to fetch deposits for
|
778
794
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -790,7 +806,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
790
806
|
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
791
807
|
"""
|
792
808
|
fetch history of deposits and withdrawals
|
793
|
-
|
809
|
+
|
810
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-transactions
|
811
|
+
|
794
812
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
795
813
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
796
814
|
:param int [limit]: max number of deposit/withdrawals to return, default = 50, Min: 1, Max: 100
|
@@ -1146,9 +1164,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1146
1164
|
|
1147
1165
|
async def fetch_markets(self, params={}) -> List[Market]:
|
1148
1166
|
"""
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1167
|
+
|
1168
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpublicproducts
|
1169
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies#get-fiat-currencies
|
1170
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
1171
|
+
|
1152
1172
|
retrieves data on all markets for coinbase
|
1153
1173
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1154
1174
|
:param boolean [params.usePrivate]: use private endpoint for fetching markets
|
@@ -1702,8 +1722,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1702
1722
|
async def fetch_currencies(self, params={}) -> Currencies:
|
1703
1723
|
"""
|
1704
1724
|
fetches all available currencies on an exchange
|
1705
|
-
|
1706
|
-
|
1725
|
+
|
1726
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies#get-fiat-currencies
|
1727
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
1728
|
+
|
1707
1729
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1708
1730
|
:returns dict: an associative dictionary of currencies
|
1709
1731
|
"""
|
@@ -1790,8 +1812,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1790
1812
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1791
1813
|
"""
|
1792
1814
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1793
|
-
|
1794
|
-
|
1815
|
+
|
1816
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getproducts
|
1817
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
1818
|
+
|
1795
1819
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1796
1820
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1797
1821
|
:param boolean [params.usePrivate]: use private endpoint for fetching tickers
|
@@ -1902,10 +1926,12 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1902
1926
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1903
1927
|
"""
|
1904
1928
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1929
|
+
|
1930
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getmarkettrades
|
1931
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-spot-price
|
1932
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-buy-price
|
1933
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-sell-price
|
1934
|
+
|
1909
1935
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1910
1936
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1911
1937
|
:param boolean [params.usePrivate]: whether to use the private endpoint for fetching the ticker
|
@@ -2149,9 +2175,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2149
2175
|
async def fetch_balance(self, params={}) -> Balances:
|
2150
2176
|
"""
|
2151
2177
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2152
|
-
|
2153
|
-
|
2154
|
-
|
2178
|
+
|
2179
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getaccounts
|
2180
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
2181
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfcmbalancesummary
|
2182
|
+
|
2155
2183
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2156
2184
|
:param boolean [params.v3]: default False, set True to use v3 api endpoint
|
2157
2185
|
:param dict [params.type]: "spot"(default) or "swap" or "future"
|
@@ -2250,7 +2278,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2250
2278
|
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
2251
2279
|
"""
|
2252
2280
|
Fetch the history of changes, i.e. actions done by the user or operations that altered the balance. Will return staking rewards, and crypto deposits or withdrawals.
|
2253
|
-
|
2281
|
+
|
2282
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-transactions#list-transactions
|
2283
|
+
|
2254
2284
|
:param str [code]: unified currency code, default is None
|
2255
2285
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2256
2286
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -2669,7 +2699,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2669
2699
|
async def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
2670
2700
|
"""
|
2671
2701
|
create a market buy order by providing the symbol and cost
|
2672
|
-
|
2702
|
+
|
2703
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_postorder
|
2704
|
+
|
2673
2705
|
:param str symbol: unified symbol of the market to create an order in
|
2674
2706
|
:param float cost: how much you want to trade in units of the quote currency
|
2675
2707
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2685,7 +2717,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2685
2717
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
2686
2718
|
"""
|
2687
2719
|
create a trade order
|
2688
|
-
|
2720
|
+
|
2721
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_postorder
|
2722
|
+
|
2689
2723
|
:param str symbol: unified symbol of the market to create an order in
|
2690
2724
|
:param str type: 'market' or 'limit'
|
2691
2725
|
:param str side: 'buy' or 'sell'
|
@@ -3067,7 +3101,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3067
3101
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
3068
3102
|
"""
|
3069
3103
|
cancels an open order
|
3070
|
-
|
3104
|
+
|
3105
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_cancelorders
|
3106
|
+
|
3071
3107
|
:param str id: order id
|
3072
3108
|
:param str symbol: not used by coinbase cancelOrder()
|
3073
3109
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3080,7 +3116,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3080
3116
|
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
3081
3117
|
"""
|
3082
3118
|
cancel multiple orders
|
3083
|
-
|
3119
|
+
|
3120
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_cancelorders
|
3121
|
+
|
3084
3122
|
:param str[] ids: order ids
|
3085
3123
|
:param str symbol: not used by coinbase cancelOrders()
|
3086
3124
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3115,7 +3153,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3115
3153
|
async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
3116
3154
|
"""
|
3117
3155
|
edit a trade order
|
3118
|
-
|
3156
|
+
|
3157
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_editorder
|
3158
|
+
|
3119
3159
|
:param str id: cancel order id
|
3120
3160
|
:param str symbol: unified symbol of the market to create an order in
|
3121
3161
|
:param str type: 'market' or 'limit'
|
@@ -3156,7 +3196,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3156
3196
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
3157
3197
|
"""
|
3158
3198
|
fetches information on an order made by the user
|
3159
|
-
|
3199
|
+
|
3200
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorder
|
3201
|
+
|
3160
3202
|
:param str id: the order id
|
3161
3203
|
:param str symbol: unified market symbol that the order was made in
|
3162
3204
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3215,7 +3257,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3215
3257
|
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = 100, params={}) -> List[Order]:
|
3216
3258
|
"""
|
3217
3259
|
fetches information on multiple orders made by the user
|
3218
|
-
|
3260
|
+
|
3261
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3262
|
+
|
3219
3263
|
:param str symbol: unified market symbol that the orders were made in
|
3220
3264
|
:param int [since]: the earliest time in ms to fetch orders
|
3221
3265
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -3367,7 +3411,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3367
3411
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3368
3412
|
"""
|
3369
3413
|
fetches information on all currently open orders
|
3370
|
-
|
3414
|
+
|
3415
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3416
|
+
|
3371
3417
|
:param str symbol: unified market symbol of the orders
|
3372
3418
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3373
3419
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -3386,7 +3432,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3386
3432
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3387
3433
|
"""
|
3388
3434
|
fetches information on multiple closed orders made by the user
|
3389
|
-
|
3435
|
+
|
3436
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3437
|
+
|
3390
3438
|
:param str symbol: unified market symbol of the orders
|
3391
3439
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3392
3440
|
:param int [limit]: the maximum number of closed order structures to retrieve
|
@@ -3405,7 +3453,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3405
3453
|
async def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
3406
3454
|
"""
|
3407
3455
|
fetches information on multiple canceled orders made by the user
|
3408
|
-
|
3456
|
+
|
3457
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3458
|
+
|
3409
3459
|
:param str symbol: unified market symbol of the orders
|
3410
3460
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3411
3461
|
:param int [limit]: the maximum number of canceled order structures to retrieve
|
@@ -3417,7 +3467,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3417
3467
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
3418
3468
|
"""
|
3419
3469
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
3420
|
-
|
3470
|
+
|
3471
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpubliccandles
|
3472
|
+
|
3421
3473
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
3422
3474
|
:param str timeframe: the length of time each candle represents
|
3423
3475
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -3505,7 +3557,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3505
3557
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
3506
3558
|
"""
|
3507
3559
|
get the list of most recent trades for a particular symbol
|
3508
|
-
|
3560
|
+
|
3561
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpublicmarkettrades
|
3562
|
+
|
3509
3563
|
:param str symbol: unified market symbol of the trades
|
3510
3564
|
:param int [since]: not used by coinbase fetchTrades
|
3511
3565
|
:param int [limit]: the maximum number of trade structures to fetch
|
@@ -3557,7 +3611,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3557
3611
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
3558
3612
|
"""
|
3559
3613
|
fetch all trades made by the user
|
3560
|
-
|
3614
|
+
|
3615
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfills
|
3616
|
+
|
3561
3617
|
:param str symbol: unified market symbol of the trades
|
3562
3618
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3563
3619
|
:param int [limit]: the maximum number of trade structures to fetch
|
@@ -3620,7 +3676,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3620
3676
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
3621
3677
|
"""
|
3622
3678
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
3623
|
-
|
3679
|
+
|
3680
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpublicproductbook
|
3681
|
+
|
3624
3682
|
:param str symbol: unified symbol of the market to fetch the order book for
|
3625
3683
|
:param int [limit]: the maximum amount of order book entries to return
|
3626
3684
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3669,7 +3727,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3669
3727
|
async def fetch_bids_asks(self, symbols: Strings = None, params={}):
|
3670
3728
|
"""
|
3671
3729
|
fetches the bid and ask price and volume for multiple markets
|
3672
|
-
|
3730
|
+
|
3731
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getbestbidask
|
3732
|
+
|
3673
3733
|
:param str[] [symbols]: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
3674
3734
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3675
3735
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -3708,7 +3768,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3708
3768
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
3709
3769
|
"""
|
3710
3770
|
make a withdrawal
|
3711
|
-
|
3771
|
+
|
3772
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-transactions#send-money
|
3773
|
+
|
3712
3774
|
:param str code: unified currency code
|
3713
3775
|
:param float amount: the amount to withdraw
|
3714
3776
|
:param str address: the address to withdraw to
|
@@ -3796,7 +3858,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3796
3858
|
async def fetch_deposit_addresses_by_network(self, code: str, params={}) -> List[DepositAddress]:
|
3797
3859
|
"""
|
3798
3860
|
fetch the deposit address for a currency associated with self account
|
3799
|
-
|
3861
|
+
|
3862
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
3863
|
+
|
3800
3864
|
:param str code: unified currency code
|
3801
3865
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3802
3866
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -3928,7 +3992,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3928
3992
|
async def deposit(self, code: str, amount: float, id: str, params={}):
|
3929
3993
|
"""
|
3930
3994
|
make a deposit
|
3931
|
-
|
3995
|
+
|
3996
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-deposits#deposit-funds
|
3997
|
+
|
3932
3998
|
:param str code: unified currency code
|
3933
3999
|
:param float amount: the amount to deposit
|
3934
4000
|
:param str id: the payment method id to be used for the deposit, can be retrieved from v2PrivateGetPaymentMethods
|
@@ -3994,7 +4060,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3994
4060
|
async def fetch_deposit(self, id: str, code: Str = None, params={}):
|
3995
4061
|
"""
|
3996
4062
|
fetch information on a deposit, fiat only, for crypto transactions use fetchLedger
|
3997
|
-
|
4063
|
+
|
4064
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-deposits#show-deposit
|
4065
|
+
|
3998
4066
|
:param str id: deposit id
|
3999
4067
|
:param str [code]: unified currency code
|
4000
4068
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4057,7 +4125,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4057
4125
|
async def fetch_convert_quote(self, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
|
4058
4126
|
"""
|
4059
4127
|
fetch a quote for converting from one currency to another
|
4060
|
-
|
4128
|
+
|
4129
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_createconvertquote
|
4130
|
+
|
4061
4131
|
:param str fromCode: the currency that you want to sell and convert from
|
4062
4132
|
:param str toCode: the currency that you want to buy and convert into
|
4063
4133
|
:param float [amount]: how much you want to trade in units of the from currency
|
@@ -4080,7 +4150,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4080
4150
|
async def create_convert_trade(self, id: str, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
|
4081
4151
|
"""
|
4082
4152
|
convert from one currency to another
|
4083
|
-
|
4153
|
+
|
4154
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_commitconverttrade
|
4155
|
+
|
4084
4156
|
:param str id: the id of the trade that you want to make
|
4085
4157
|
:param str fromCode: the currency that you want to sell and convert from
|
4086
4158
|
:param str toCode: the currency that you want to buy and convert into
|
@@ -4101,7 +4173,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4101
4173
|
async def fetch_convert_trade(self, id: str, code: Str = None, params={}) -> Conversion:
|
4102
4174
|
"""
|
4103
4175
|
fetch the data for a conversion trade
|
4104
|
-
|
4176
|
+
|
4177
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getconverttrade
|
4178
|
+
|
4105
4179
|
:param str id: the id of the trade that you want to commit
|
4106
4180
|
:param str code: the unified currency code that was converted from
|
4107
4181
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4148,11 +4222,13 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4148
4222
|
async def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
|
4149
4223
|
"""
|
4150
4224
|
*futures only* closes open positions for a market
|
4151
|
-
|
4225
|
+
|
4226
|
+
https://coinbase-api.github.io/docs/#/en-us/swapV2/trade-api.html#One-Click%20Close%20All%20Positions
|
4227
|
+
|
4152
4228
|
:param str symbol: Unified CCXT market symbol
|
4153
4229
|
:param str [side]: not used by coinbase
|
4154
4230
|
:param dict [params]: extra parameters specific to the coinbase api endpoint
|
4155
|
-
|
4231
|
+
@param {str} params.clientOrderId *mandatory* the client order id of the position to close
|
4156
4232
|
:param float [params.size]: the size of the position to close, optional
|
4157
4233
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
4158
4234
|
"""
|
@@ -4175,8 +4251,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4175
4251
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
4176
4252
|
"""
|
4177
4253
|
fetch all open positions
|
4178
|
-
|
4179
|
-
|
4254
|
+
|
4255
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfcmpositions
|
4256
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getintxpositions
|
4257
|
+
|
4180
4258
|
:param str[] [symbols]: list of unified market symbols
|
4181
4259
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4182
4260
|
:param str [params.portfolio]: the portfolio UUID to fetch positions for
|
@@ -4207,8 +4285,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4207
4285
|
async def fetch_position(self, symbol: str, params={}):
|
4208
4286
|
"""
|
4209
4287
|
fetch data on a single open contract trade position
|
4210
|
-
|
4211
|
-
|
4288
|
+
|
4289
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getintxposition
|
4290
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfcmposition
|
4291
|
+
|
4212
4292
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
4213
4293
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4214
4294
|
:param str [params.product_id]: *futures only* the product id of the position to fetch, required for futures markets only
|
@@ -4376,7 +4456,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4376
4456
|
|
4377
4457
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
4378
4458
|
"""
|
4379
|
-
|
4459
|
+
|
4460
|
+
https://docs.cdp.coinbase.com/advanced-trade/reference/retailbrokerageapi_gettransactionsummary/
|
4461
|
+
|
4380
4462
|
fetch the trading fees for multiple markets
|
4381
4463
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4382
4464
|
:param str [params.type]: 'spot' or 'swap'
|