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/bitstamp.py
CHANGED
@@ -510,7 +510,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
510
510
|
def fetch_markets(self, params={}) -> List[Market]:
|
511
511
|
"""
|
512
512
|
retrieves data on all markets for bitstamp
|
513
|
-
|
513
|
+
|
514
|
+
https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo
|
515
|
+
|
514
516
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
515
517
|
:returns dict[]: an array of objects representing market data
|
516
518
|
"""
|
@@ -649,7 +651,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
649
651
|
def fetch_currencies(self, params={}) -> Currencies:
|
650
652
|
"""
|
651
653
|
fetches all available currencies on an exchange
|
652
|
-
|
654
|
+
|
655
|
+
https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo
|
656
|
+
|
653
657
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
654
658
|
:returns dict: an associative dictionary of currencies
|
655
659
|
"""
|
@@ -693,7 +697,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
693
697
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
694
698
|
"""
|
695
699
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
696
|
-
|
700
|
+
|
701
|
+
https://www.bitstamp.net/api/#tag/Order-book/operation/GetOrderBook
|
702
|
+
|
697
703
|
:param str symbol: unified symbol of the market to fetch the order book for
|
698
704
|
:param int [limit]: the maximum amount of order book entries to return
|
699
705
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -777,7 +783,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
777
783
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
778
784
|
"""
|
779
785
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
780
|
-
|
786
|
+
|
787
|
+
https://www.bitstamp.net/api/#tag/Tickers/operation/GetMarketTicker
|
788
|
+
|
781
789
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
782
790
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
783
791
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -808,7 +816,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
808
816
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
809
817
|
"""
|
810
818
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
811
|
-
|
819
|
+
|
820
|
+
https://www.bitstamp.net/api/#tag/Tickers/operation/GetCurrencyPairTickers
|
821
|
+
|
812
822
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
813
823
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
814
824
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1011,7 +1021,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1011
1021
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1012
1022
|
"""
|
1013
1023
|
get the list of most recent trades for a particular symbol
|
1014
|
-
|
1024
|
+
|
1025
|
+
https://www.bitstamp.net/api/#tag/Transactions-public/operation/GetTransactions
|
1026
|
+
|
1015
1027
|
:param str symbol: unified symbol of the market to fetch trades for
|
1016
1028
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1017
1029
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1068,7 +1080,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1068
1080
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1069
1081
|
"""
|
1070
1082
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1071
|
-
|
1083
|
+
|
1084
|
+
https://www.bitstamp.net/api/#tag/Market-info/operation/GetOHLCData
|
1085
|
+
|
1072
1086
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1073
1087
|
:param str timeframe: the length of time each candle represents
|
1074
1088
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1137,7 +1151,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1137
1151
|
def fetch_balance(self, params={}) -> Balances:
|
1138
1152
|
"""
|
1139
1153
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1140
|
-
|
1154
|
+
|
1155
|
+
https://www.bitstamp.net/api/#tag/Account-balances/operation/GetAccountBalances
|
1156
|
+
|
1141
1157
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1142
1158
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1143
1159
|
"""
|
@@ -1159,7 +1175,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1159
1175
|
def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1160
1176
|
"""
|
1161
1177
|
fetch the trading fees for a market
|
1162
|
-
|
1178
|
+
|
1179
|
+
https://www.bitstamp.net/api/#tag/Fees/operation/GetTradingFeesForCurrency
|
1180
|
+
|
1163
1181
|
:param str symbol: unified market symbol
|
1164
1182
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1165
1183
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1212,7 +1230,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1212
1230
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
1213
1231
|
"""
|
1214
1232
|
fetch the trading fees for multiple markets
|
1215
|
-
|
1233
|
+
|
1234
|
+
https://www.bitstamp.net/api/#tag/Fees/operation/GetAllTradingFees
|
1235
|
+
|
1216
1236
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1217
1237
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
1218
1238
|
"""
|
@@ -1236,9 +1256,11 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1236
1256
|
|
1237
1257
|
def fetch_transaction_fees(self, codes: Strings = None, params={}):
|
1238
1258
|
"""
|
1239
|
-
|
1259
|
+
@deprecated
|
1240
1260
|
please use fetchDepositWithdrawFees instead
|
1241
|
-
|
1261
|
+
|
1262
|
+
https://www.bitstamp.net/api/#tag/Fees
|
1263
|
+
|
1242
1264
|
:param str[]|None codes: list of unified currency codes
|
1243
1265
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1244
1266
|
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1277,7 +1299,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1277
1299
|
def fetch_deposit_withdraw_fees(self, codes=None, params={}):
|
1278
1300
|
"""
|
1279
1301
|
fetch deposit and withdraw fees
|
1280
|
-
|
1302
|
+
|
1303
|
+
https://www.bitstamp.net/api/#tag/Fees/operation/GetAllWithdrawalFees
|
1304
|
+
|
1281
1305
|
:param str[]|None codes: list of unified currency codes
|
1282
1306
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1283
1307
|
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1323,12 +1347,14 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1323
1347
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1324
1348
|
"""
|
1325
1349
|
create a trade order
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1350
|
+
|
1351
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/OpenInstantBuyOrder
|
1352
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/OpenMarketBuyOrder
|
1353
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/OpenLimitBuyOrder
|
1354
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/OpenInstantSellOrder
|
1355
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/OpenMarketSellOrder
|
1356
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/OpenLimitSellOrder
|
1357
|
+
|
1332
1358
|
:param str symbol: unified symbol of the market to create an order in
|
1333
1359
|
:param str type: 'market' or 'limit'
|
1334
1360
|
:param str side: 'buy' or 'sell'
|
@@ -1372,7 +1398,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1372
1398
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1373
1399
|
"""
|
1374
1400
|
cancels an open order
|
1375
|
-
|
1401
|
+
|
1402
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/CancelOrder
|
1403
|
+
|
1376
1404
|
:param str id: order id
|
1377
1405
|
:param str symbol: unified symbol of the market the order was made in
|
1378
1406
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1397,8 +1425,10 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1397
1425
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1398
1426
|
"""
|
1399
1427
|
cancel all open orders
|
1400
|
-
|
1401
|
-
|
1428
|
+
|
1429
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/CancelAllOrders
|
1430
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/CancelOrdersForMarket
|
1431
|
+
|
1402
1432
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1403
1433
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1404
1434
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1455,7 +1485,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1455
1485
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1456
1486
|
"""
|
1457
1487
|
fetches information on an order made by the user
|
1458
|
-
|
1488
|
+
|
1489
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/GetOrderStatus
|
1490
|
+
|
1459
1491
|
:param str id: the order id
|
1460
1492
|
:param str symbol: unified symbol of the market the order was made in
|
1461
1493
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1496,8 +1528,10 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1496
1528
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1497
1529
|
"""
|
1498
1530
|
fetch all trades made by the user
|
1499
|
-
|
1500
|
-
|
1531
|
+
|
1532
|
+
https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
1533
|
+
https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactionsForMarket
|
1534
|
+
|
1501
1535
|
:param str symbol: unified market symbol
|
1502
1536
|
:param int [since]: the earliest time in ms to fetch trades for
|
1503
1537
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1521,7 +1555,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1521
1555
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1522
1556
|
"""
|
1523
1557
|
fetch history of deposits and withdrawals
|
1524
|
-
|
1558
|
+
|
1559
|
+
https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
1560
|
+
|
1525
1561
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
1526
1562
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1527
1563
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1568,7 +1604,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1568
1604
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1569
1605
|
"""
|
1570
1606
|
fetch all withdrawals made from an account
|
1571
|
-
|
1607
|
+
|
1608
|
+
https://www.bitstamp.net/api/#tag/Withdrawals/operation/GetWithdrawalRequests
|
1609
|
+
|
1572
1610
|
:param str code: unified currency code
|
1573
1611
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1574
1612
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1923,7 +1961,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1923
1961
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
1924
1962
|
"""
|
1925
1963
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
1926
|
-
|
1964
|
+
|
1965
|
+
https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
1966
|
+
|
1927
1967
|
:param str [code]: unified currency code, default is None
|
1928
1968
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
1929
1969
|
:param int [limit]: max number of ledger entries to return, default is None
|
@@ -1943,8 +1983,10 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1943
1983
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1944
1984
|
"""
|
1945
1985
|
fetch all unfilled currently open orders
|
1946
|
-
|
1947
|
-
|
1986
|
+
|
1987
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/GetAllOpenOrders
|
1988
|
+
https://www.bitstamp.net/api/#tag/Orders/operation/GetOpenOrdersForMarket
|
1989
|
+
|
1948
1990
|
:param str symbol: unified market symbol
|
1949
1991
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1950
1992
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1976,7 +2018,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1976
2018
|
|
1977
2019
|
def get_currency_name(self, code):
|
1978
2020
|
"""
|
1979
|
-
|
2021
|
+
@ignore
|
1980
2022
|
:param str code: Unified currency code
|
1981
2023
|
:returns str: lowercase version of code
|
1982
2024
|
"""
|
@@ -1988,7 +2030,9 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1988
2030
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1989
2031
|
"""
|
1990
2032
|
fetch the deposit address for a currency associated with self account
|
1991
|
-
|
2033
|
+
|
2034
|
+
https://www.bitstamp.net/api/#tag/Deposits/operation/GetCryptoDepositAddress
|
2035
|
+
|
1992
2036
|
:param str code: unified currency code
|
1993
2037
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1994
2038
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2012,8 +2056,10 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
2012
2056
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2013
2057
|
"""
|
2014
2058
|
make a withdrawal
|
2015
|
-
|
2016
|
-
|
2059
|
+
|
2060
|
+
https://www.bitstamp.net/api/#tag/Withdrawals/operation/RequestFiatWithdrawal
|
2061
|
+
https://www.bitstamp.net/api/#tag/Withdrawals/operation/RequestCryptoWithdrawal
|
2062
|
+
|
2017
2063
|
:param str code: unified currency code
|
2018
2064
|
:param float amount: the amount to withdraw
|
2019
2065
|
:param str address: the address to withdraw to
|
@@ -2052,8 +2098,10 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
2052
2098
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
2053
2099
|
"""
|
2054
2100
|
transfer currency internally between wallets on the same account
|
2055
|
-
|
2056
|
-
|
2101
|
+
|
2102
|
+
https://www.bitstamp.net/api/#tag/Sub-account/operation/TransferFromMainToSub
|
2103
|
+
https://www.bitstamp.net/api/#tag/Sub-account/operation/TransferFromSubToMain
|
2104
|
+
|
2057
2105
|
:param str code: unified currency code
|
2058
2106
|
:param float amount: amount to transfer
|
2059
2107
|
:param str fromAccount: account to transfer from
|
ccxt/bitteam.py
CHANGED
@@ -254,7 +254,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
254
254
|
def fetch_markets(self, params={}) -> List[Market]:
|
255
255
|
"""
|
256
256
|
retrieves data on all markets for bitteam
|
257
|
-
|
257
|
+
|
258
|
+
https://bit.team/trade/api/documentation#/CCXT/getTradeApiCcxtPairs
|
259
|
+
|
258
260
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
259
261
|
:returns dict[]: an array of objects representing market data
|
260
262
|
"""
|
@@ -420,7 +422,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
420
422
|
def fetch_currencies(self, params={}) -> Currencies:
|
421
423
|
"""
|
422
424
|
fetches all available currencies on an exchange
|
423
|
-
|
425
|
+
|
426
|
+
https://bit.team/trade/api/documentation#/PUBLIC/getTradeApiCurrencies
|
427
|
+
|
424
428
|
:param dict [params]: extra parameters specific to the bitteam api endpoint
|
425
429
|
:returns dict: an associative dictionary of currencies
|
426
430
|
"""
|
@@ -697,7 +701,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
697
701
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
698
702
|
"""
|
699
703
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
700
|
-
|
704
|
+
|
705
|
+
https://bit.team/trade/api/documentation#/CMC/getTradeApiCmcOrderbookPair
|
706
|
+
|
701
707
|
:param str symbol: unified symbol of the market to fetch the order book for
|
702
708
|
:param int [limit]: the maximum amount of order book entries to return(default 100, max 200)
|
703
709
|
:param dict [params]: extra parameters specific to the bitteam api endpoint
|
@@ -743,7 +749,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
743
749
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
744
750
|
"""
|
745
751
|
fetches information on multiple orders made by the user
|
746
|
-
|
752
|
+
|
753
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiCcxtOrdersofuser
|
754
|
+
|
747
755
|
:param str symbol: unified market symbol of the market orders were made in
|
748
756
|
:param int [since]: the earliest time in ms to fetch orders for
|
749
757
|
:param int [limit]: the maximum number of orde structures to retrieve(default 10)
|
@@ -852,7 +860,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
852
860
|
def fetch_order(self, id: str, symbol: Str = None, params={}) -> Order:
|
853
861
|
"""
|
854
862
|
fetches information on an order
|
855
|
-
|
863
|
+
|
864
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiCcxtOrderId
|
865
|
+
|
856
866
|
:param int|str id: order id
|
857
867
|
:param str symbol: not used by bitteam fetchOrder()
|
858
868
|
:param dict [params]: extra parameters specific to the bitteam api endpoint
|
@@ -909,7 +919,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
909
919
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
910
920
|
"""
|
911
921
|
fetch all unfilled currently open orders
|
912
|
-
|
922
|
+
|
923
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiCcxtOrdersofuser
|
924
|
+
|
913
925
|
:param str symbol: unified market symbol
|
914
926
|
:param int [since]: the earliest time in ms to fetch open orders for
|
915
927
|
:param int [limit]: the maximum number of open order structures to retrieve(default 10)
|
@@ -925,7 +937,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
925
937
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
926
938
|
"""
|
927
939
|
fetches information on multiple closed orders made by the user
|
928
|
-
|
940
|
+
|
941
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiCcxtOrdersofuser
|
942
|
+
|
929
943
|
:param str symbol: unified market symbol of the market orders were made in
|
930
944
|
:param int [since]: the earliest time in ms to fetch orders for
|
931
945
|
:param int [limit]: the maximum number of closed order structures to retrieve(default 10)
|
@@ -941,7 +955,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
941
955
|
def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
942
956
|
"""
|
943
957
|
fetches information on multiple canceled orders made by the user
|
944
|
-
|
958
|
+
|
959
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiCcxtOrdersofuser
|
960
|
+
|
945
961
|
:param str symbol: unified market symbol of the market orders were made in
|
946
962
|
:param int [since]: the earliest time in ms to fetch orders for
|
947
963
|
:param int [limit]: the maximum number of canceled order structures to retrieve(default 10)
|
@@ -957,7 +973,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
957
973
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
958
974
|
"""
|
959
975
|
create a trade order
|
960
|
-
|
976
|
+
|
977
|
+
https://bit.team/trade/api/documentation#/PRIVATE/postTradeApiCcxtOrdercreate
|
978
|
+
|
961
979
|
:param str symbol: unified symbol of the market to create an order in
|
962
980
|
:param str type: 'market' or 'limit'
|
963
981
|
:param str side: 'buy' or 'sell'
|
@@ -1009,7 +1027,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1009
1027
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1010
1028
|
"""
|
1011
1029
|
cancels an open order
|
1012
|
-
|
1030
|
+
|
1031
|
+
https://bit.team/trade/api/documentation#/PRIVATE/postTradeApiCcxtCancelorder
|
1032
|
+
|
1013
1033
|
:param str id: order id
|
1014
1034
|
:param str symbol: not used by bitteam cancelOrder()
|
1015
1035
|
:param dict [params]: extra parameters specific to the bitteam api endpoint
|
@@ -1034,7 +1054,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1034
1054
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1035
1055
|
"""
|
1036
1056
|
cancel open orders of market
|
1037
|
-
|
1057
|
+
|
1058
|
+
https://bit.team/trade/api/documentation#/PRIVATE/postTradeApiCcxtCancelallorder
|
1059
|
+
|
1038
1060
|
:param str symbol: unified market symbol
|
1039
1061
|
:param dict [params]: extra parameters specific to the bitteam api endpoint
|
1040
1062
|
:returns dict[]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1232,7 +1254,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1232
1254
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1233
1255
|
"""
|
1234
1256
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1235
|
-
|
1257
|
+
|
1258
|
+
https://bit.team/trade/api/documentation#/CMC/getTradeApiCmcSummary
|
1259
|
+
|
1236
1260
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1237
1261
|
:param dict [params]: extra parameters specific to the bitteam api endpoint
|
1238
1262
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1282,7 +1306,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1282
1306
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1283
1307
|
"""
|
1284
1308
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1285
|
-
|
1309
|
+
|
1310
|
+
https://bit.team/trade/api/documentation#/PUBLIC/getTradeApiPairName
|
1311
|
+
|
1286
1312
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1287
1313
|
:param dict [params]: extra parameters specific to the bitteam api endpoint
|
1288
1314
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1609,7 +1635,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1609
1635
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1610
1636
|
"""
|
1611
1637
|
get the list of most recent trades for a particular symbol
|
1612
|
-
|
1638
|
+
|
1639
|
+
https://bit.team/trade/api/documentation#/CMC/getTradeApiCmcTradesPair
|
1640
|
+
|
1613
1641
|
:param str symbol: unified symbol of the market to fetch trades for
|
1614
1642
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1615
1643
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1648,7 +1676,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1648
1676
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1649
1677
|
"""
|
1650
1678
|
fetch all trades made by the user
|
1651
|
-
|
1679
|
+
|
1680
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiCcxtTradesofuser
|
1681
|
+
|
1652
1682
|
:param str symbol: unified market symbol
|
1653
1683
|
:param int [since]: the earliest time in ms to fetch trades for
|
1654
1684
|
:param int [limit]: the maximum number of trades structures to retrieve(default 10)
|
@@ -1907,7 +1937,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1907
1937
|
def fetch_balance(self, params={}) -> Balances:
|
1908
1938
|
"""
|
1909
1939
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1910
|
-
|
1940
|
+
|
1941
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiCcxtBalance
|
1942
|
+
|
1911
1943
|
:param dict [params]: extra parameters specific to the betteam api endpoint
|
1912
1944
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
1913
1945
|
"""
|
@@ -1983,7 +2015,9 @@ class bitteam(Exchange, ImplicitAPI):
|
|
1983
2015
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1984
2016
|
"""
|
1985
2017
|
fetch history of deposits and withdrawals from external wallets and between CoinList Pro trading account and CoinList wallet
|
1986
|
-
|
2018
|
+
|
2019
|
+
https://bit.team/trade/api/documentation#/PRIVATE/getTradeApiTransactionsofuser
|
2020
|
+
|
1987
2021
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals
|
1988
2022
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal
|
1989
2023
|
:param int [limit]: max number of deposit/withdrawals to return(default 10)
|