ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/base/ws/aiohttp_client.py +25 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +555 -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 +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- 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 +145 -79
- 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 -22
- 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 +131 -50
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +313 -157
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +157 -74
- 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 +94 -38
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +54 -17
- ccxt/async_support/kraken.py +108 -36
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +214 -110
- ccxt/async_support/kucoinfutures.py +209 -64
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +89 -38
- 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 +108 -56
- 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 +32 -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 +119 -50
- 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 +47 -35
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- 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 -22
- 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 +131 -50
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +313 -157
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +157 -74
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +94 -38
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +54 -17
- ccxt/kraken.py +108 -36
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +214 -110
- ccxt/kucoinfutures.py +209 -64
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +89 -38
- 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 +108 -56
- 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 +204 -123
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +76 -37
- 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 +97 -62
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +36 -12
- 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 +71 -27
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +65 -31
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +27 -9
- 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 +36 -19
- 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/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 +32 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +119 -50
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/coinbase.py
CHANGED
@@ -387,7 +387,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
387
387
|
def fetch_time(self, params={}):
|
388
388
|
"""
|
389
389
|
fetches the current integer timestamp in milliseconds from the exchange server
|
390
|
-
|
390
|
+
|
391
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-time#http-request
|
392
|
+
|
391
393
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
392
394
|
:param str [params.method]: 'v2PublicGetTime' or 'v3PublicGetBrokerageTime' default is 'v2PublicGetTime'
|
393
395
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
@@ -421,8 +423,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
421
423
|
def fetch_accounts(self, params={}) -> List[Account]:
|
422
424
|
"""
|
423
425
|
fetch all the accounts associated with a profile
|
424
|
-
|
425
|
-
|
426
|
+
|
427
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getaccounts
|
428
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
429
|
+
|
426
430
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
427
431
|
: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)
|
428
432
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
@@ -551,7 +555,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
551
555
|
def fetch_portfolios(self, params={}) -> List[Account]:
|
552
556
|
"""
|
553
557
|
fetch all the portfolios
|
554
|
-
|
558
|
+
|
559
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getportfolios
|
560
|
+
|
555
561
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
556
562
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
557
563
|
"""
|
@@ -641,7 +647,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
641
647
|
def create_deposit_address(self, code: str, params={}):
|
642
648
|
"""
|
643
649
|
create a currency deposit address
|
644
|
-
|
650
|
+
|
651
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-addresses#create-address
|
652
|
+
|
645
653
|
:param str code: unified currency code of the currency for the deposit address
|
646
654
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
647
655
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -709,9 +717,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
709
717
|
|
710
718
|
def fetch_my_sells(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
711
719
|
"""
|
712
|
-
|
720
|
+
@ignore
|
713
721
|
fetch sells
|
714
|
-
|
722
|
+
|
723
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-sells#list-sells
|
724
|
+
|
715
725
|
:param str symbol: not used by coinbase fetchMySells()
|
716
726
|
:param int [since]: timestamp in ms of the earliest sell, default is None
|
717
727
|
:param int [limit]: max number of sells to return, default is None
|
@@ -727,9 +737,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
727
737
|
|
728
738
|
def fetch_my_buys(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
729
739
|
"""
|
730
|
-
|
740
|
+
@ignore
|
731
741
|
fetch buys
|
732
|
-
|
742
|
+
|
743
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-buys#list-buys
|
744
|
+
|
733
745
|
:param str symbol: not used by coinbase fetchMyBuys()
|
734
746
|
:param int [since]: timestamp in ms of the earliest buy, default is None
|
735
747
|
:param int [limit]: max number of buys to return, default is None
|
@@ -753,7 +765,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
753
765
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
754
766
|
"""
|
755
767
|
Fetch all withdrawals made from an account. Won't return crypto withdrawals. Use fetchLedger for those.
|
756
|
-
|
768
|
+
|
769
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-withdrawals#list-withdrawals
|
770
|
+
|
757
771
|
:param str code: unified currency code
|
758
772
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
759
773
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -771,7 +785,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
771
785
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
772
786
|
"""
|
773
787
|
Fetch all fiat deposits made to an account. Won't return crypto deposits or staking rewards. Use fetchLedger for those.
|
774
|
-
|
788
|
+
|
789
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-deposits#list-deposits
|
790
|
+
|
775
791
|
:param str code: unified currency code
|
776
792
|
:param int [since]: the earliest time in ms to fetch deposits for
|
777
793
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -789,7 +805,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
789
805
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
790
806
|
"""
|
791
807
|
fetch history of deposits and withdrawals
|
792
|
-
|
808
|
+
|
809
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-transactions
|
810
|
+
|
793
811
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
794
812
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
795
813
|
:param int [limit]: max number of deposit/withdrawals to return, default = 50, Min: 1, Max: 100
|
@@ -1145,9 +1163,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1145
1163
|
|
1146
1164
|
def fetch_markets(self, params={}) -> List[Market]:
|
1147
1165
|
"""
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1166
|
+
|
1167
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpublicproducts
|
1168
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies#get-fiat-currencies
|
1169
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
1170
|
+
|
1151
1171
|
retrieves data on all markets for coinbase
|
1152
1172
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1153
1173
|
:param boolean [params.usePrivate]: use private endpoint for fetching markets
|
@@ -1701,8 +1721,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1701
1721
|
def fetch_currencies(self, params={}) -> Currencies:
|
1702
1722
|
"""
|
1703
1723
|
fetches all available currencies on an exchange
|
1704
|
-
|
1705
|
-
|
1724
|
+
|
1725
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies#get-fiat-currencies
|
1726
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
1727
|
+
|
1706
1728
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1707
1729
|
:returns dict: an associative dictionary of currencies
|
1708
1730
|
"""
|
@@ -1789,8 +1811,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1789
1811
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1790
1812
|
"""
|
1791
1813
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1792
|
-
|
1793
|
-
|
1814
|
+
|
1815
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getproducts
|
1816
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
1817
|
+
|
1794
1818
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1795
1819
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1796
1820
|
:param boolean [params.usePrivate]: use private endpoint for fetching tickers
|
@@ -1901,10 +1925,12 @@ class coinbase(Exchange, ImplicitAPI):
|
|
1901
1925
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1902
1926
|
"""
|
1903
1927
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1928
|
+
|
1929
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getmarkettrades
|
1930
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-spot-price
|
1931
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-buy-price
|
1932
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-sell-price
|
1933
|
+
|
1908
1934
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1909
1935
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1910
1936
|
:param boolean [params.usePrivate]: whether to use the private endpoint for fetching the ticker
|
@@ -2148,9 +2174,11 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2148
2174
|
def fetch_balance(self, params={}) -> Balances:
|
2149
2175
|
"""
|
2150
2176
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
2151
|
-
|
2152
|
-
|
2153
|
-
|
2177
|
+
|
2178
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getaccounts
|
2179
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
2180
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfcmbalancesummary
|
2181
|
+
|
2154
2182
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2155
2183
|
:param boolean [params.v3]: default False, set True to use v3 api endpoint
|
2156
2184
|
:param dict [params.type]: "spot"(default) or "swap" or "future"
|
@@ -2249,7 +2277,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2249
2277
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
2250
2278
|
"""
|
2251
2279
|
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.
|
2252
|
-
|
2280
|
+
|
2281
|
+
https://docs.cdp.coinbase.com/coinbase-app/docs/api-transactions#list-transactions
|
2282
|
+
|
2253
2283
|
:param str [code]: unified currency code, default is None
|
2254
2284
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2255
2285
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -2668,7 +2698,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2668
2698
|
def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
2669
2699
|
"""
|
2670
2700
|
create a market buy order by providing the symbol and cost
|
2671
|
-
|
2701
|
+
|
2702
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_postorder
|
2703
|
+
|
2672
2704
|
:param str symbol: unified symbol of the market to create an order in
|
2673
2705
|
:param float cost: how much you want to trade in units of the quote currency
|
2674
2706
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2684,7 +2716,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
2684
2716
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
2685
2717
|
"""
|
2686
2718
|
create a trade order
|
2687
|
-
|
2719
|
+
|
2720
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_postorder
|
2721
|
+
|
2688
2722
|
:param str symbol: unified symbol of the market to create an order in
|
2689
2723
|
:param str type: 'market' or 'limit'
|
2690
2724
|
:param str side: 'buy' or 'sell'
|
@@ -3066,7 +3100,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3066
3100
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
3067
3101
|
"""
|
3068
3102
|
cancels an open order
|
3069
|
-
|
3103
|
+
|
3104
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_cancelorders
|
3105
|
+
|
3070
3106
|
:param str id: order id
|
3071
3107
|
:param str symbol: not used by coinbase cancelOrder()
|
3072
3108
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3079,7 +3115,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3079
3115
|
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
3080
3116
|
"""
|
3081
3117
|
cancel multiple orders
|
3082
|
-
|
3118
|
+
|
3119
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_cancelorders
|
3120
|
+
|
3083
3121
|
:param str[] ids: order ids
|
3084
3122
|
:param str symbol: not used by coinbase cancelOrders()
|
3085
3123
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3114,7 +3152,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3114
3152
|
def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
3115
3153
|
"""
|
3116
3154
|
edit a trade order
|
3117
|
-
|
3155
|
+
|
3156
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_editorder
|
3157
|
+
|
3118
3158
|
:param str id: cancel order id
|
3119
3159
|
:param str symbol: unified symbol of the market to create an order in
|
3120
3160
|
:param str type: 'market' or 'limit'
|
@@ -3155,7 +3195,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3155
3195
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
3156
3196
|
"""
|
3157
3197
|
fetches information on an order made by the user
|
3158
|
-
|
3198
|
+
|
3199
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorder
|
3200
|
+
|
3159
3201
|
:param str id: the order id
|
3160
3202
|
:param str symbol: unified market symbol that the order was made in
|
3161
3203
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3214,7 +3256,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3214
3256
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = 100, params={}) -> List[Order]:
|
3215
3257
|
"""
|
3216
3258
|
fetches information on multiple orders made by the user
|
3217
|
-
|
3259
|
+
|
3260
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3261
|
+
|
3218
3262
|
:param str symbol: unified market symbol that the orders were made in
|
3219
3263
|
:param int [since]: the earliest time in ms to fetch orders
|
3220
3264
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -3366,7 +3410,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3366
3410
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3367
3411
|
"""
|
3368
3412
|
fetches information on all currently open orders
|
3369
|
-
|
3413
|
+
|
3414
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3415
|
+
|
3370
3416
|
:param str symbol: unified market symbol of the orders
|
3371
3417
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3372
3418
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -3385,7 +3431,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3385
3431
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
3386
3432
|
"""
|
3387
3433
|
fetches information on multiple closed orders made by the user
|
3388
|
-
|
3434
|
+
|
3435
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3436
|
+
|
3389
3437
|
:param str symbol: unified market symbol of the orders
|
3390
3438
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3391
3439
|
:param int [limit]: the maximum number of closed order structures to retrieve
|
@@ -3404,7 +3452,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3404
3452
|
def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
3405
3453
|
"""
|
3406
3454
|
fetches information on multiple canceled orders made by the user
|
3407
|
-
|
3455
|
+
|
3456
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_gethistoricalorders
|
3457
|
+
|
3408
3458
|
:param str symbol: unified market symbol of the orders
|
3409
3459
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3410
3460
|
:param int [limit]: the maximum number of canceled order structures to retrieve
|
@@ -3416,7 +3466,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3416
3466
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
3417
3467
|
"""
|
3418
3468
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
3419
|
-
|
3469
|
+
|
3470
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpubliccandles
|
3471
|
+
|
3420
3472
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
3421
3473
|
:param str timeframe: the length of time each candle represents
|
3422
3474
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -3504,7 +3556,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3504
3556
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
3505
3557
|
"""
|
3506
3558
|
get the list of most recent trades for a particular symbol
|
3507
|
-
|
3559
|
+
|
3560
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpublicmarkettrades
|
3561
|
+
|
3508
3562
|
:param str symbol: unified market symbol of the trades
|
3509
3563
|
:param int [since]: not used by coinbase fetchTrades
|
3510
3564
|
:param int [limit]: the maximum number of trade structures to fetch
|
@@ -3556,7 +3610,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3556
3610
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
3557
3611
|
"""
|
3558
3612
|
fetch all trades made by the user
|
3559
|
-
|
3613
|
+
|
3614
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfills
|
3615
|
+
|
3560
3616
|
:param str symbol: unified market symbol of the trades
|
3561
3617
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
3562
3618
|
:param int [limit]: the maximum number of trade structures to fetch
|
@@ -3619,7 +3675,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3619
3675
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
3620
3676
|
"""
|
3621
3677
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
3622
|
-
|
3678
|
+
|
3679
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpublicproductbook
|
3680
|
+
|
3623
3681
|
:param str symbol: unified symbol of the market to fetch the order book for
|
3624
3682
|
:param int [limit]: the maximum amount of order book entries to return
|
3625
3683
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3668,7 +3726,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3668
3726
|
def fetch_bids_asks(self, symbols: Strings = None, params={}):
|
3669
3727
|
"""
|
3670
3728
|
fetches the bid and ask price and volume for multiple markets
|
3671
|
-
|
3729
|
+
|
3730
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getbestbidask
|
3731
|
+
|
3672
3732
|
:param str[] [symbols]: unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
3673
3733
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3674
3734
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -3707,7 +3767,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3707
3767
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
3708
3768
|
"""
|
3709
3769
|
make a withdrawal
|
3710
|
-
|
3770
|
+
|
3771
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-transactions#send-money
|
3772
|
+
|
3711
3773
|
:param str code: unified currency code
|
3712
3774
|
:param float amount: the amount to withdraw
|
3713
3775
|
:param str address: the address to withdraw to
|
@@ -3795,7 +3857,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3795
3857
|
def fetch_deposit_addresses_by_network(self, code: str, params={}) -> List[DepositAddress]:
|
3796
3858
|
"""
|
3797
3859
|
fetch the deposit address for a currency associated with self account
|
3798
|
-
|
3860
|
+
|
3861
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
3862
|
+
|
3799
3863
|
:param str code: unified currency code
|
3800
3864
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
3801
3865
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -3927,7 +3991,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3927
3991
|
def deposit(self, code: str, amount: float, id: str, params={}):
|
3928
3992
|
"""
|
3929
3993
|
make a deposit
|
3930
|
-
|
3994
|
+
|
3995
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-deposits#deposit-funds
|
3996
|
+
|
3931
3997
|
:param str code: unified currency code
|
3932
3998
|
:param float amount: the amount to deposit
|
3933
3999
|
:param str id: the payment method id to be used for the deposit, can be retrieved from v2PrivateGetPaymentMethods
|
@@ -3993,7 +4059,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
3993
4059
|
def fetch_deposit(self, id: str, code: Str = None, params={}):
|
3994
4060
|
"""
|
3995
4061
|
fetch information on a deposit, fiat only, for crypto transactions use fetchLedger
|
3996
|
-
|
4062
|
+
|
4063
|
+
https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-deposits#show-deposit
|
4064
|
+
|
3997
4065
|
:param str id: deposit id
|
3998
4066
|
:param str [code]: unified currency code
|
3999
4067
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4056,7 +4124,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4056
4124
|
def fetch_convert_quote(self, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
|
4057
4125
|
"""
|
4058
4126
|
fetch a quote for converting from one currency to another
|
4059
|
-
|
4127
|
+
|
4128
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_createconvertquote
|
4129
|
+
|
4060
4130
|
:param str fromCode: the currency that you want to sell and convert from
|
4061
4131
|
:param str toCode: the currency that you want to buy and convert into
|
4062
4132
|
:param float [amount]: how much you want to trade in units of the from currency
|
@@ -4079,7 +4149,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4079
4149
|
def create_convert_trade(self, id: str, fromCode: str, toCode: str, amount: Num = None, params={}) -> Conversion:
|
4080
4150
|
"""
|
4081
4151
|
convert from one currency to another
|
4082
|
-
|
4152
|
+
|
4153
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_commitconverttrade
|
4154
|
+
|
4083
4155
|
:param str id: the id of the trade that you want to make
|
4084
4156
|
:param str fromCode: the currency that you want to sell and convert from
|
4085
4157
|
:param str toCode: the currency that you want to buy and convert into
|
@@ -4100,7 +4172,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4100
4172
|
def fetch_convert_trade(self, id: str, code: Str = None, params={}) -> Conversion:
|
4101
4173
|
"""
|
4102
4174
|
fetch the data for a conversion trade
|
4103
|
-
|
4175
|
+
|
4176
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getconverttrade
|
4177
|
+
|
4104
4178
|
:param str id: the id of the trade that you want to commit
|
4105
4179
|
:param str code: the unified currency code that was converted from
|
4106
4180
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -4147,11 +4221,13 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4147
4221
|
def close_position(self, symbol: str, side: OrderSide = None, params={}) -> Order:
|
4148
4222
|
"""
|
4149
4223
|
*futures only* closes open positions for a market
|
4150
|
-
|
4224
|
+
|
4225
|
+
https://coinbase-api.github.io/docs/#/en-us/swapV2/trade-api.html#One-Click%20Close%20All%20Positions
|
4226
|
+
|
4151
4227
|
:param str symbol: Unified CCXT market symbol
|
4152
4228
|
:param str [side]: not used by coinbase
|
4153
4229
|
:param dict [params]: extra parameters specific to the coinbase api endpoint
|
4154
|
-
|
4230
|
+
@param {str} params.clientOrderId *mandatory* the client order id of the position to close
|
4155
4231
|
:param float [params.size]: the size of the position to close, optional
|
4156
4232
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
4157
4233
|
"""
|
@@ -4174,8 +4250,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4174
4250
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
4175
4251
|
"""
|
4176
4252
|
fetch all open positions
|
4177
|
-
|
4178
|
-
|
4253
|
+
|
4254
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfcmpositions
|
4255
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getintxpositions
|
4256
|
+
|
4179
4257
|
:param str[] [symbols]: list of unified market symbols
|
4180
4258
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4181
4259
|
:param str [params.portfolio]: the portfolio UUID to fetch positions for
|
@@ -4206,8 +4284,10 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4206
4284
|
def fetch_position(self, symbol: str, params={}):
|
4207
4285
|
"""
|
4208
4286
|
fetch data on a single open contract trade position
|
4209
|
-
|
4210
|
-
|
4287
|
+
|
4288
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getintxposition
|
4289
|
+
https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getfcmposition
|
4290
|
+
|
4211
4291
|
:param str symbol: unified market symbol of the market the position is held in, default is None
|
4212
4292
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4213
4293
|
:param str [params.product_id]: *futures only* the product id of the position to fetch, required for futures markets only
|
@@ -4375,7 +4455,9 @@ class coinbase(Exchange, ImplicitAPI):
|
|
4375
4455
|
|
4376
4456
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
4377
4457
|
"""
|
4378
|
-
|
4458
|
+
|
4459
|
+
https://docs.cdp.coinbase.com/advanced-trade/reference/retailbrokerageapi_gettransactionsummary/
|
4460
|
+
|
4379
4461
|
fetch the trading fees for multiple markets
|
4380
4462
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
4381
4463
|
:param str [params.type]: 'spot' or 'swap'
|