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/coinbaseexchange.py
CHANGED
@@ -251,7 +251,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
251
251
|
def fetch_currencies(self, params={}) -> Currencies:
|
252
252
|
"""
|
253
253
|
fetches all available currencies on an exchange
|
254
|
-
|
254
|
+
|
255
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getcurrencies
|
256
|
+
|
255
257
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
256
258
|
:returns dict: an associative dictionary of currencies
|
257
259
|
"""
|
@@ -319,7 +321,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
319
321
|
def fetch_markets(self, params={}) -> List[Market]:
|
320
322
|
"""
|
321
323
|
retrieves data on all markets for coinbaseexchange
|
322
|
-
|
324
|
+
|
325
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducts
|
326
|
+
|
323
327
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
324
328
|
:returns dict[]: an array of objects representing market data
|
325
329
|
"""
|
@@ -437,7 +441,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
437
441
|
def fetch_accounts(self, params={}) -> List[Account]:
|
438
442
|
"""
|
439
443
|
fetch all the accounts associated with a profile
|
440
|
-
|
444
|
+
|
445
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
446
|
+
|
441
447
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
442
448
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
443
449
|
"""
|
@@ -500,7 +506,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
500
506
|
def fetch_balance(self, params={}) -> Balances:
|
501
507
|
"""
|
502
508
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
503
|
-
|
509
|
+
|
510
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
511
|
+
|
504
512
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
505
513
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
506
514
|
"""
|
@@ -510,7 +518,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
510
518
|
|
511
519
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
512
520
|
"""
|
513
|
-
|
521
|
+
|
522
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductbook
|
523
|
+
|
514
524
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
515
525
|
:param str symbol: unified symbol of the market to fetch the order book for
|
516
526
|
:param int [limit]: the maximum amount of order book entries to return
|
@@ -627,7 +637,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
627
637
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
628
638
|
"""
|
629
639
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
630
|
-
|
640
|
+
|
641
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproduct
|
642
|
+
|
631
643
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
632
644
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
633
645
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -670,7 +682,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
670
682
|
|
671
683
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
672
684
|
"""
|
673
|
-
|
685
|
+
|
686
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductticker
|
687
|
+
|
674
688
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
675
689
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
676
690
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -779,7 +793,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
779
793
|
|
780
794
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
781
795
|
"""
|
782
|
-
|
796
|
+
|
797
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfills
|
798
|
+
|
783
799
|
fetch all trades made by the user
|
784
800
|
:param str symbol: unified market symbol
|
785
801
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -813,7 +829,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
813
829
|
|
814
830
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
815
831
|
"""
|
816
|
-
|
832
|
+
|
833
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducttrades
|
834
|
+
|
817
835
|
get the list of most recent trades for a particular symbol
|
818
836
|
:param str symbol: unified symbol of the market to fetch trades for
|
819
837
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
@@ -845,7 +863,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
845
863
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
846
864
|
"""
|
847
865
|
fetch the trading fees for multiple markets
|
848
|
-
|
866
|
+
|
867
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfees
|
868
|
+
|
849
869
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
850
870
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
851
871
|
"""
|
@@ -895,7 +915,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
895
915
|
|
896
916
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
897
917
|
"""
|
898
|
-
|
918
|
+
|
919
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductcandles
|
920
|
+
|
899
921
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
900
922
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
901
923
|
:param str timeframe: the length of time each candle represents
|
@@ -1048,7 +1070,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1048
1070
|
|
1049
1071
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1050
1072
|
"""
|
1051
|
-
|
1073
|
+
|
1074
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
|
1075
|
+
|
1052
1076
|
fetches information on an order made by the user
|
1053
1077
|
:param str id: the order id
|
1054
1078
|
:param str symbol: not used by coinbaseexchange fetchOrder
|
@@ -1091,7 +1115,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1091
1115
|
|
1092
1116
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1093
1117
|
"""
|
1094
|
-
|
1118
|
+
|
1119
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1120
|
+
|
1095
1121
|
fetches information on multiple orders made by the user
|
1096
1122
|
:param str symbol: unified market symbol of the market orders were made in
|
1097
1123
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -1107,7 +1133,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1107
1133
|
|
1108
1134
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1109
1135
|
"""
|
1110
|
-
|
1136
|
+
|
1137
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1138
|
+
|
1111
1139
|
fetch all unfilled currently open orders
|
1112
1140
|
:param str symbol: unified market symbol
|
1113
1141
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -1140,7 +1168,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1140
1168
|
|
1141
1169
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1142
1170
|
"""
|
1143
|
-
|
1171
|
+
|
1172
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
1173
|
+
|
1144
1174
|
fetches information on multiple closed orders made by the user
|
1145
1175
|
:param str symbol: unified market symbol of the market orders were made in
|
1146
1176
|
:param int [since]: the earliest time in ms to fetch orders for
|
@@ -1156,7 +1186,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1156
1186
|
|
1157
1187
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1158
1188
|
"""
|
1159
|
-
|
1189
|
+
|
1190
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postorders
|
1191
|
+
|
1160
1192
|
create a trade order
|
1161
1193
|
:param str symbol: unified symbol of the market to create an order in
|
1162
1194
|
:param str type: 'market' or 'limit'
|
@@ -1239,7 +1271,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1239
1271
|
|
1240
1272
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1241
1273
|
"""
|
1242
|
-
|
1274
|
+
|
1275
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorder
|
1276
|
+
|
1243
1277
|
cancels an open order
|
1244
1278
|
:param str id: order id
|
1245
1279
|
:param str symbol: unified symbol of the market the order was made in
|
@@ -1267,7 +1301,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1267
1301
|
|
1268
1302
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1269
1303
|
"""
|
1270
|
-
|
1304
|
+
|
1305
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorders
|
1306
|
+
|
1271
1307
|
cancel all open orders
|
1272
1308
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1273
1309
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1287,8 +1323,10 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1287
1323
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1288
1324
|
"""
|
1289
1325
|
make a withdrawal
|
1290
|
-
|
1291
|
-
|
1326
|
+
|
1327
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postwithdrawpaymentmethod
|
1328
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postwithdrawcoinbaseaccount
|
1329
|
+
|
1292
1330
|
:param str code: unified currency code
|
1293
1331
|
:param float amount: the amount to withdraw
|
1294
1332
|
:param str address: the address to withdraw to
|
@@ -1402,7 +1440,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1402
1440
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
1403
1441
|
"""
|
1404
1442
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
1405
|
-
|
1443
|
+
|
1444
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccountledger
|
1445
|
+
|
1406
1446
|
:param str code: unified currency code, default is None
|
1407
1447
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
1408
1448
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -1445,8 +1485,10 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1445
1485
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1446
1486
|
"""
|
1447
1487
|
fetch history of deposits and withdrawals
|
1448
|
-
|
1449
|
-
|
1488
|
+
|
1489
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
1490
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
1491
|
+
|
1450
1492
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
1451
1493
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1452
1494
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1542,8 +1584,10 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1542
1584
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1543
1585
|
"""
|
1544
1586
|
fetch all deposits made to an account
|
1545
|
-
|
1546
|
-
|
1587
|
+
|
1588
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
1589
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
1590
|
+
|
1547
1591
|
:param str code: unified currency code
|
1548
1592
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1549
1593
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1555,8 +1599,10 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1555
1599
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1556
1600
|
"""
|
1557
1601
|
fetch all withdrawals made from an account
|
1558
|
-
|
1559
|
-
|
1602
|
+
|
1603
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
1604
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
1605
|
+
|
1560
1606
|
:param str code: unified currency code
|
1561
1607
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1562
1608
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1658,7 +1704,9 @@ class coinbaseexchange(Exchange, ImplicitAPI):
|
|
1658
1704
|
def create_deposit_address(self, code: str, params={}):
|
1659
1705
|
"""
|
1660
1706
|
create a currency deposit address
|
1661
|
-
|
1707
|
+
|
1708
|
+
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
1709
|
+
|
1662
1710
|
:param str code: unified currency code of the currency for the deposit address
|
1663
1711
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1664
1712
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
ccxt/coinbaseinternational.py
CHANGED
@@ -304,7 +304,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
304
304
|
def fetch_accounts(self, params={}):
|
305
305
|
"""
|
306
306
|
fetch all the accounts associated with a profile
|
307
|
-
|
307
|
+
|
308
|
+
https://docs.cloud.coinbase.com/intx/reference/getportfolios
|
309
|
+
|
308
310
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
309
311
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
310
312
|
"""
|
@@ -355,7 +357,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
355
357
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = 100, params={}) -> List[list]:
|
356
358
|
"""
|
357
359
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
358
|
-
|
360
|
+
|
361
|
+
https://docs.cdp.coinbase.com/intx/reference/getinstrumentcandles
|
362
|
+
|
359
363
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
360
364
|
:param str timeframe: the length of time each candle represents
|
361
365
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -424,12 +428,15 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
424
428
|
def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
425
429
|
"""
|
426
430
|
fetches historical funding rate prices
|
427
|
-
|
431
|
+
|
432
|
+
https://docs.cloud.coinbase.com/intx/reference/getinstrumentfunding
|
433
|
+
|
428
434
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
429
435
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
430
436
|
:param int [limit]: the maximum amount of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>` to fetch
|
431
437
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
432
438
|
: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)
|
439
|
+
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-history-structure>`
|
433
440
|
"""
|
434
441
|
if symbol is None:
|
435
442
|
raise ArgumentsRequired(self.id + ' fetchFundingRateHistory() requires a symbol argument')
|
@@ -506,7 +513,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
506
513
|
def fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
507
514
|
"""
|
508
515
|
fetch the history of funding payments paid and received on self account
|
509
|
-
|
516
|
+
|
517
|
+
https://docs.cdp.coinbase.com/intx/reference/gettransfers
|
518
|
+
|
510
519
|
:param str [symbol]: unified market symbol
|
511
520
|
:param int [since]: the earliest time in ms to fetch funding history for
|
512
521
|
:param int [limit]: the maximum number of funding history structures to retrieve
|
@@ -577,7 +586,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
577
586
|
def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
|
578
587
|
"""
|
579
588
|
fetch a history of internal transfers made on an account
|
580
|
-
|
589
|
+
|
590
|
+
https://docs.cdp.coinbase.com/intx/reference/gettransfers
|
591
|
+
|
581
592
|
:param str code: unified currency code of the currency transferred
|
582
593
|
:param int [since]: the earliest time in ms to fetch transfers for
|
583
594
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -660,8 +671,10 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
660
671
|
def create_deposit_address(self, code: str, params={}):
|
661
672
|
"""
|
662
673
|
create a currency deposit address
|
663
|
-
|
664
|
-
|
674
|
+
|
675
|
+
https://docs.cloud.coinbase.com/intx/reference/createaddress
|
676
|
+
https://docs.cloud.coinbase.com/intx/reference/createcounterpartyid
|
677
|
+
|
665
678
|
:param str code: unified currency code of the currency for the deposit address
|
666
679
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
667
680
|
:param str [params.network_arn_id]: Identifies the blockchain network(e.g., networks/ethereum-mainnet/assets/313ef8a9-ae5a-5f2f-8a56-572c0e2a4d5a) if not provided will pick default
|
@@ -780,7 +793,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
780
793
|
def set_margin(self, symbol: str, amount: float, params={}) -> Any:
|
781
794
|
"""
|
782
795
|
Either adds or reduces margin in order to set the margin to a specific value
|
783
|
-
|
796
|
+
|
797
|
+
https://docs.cloud.coinbase.com/intx/reference/setportfoliomarginoverride
|
798
|
+
|
784
799
|
:param str symbol: unified market symbol of the market to set margin in
|
785
800
|
:param float amount: the amount to set the margin to
|
786
801
|
:param dict [params]: parameters specific to the exchange API endpoint
|
@@ -799,7 +814,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
799
814
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
800
815
|
"""
|
801
816
|
fetch history of deposits and withdrawals
|
802
|
-
|
817
|
+
|
818
|
+
https://docs.cloud.coinbase.com/intx/reference/gettransfers
|
819
|
+
|
803
820
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
804
821
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
805
822
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -868,7 +885,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
868
885
|
|
869
886
|
def fetch_position(self, symbol: str, params={}):
|
870
887
|
"""
|
871
|
-
|
888
|
+
|
889
|
+
https://docs.cloud.coinbase.com/intx/reference/getportfolioposition
|
890
|
+
|
872
891
|
fetch data on an open position
|
873
892
|
:param str symbol: unified market symbol of the market the position is held in
|
874
893
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -951,11 +970,12 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
951
970
|
|
952
971
|
def fetch_positions(self, symbols: Strings = None, params={}) -> List[Position]:
|
953
972
|
"""
|
954
|
-
|
973
|
+
|
974
|
+
https://docs.cloud.coinbase.com/intx/reference/getportfoliopositions
|
975
|
+
|
955
976
|
fetch all open positions
|
956
977
|
:param str[] [symbols]: list of unified market symbols
|
957
978
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
958
|
-
:param str [method]: method name to call, "positionRisk", "account" or "option", default is "positionRisk"
|
959
979
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
960
980
|
"""
|
961
981
|
self.load_markets()
|
@@ -991,7 +1011,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
991
1011
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
992
1012
|
"""
|
993
1013
|
fetch all withdrawals made from an account
|
994
|
-
|
1014
|
+
|
1015
|
+
https://docs.cloud.coinbase.com/intx/reference/gettransfers
|
1016
|
+
|
995
1017
|
:param str code: unified currency code
|
996
1018
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
997
1019
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1125,7 +1147,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1125
1147
|
|
1126
1148
|
def fetch_markets(self, params={}) -> List[Market]:
|
1127
1149
|
"""
|
1128
|
-
|
1150
|
+
|
1151
|
+
https://docs.cloud.coinbase.com/intx/reference/getinstruments
|
1152
|
+
|
1129
1153
|
retrieves data on all markets for coinbaseinternational
|
1130
1154
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1131
1155
|
:returns dict[]: an array of objects representing market data
|
@@ -1297,7 +1321,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1297
1321
|
def fetch_currencies(self, params={}) -> Currencies:
|
1298
1322
|
"""
|
1299
1323
|
fetches all available currencies on an exchange
|
1300
|
-
|
1324
|
+
|
1325
|
+
https://docs.cloud.coinbase.com/intx/reference/getassets
|
1326
|
+
|
1301
1327
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1302
1328
|
:returns dict: an associative dictionary of currencies
|
1303
1329
|
"""
|
@@ -1349,7 +1375,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1349
1375
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1350
1376
|
"""
|
1351
1377
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1352
|
-
|
1378
|
+
|
1379
|
+
https://docs.cloud.coinbase.com/intx/reference/getinstruments
|
1380
|
+
|
1353
1381
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1354
1382
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1355
1383
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1369,7 +1397,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1369
1397
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1370
1398
|
"""
|
1371
1399
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1372
|
-
|
1400
|
+
|
1401
|
+
https://docs.cloud.coinbase.com/intx/reference/getinstrumentquote
|
1402
|
+
|
1373
1403
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1374
1404
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1375
1405
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1429,7 +1459,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1429
1459
|
def fetch_balance(self, params={}) -> Balances:
|
1430
1460
|
"""
|
1431
1461
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1432
|
-
|
1462
|
+
|
1463
|
+
https://docs.cloud.coinbase.com/intx/reference/getportfoliobalances
|
1464
|
+
|
1433
1465
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1434
1466
|
:param boolean [params.v3]: default False, set True to use v3 api endpoint
|
1435
1467
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
@@ -1492,7 +1524,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1492
1524
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
1493
1525
|
"""
|
1494
1526
|
Transfer an amount of asset from one portfolio to another.
|
1495
|
-
|
1527
|
+
|
1528
|
+
https://docs.cloud.coinbase.com/intx/reference/createportfolioassettransfer
|
1529
|
+
|
1496
1530
|
:param str code: unified currency code
|
1497
1531
|
:param float amount: amount to transfer
|
1498
1532
|
:param str fromAccount: account to transfer from
|
@@ -1525,7 +1559,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1525
1559
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
|
1526
1560
|
"""
|
1527
1561
|
create a trade order
|
1528
|
-
|
1562
|
+
|
1563
|
+
https://docs.cloud.coinbase.com/intx/reference/createorder
|
1564
|
+
|
1529
1565
|
:param str symbol: unified symbol of the market to create an order in
|
1530
1566
|
:param str type: 'market' or 'limit'
|
1531
1567
|
:param str side: 'buy' or 'sell'
|
@@ -1694,7 +1730,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1694
1730
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1695
1731
|
"""
|
1696
1732
|
cancels an open order
|
1697
|
-
|
1733
|
+
|
1734
|
+
https://docs.cloud.coinbase.com/intx/reference/cancelorder
|
1735
|
+
|
1698
1736
|
:param str id: order id
|
1699
1737
|
:param str symbol: not used by coinbaseinternational cancelOrder()
|
1700
1738
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1759,7 +1797,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1759
1797
|
def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: float = None, price: float = None, params={}):
|
1760
1798
|
"""
|
1761
1799
|
edit a trade order
|
1762
|
-
|
1800
|
+
|
1801
|
+
https://docs.cloud.coinbase.com/intx/reference/modifyorder
|
1802
|
+
|
1763
1803
|
:param str id: cancel order id
|
1764
1804
|
:param str symbol: unified symbol of the market to create an order in
|
1765
1805
|
:param str type: 'market' or 'limit'
|
@@ -1796,7 +1836,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1796
1836
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1797
1837
|
"""
|
1798
1838
|
fetches information on an order made by the user
|
1799
|
-
|
1839
|
+
|
1840
|
+
https://docs.cloud.coinbase.com/intx/reference/modifyorder
|
1841
|
+
|
1800
1842
|
:param str id: the order id
|
1801
1843
|
:param str symbol: unified market symbol that the order was made in
|
1802
1844
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1843,7 +1885,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1843
1885
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1844
1886
|
"""
|
1845
1887
|
fetches information on all currently open orders
|
1846
|
-
|
1888
|
+
|
1889
|
+
https://docs.cloud.coinbase.com/intx/reference/getorders
|
1890
|
+
|
1847
1891
|
:param str symbol: unified market symbol of the orders
|
1848
1892
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
1849
1893
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -1919,7 +1963,9 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
1919
1963
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1920
1964
|
"""
|
1921
1965
|
fetch all trades made by the user
|
1922
|
-
|
1966
|
+
|
1967
|
+
https://docs.cloud.coinbase.com/intx/reference/getmultiportfoliofills
|
1968
|
+
|
1923
1969
|
:param str symbol: unified market symbol of the trades
|
1924
1970
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
1925
1971
|
:param int [limit]: the maximum number of trade structures to fetch
|
@@ -2000,8 +2046,10 @@ class coinbaseinternational(Exchange, ImplicitAPI):
|
|
2000
2046
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2001
2047
|
"""
|
2002
2048
|
make a withdrawal
|
2003
|
-
|
2004
|
-
|
2049
|
+
|
2050
|
+
https://docs.cloud.coinbase.com/intx/reference/withdraw
|
2051
|
+
https://docs.cloud.coinbase.com/intx/reference/counterpartywithdraw
|
2052
|
+
|
2005
2053
|
:param str code: unified currency code
|
2006
2054
|
:param float amount: the amount to withdraw
|
2007
2055
|
:param str address: the address to withdraw to
|