ccxt 4.2.38__py2.py3-none-any.whl → 4.2.40__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.
Potentially problematic release.
This version of ccxt might be problematic. Click here for more details.
- ccxt/__init__.py +1 -1
- ccxt/abstract/bingx.py +4 -0
- ccxt/abstract/coinbase.py +1 -0
- ccxt/abstract/coinbasepro.py +1 -0
- ccxt/abstract/okx.py +1 -0
- ccxt/ascendex.py +31 -27
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ascendex.py +31 -27
- ccxt/async_support/base/exchange.py +19 -7
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +478 -188
- ccxt/async_support/bingx.py +250 -28
- ccxt/async_support/bitfinex.py +3 -3
- ccxt/async_support/bitfinex2.py +2 -2
- ccxt/async_support/bitget.py +16 -7
- ccxt/async_support/bitmart.py +2 -2
- ccxt/async_support/bitmex.py +2 -2
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +19 -3
- ccxt/async_support/bitstamp.py +25 -3
- ccxt/async_support/bitvavo.py +1 -1
- ccxt/async_support/bl3p.py +6 -0
- ccxt/async_support/blockchaincom.py +21 -0
- ccxt/async_support/blofin.py +2 -2
- ccxt/async_support/btcalpha.py +9 -0
- ccxt/async_support/btcbox.py +9 -0
- ccxt/async_support/btcmarkets.py +19 -0
- ccxt/async_support/bybit.py +9 -7
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +20 -9
- ccxt/async_support/coinbasepro.py +1 -0
- ccxt/async_support/coinex.py +4 -4
- ccxt/async_support/coinlist.py +11 -9
- ccxt/async_support/coinmetro.py +2 -1
- ccxt/async_support/coinone.py +1 -1
- ccxt/async_support/delta.py +2 -2
- ccxt/async_support/deribit.py +3 -3
- ccxt/async_support/digifinex.py +3 -3
- ccxt/async_support/exmo.py +2 -2
- ccxt/async_support/gate.py +6 -6
- ccxt/async_support/hitbtc.py +2 -2
- ccxt/async_support/hollaex.py +1 -1
- ccxt/async_support/htx.py +3 -3
- ccxt/async_support/huobijp.py +1 -1
- ccxt/async_support/kraken.py +2 -2
- ccxt/async_support/krakenfutures.py +117 -16
- ccxt/async_support/kucoin.py +5 -5
- ccxt/async_support/kucoinfutures.py +2 -2
- ccxt/async_support/latoken.py +1 -1
- ccxt/async_support/lbank.py +2 -2
- ccxt/async_support/luno.py +2 -2
- ccxt/async_support/mexc.py +5 -5
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +1 -1
- ccxt/async_support/okcoin.py +2 -2
- ccxt/async_support/okx.py +18 -21
- ccxt/async_support/paymium.py +2 -2
- ccxt/async_support/phemex.py +5 -4
- ccxt/async_support/poloniex.py +2 -2
- ccxt/async_support/poloniexfutures.py +10 -6
- ccxt/async_support/probit.py +1 -1
- ccxt/async_support/timex.py +1 -1
- ccxt/async_support/upbit.py +1 -1
- ccxt/async_support/wavesexchange.py +1 -1
- ccxt/async_support/whitebit.py +2 -2
- ccxt/async_support/woo.py +4 -4
- ccxt/async_support/zonda.py +3 -3
- ccxt/base/exchange.py +37 -25
- ccxt/bigone.py +2 -2
- ccxt/binance.py +478 -188
- ccxt/bingx.py +250 -28
- ccxt/bitfinex.py +3 -3
- ccxt/bitfinex2.py +2 -2
- ccxt/bitget.py +16 -7
- ccxt/bitmart.py +2 -2
- ccxt/bitmex.py +2 -2
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +19 -3
- ccxt/bitstamp.py +25 -3
- ccxt/bitvavo.py +1 -1
- ccxt/bl3p.py +6 -0
- ccxt/blockchaincom.py +21 -0
- ccxt/blofin.py +2 -2
- ccxt/btcalpha.py +9 -0
- ccxt/btcbox.py +9 -0
- ccxt/btcmarkets.py +19 -0
- ccxt/bybit.py +9 -7
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +20 -9
- ccxt/coinbasepro.py +1 -0
- ccxt/coinex.py +4 -4
- ccxt/coinlist.py +11 -9
- ccxt/coinmetro.py +2 -1
- ccxt/coinone.py +1 -1
- ccxt/delta.py +2 -2
- ccxt/deribit.py +3 -3
- ccxt/digifinex.py +3 -3
- ccxt/exmo.py +2 -2
- ccxt/gate.py +6 -6
- ccxt/hitbtc.py +2 -2
- ccxt/hollaex.py +1 -1
- ccxt/htx.py +3 -3
- ccxt/huobijp.py +1 -1
- ccxt/kraken.py +2 -2
- ccxt/krakenfutures.py +117 -16
- ccxt/kucoin.py +5 -5
- ccxt/kucoinfutures.py +2 -2
- ccxt/latoken.py +1 -1
- ccxt/lbank.py +2 -2
- ccxt/luno.py +2 -2
- ccxt/mexc.py +5 -5
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +1 -1
- ccxt/okcoin.py +2 -2
- ccxt/okx.py +18 -21
- ccxt/paymium.py +2 -2
- ccxt/phemex.py +5 -4
- ccxt/poloniex.py +2 -2
- ccxt/poloniexfutures.py +10 -6
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/bitmart.py +129 -46
- ccxt/pro/bitvavo.py +1 -1
- ccxt/pro/bybit.py +6 -6
- ccxt/pro/cex.py +2 -2
- ccxt/pro/coinbase.py +2 -2
- ccxt/pro/coinex.py +1 -1
- ccxt/pro/lbank.py +1 -1
- ccxt/pro/mexc.py +1 -1
- ccxt/probit.py +1 -1
- ccxt/test/test_async.py +3 -1
- ccxt/test/test_sync.py +3 -1
- ccxt/timex.py +1 -1
- ccxt/upbit.py +1 -1
- ccxt/wavesexchange.py +1 -1
- ccxt/whitebit.py +2 -2
- ccxt/woo.py +4 -4
- ccxt/zonda.py +3 -3
- {ccxt-4.2.38.dist-info → ccxt-4.2.40.dist-info}/METADATA +4 -4
- {ccxt-4.2.38.dist-info → ccxt-4.2.40.dist-info}/RECORD +141 -141
- {ccxt-4.2.38.dist-info → ccxt-4.2.40.dist-info}/WHEEL +0 -0
- {ccxt-4.2.38.dist-info → ccxt-4.2.40.dist-info}/top_level.txt +0 -0
ccxt/async_support/bitso.py
CHANGED
@@ -341,6 +341,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
341
341
|
async def fetch_markets(self, params={}):
|
342
342
|
"""
|
343
343
|
retrieves data on all markets for bitso
|
344
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-available-books
|
344
345
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
345
346
|
:returns dict[]: an array of objects representing market data
|
346
347
|
"""
|
@@ -494,6 +495,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
494
495
|
async def fetch_balance(self, params={}) -> Balances:
|
495
496
|
"""
|
496
497
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
498
|
+
:see: https://docs.bitso.com/bitso-api/docs/get-account-balance
|
497
499
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
498
500
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
499
501
|
"""
|
@@ -529,6 +531,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
529
531
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
530
532
|
"""
|
531
533
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
534
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-order-book
|
532
535
|
:param str symbol: unified symbol of the market to fetch the order book for
|
533
536
|
:param int [limit]: the maximum amount of order book entries to return
|
534
537
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -591,6 +594,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
591
594
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
592
595
|
"""
|
593
596
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
597
|
+
:see: https://docs.bitso.com/bitso-api/docs/ticker
|
594
598
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
595
599
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
596
600
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -795,6 +799,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
795
799
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
796
800
|
"""
|
797
801
|
get the list of most recent trades for a particular symbol
|
802
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-trades
|
798
803
|
:param str symbol: unified symbol of the market to fetch trades for
|
799
804
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
800
805
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -812,6 +817,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
812
817
|
async def fetch_trading_fees(self, params={}):
|
813
818
|
"""
|
814
819
|
fetch the trading fees for multiple markets
|
820
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-fees
|
815
821
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
816
822
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
817
823
|
"""
|
@@ -880,6 +886,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
880
886
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = 25, params={}):
|
881
887
|
"""
|
882
888
|
fetch all trades made by the user
|
889
|
+
:see: https://docs.bitso.com/bitso-api/docs/user-trades
|
883
890
|
:param str symbol: unified market symbol
|
884
891
|
:param int [since]: the earliest time in ms to fetch trades for
|
885
892
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -913,6 +920,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
913
920
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
|
914
921
|
"""
|
915
922
|
create a trade order
|
923
|
+
:see: https://docs.bitso.com/bitso-api/docs/place-an-order
|
916
924
|
:param str symbol: unified symbol of the market to create an order in
|
917
925
|
:param str type: 'market' or 'limit'
|
918
926
|
:param str side: 'buy' or 'sell'
|
@@ -941,6 +949,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
941
949
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
942
950
|
"""
|
943
951
|
cancels an open order
|
952
|
+
:see: https://docs.bitso.com/bitso-api/docs/cancel-an-order
|
944
953
|
:param str id: order id
|
945
954
|
:param str symbol: not used by bitso cancelOrder()
|
946
955
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -955,6 +964,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
955
964
|
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
956
965
|
"""
|
957
966
|
cancel multiple orders
|
967
|
+
:see: https://docs.bitso.com/bitso-api/docs/cancel-an-order
|
958
968
|
:param str[] ids: order ids
|
959
969
|
:param str symbol: unified market symbol
|
960
970
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -986,6 +996,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
986
996
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
987
997
|
"""
|
988
998
|
cancel all open orders
|
999
|
+
:see: https://docs.bitso.com/bitso-api/docs/cancel-an-order
|
989
1000
|
:param None symbol: bitso does not support canceling orders for only a specific market
|
990
1001
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
991
1002
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1064,6 +1075,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1064
1075
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = 25, params={}) -> List[Order]:
|
1065
1076
|
"""
|
1066
1077
|
fetch all unfilled currently open orders
|
1078
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-open-orders
|
1067
1079
|
:param str symbol: unified market symbol
|
1068
1080
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1069
1081
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1098,6 +1110,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1098
1110
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1099
1111
|
"""
|
1100
1112
|
fetches information on an order made by the user
|
1113
|
+
:see: https://docs.bitso.com/bitso-api/docs/look-up-orders
|
1101
1114
|
:param str symbol: not used by bitso fetchOrder
|
1102
1115
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1103
1116
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1116,6 +1129,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1116
1129
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1117
1130
|
"""
|
1118
1131
|
fetch all the trades made from a single order
|
1132
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-user-trades
|
1119
1133
|
:param str id: order id
|
1120
1134
|
:param str symbol: unified market symbol
|
1121
1135
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -1134,6 +1148,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1134
1148
|
async def fetch_deposit(self, id: str, code: Str = None, params={}):
|
1135
1149
|
"""
|
1136
1150
|
fetch information on a deposit
|
1151
|
+
:see: https://docs.bitso.com/bitso-payouts-funding/docs/fundings
|
1137
1152
|
:param str id: deposit id
|
1138
1153
|
:param str code: bitso does not support filtering by currency code and will ignore self argument
|
1139
1154
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1174,6 +1189,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1174
1189
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1175
1190
|
"""
|
1176
1191
|
fetch all deposits made to an account
|
1192
|
+
:see: https://docs.bitso.com/bitso-payouts-funding/docs/fundings
|
1177
1193
|
:param str code: unified currency code
|
1178
1194
|
:param int [since]: the earliest time in ms to fetch deposits for
|
1179
1195
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -1239,11 +1255,11 @@ class bitso(Exchange, ImplicitAPI):
|
|
1239
1255
|
'info': response,
|
1240
1256
|
}
|
1241
1257
|
|
1242
|
-
async def fetch_transaction_fees(self, codes=None, params={}):
|
1258
|
+
async def fetch_transaction_fees(self, codes: List[str] = None, params={}):
|
1243
1259
|
"""
|
1244
1260
|
* @deprecated
|
1245
1261
|
please use fetchDepositWithdrawFees instead
|
1246
|
-
:see: https://bitso.com/
|
1262
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-fees
|
1247
1263
|
:param str[]|None codes: list of unified currency codes
|
1248
1264
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1249
1265
|
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1330,7 +1346,7 @@ class bitso(Exchange, ImplicitAPI):
|
|
1330
1346
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
1331
1347
|
"""
|
1332
1348
|
fetch deposit and withdraw fees
|
1333
|
-
:see: https://bitso.com/
|
1349
|
+
:see: https://docs.bitso.com/bitso-api/docs/list-fees
|
1334
1350
|
:param str[]|None codes: list of unified currency codes
|
1335
1351
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1336
1352
|
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
ccxt/async_support/bitstamp.py
CHANGED
@@ -462,6 +462,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
462
462
|
async def fetch_markets(self, params={}):
|
463
463
|
"""
|
464
464
|
retrieves data on all markets for bitstamp
|
465
|
+
:see: https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo
|
465
466
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
466
467
|
:returns dict[]: an array of objects representing market data
|
467
468
|
"""
|
@@ -600,6 +601,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
600
601
|
async def fetch_currencies(self, params={}):
|
601
602
|
"""
|
602
603
|
fetches all available currencies on an exchange
|
604
|
+
:see: https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo
|
603
605
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
604
606
|
:returns dict: an associative dictionary of currencies
|
605
607
|
"""
|
@@ -643,6 +645,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
643
645
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
644
646
|
"""
|
645
647
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
648
|
+
:see: https://www.bitstamp.net/api/#tag/Order-book/operation/GetOrderBook
|
646
649
|
:param str symbol: unified symbol of the market to fetch the order book for
|
647
650
|
:param int [limit]: the maximum amount of order book entries to return
|
648
651
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -726,6 +729,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
726
729
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
727
730
|
"""
|
728
731
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
732
|
+
:see: https://www.bitstamp.net/api/#tag/Tickers/operation/GetMarketTicker
|
729
733
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
730
734
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
731
735
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -756,7 +760,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
756
760
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
757
761
|
"""
|
758
762
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
759
|
-
:see: https://www.bitstamp.net/api/#
|
763
|
+
:see: https://www.bitstamp.net/api/#tag/Tickers/operation/GetCurrencyPairTickers
|
760
764
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
761
765
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
762
766
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -959,6 +963,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
959
963
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
960
964
|
"""
|
961
965
|
get the list of most recent trades for a particular symbol
|
966
|
+
:see: https://www.bitstamp.net/api/#tag/Transactions-public/operation/GetTransactions
|
962
967
|
:param str symbol: unified symbol of the market to fetch trades for
|
963
968
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
964
969
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1083,6 +1088,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1083
1088
|
async def fetch_balance(self, params={}) -> Balances:
|
1084
1089
|
"""
|
1085
1090
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1091
|
+
:see: https://www.bitstamp.net/api/#tag/Account-balances/operation/GetAccountBalances
|
1086
1092
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1087
1093
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1088
1094
|
"""
|
@@ -1111,6 +1117,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1111
1117
|
async def fetch_trading_fee(self, symbol: str, params={}):
|
1112
1118
|
"""
|
1113
1119
|
fetch the trading fees for a market
|
1120
|
+
:see: https://www.bitstamp.net/api/#tag/Fees/operation/GetAllTradingFees
|
1114
1121
|
:param str symbol: unified market symbol
|
1115
1122
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1116
1123
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1148,6 +1155,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1148
1155
|
async def fetch_trading_fees(self, params={}):
|
1149
1156
|
"""
|
1150
1157
|
fetch the trading fees for multiple markets
|
1158
|
+
:see: https://www.bitstamp.net/api/#tag/Fees/operation/GetAllTradingFees
|
1151
1159
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1152
1160
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
1153
1161
|
"""
|
@@ -1155,7 +1163,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1155
1163
|
response = await self.privatePostBalance(params)
|
1156
1164
|
return self.parse_trading_fees(response)
|
1157
1165
|
|
1158
|
-
async def fetch_transaction_fees(self, codes=None, params={}):
|
1166
|
+
async def fetch_transaction_fees(self, codes: List[str] = None, params={}):
|
1159
1167
|
"""
|
1160
1168
|
* @deprecated
|
1161
1169
|
please use fetchDepositWithdrawFees instead
|
@@ -1213,7 +1221,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1213
1221
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
1214
1222
|
"""
|
1215
1223
|
fetch deposit and withdraw fees
|
1216
|
-
:see: https://www.bitstamp.net/api/#
|
1224
|
+
:see: https://www.bitstamp.net/api/#tag/Fees/operation/GetAllWithdrawalFees
|
1217
1225
|
:param str[]|None codes: list of unified currency codes
|
1218
1226
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1219
1227
|
:returns dict[]: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1327,6 +1335,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1327
1335
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1328
1336
|
"""
|
1329
1337
|
cancels an open order
|
1338
|
+
:see: https://www.bitstamp.net/api/#tag/Orders/operation/CancelOrder
|
1330
1339
|
:param str id: order id
|
1331
1340
|
:param str symbol: unified symbol of the market the order was made in
|
1332
1341
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1341,6 +1350,8 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1341
1350
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1342
1351
|
"""
|
1343
1352
|
cancel all open orders
|
1353
|
+
:see: https://www.bitstamp.net/api/#tag/Orders/operation/CancelAllOrders
|
1354
|
+
:see: https://www.bitstamp.net/api/#tag/Orders/operation/CancelOrdersForMarket
|
1344
1355
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1345
1356
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1346
1357
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1381,6 +1392,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1381
1392
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1382
1393
|
"""
|
1383
1394
|
fetches information on an order made by the user
|
1395
|
+
:see: https://www.bitstamp.net/api/#tag/Orders/operation/GetOrderStatus
|
1384
1396
|
:param str symbol: unified symbol of the market the order was made in
|
1385
1397
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1386
1398
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1420,6 +1432,8 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1420
1432
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1421
1433
|
"""
|
1422
1434
|
fetch all trades made by the user
|
1435
|
+
:see: https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
1436
|
+
:see: https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactionsForMarket
|
1423
1437
|
:param str symbol: unified market symbol
|
1424
1438
|
:param int [since]: the earliest time in ms to fetch trades for
|
1425
1439
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1443,6 +1457,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1443
1457
|
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1444
1458
|
"""
|
1445
1459
|
fetch history of deposits and withdrawals
|
1460
|
+
:see: https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
1446
1461
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
1447
1462
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1448
1463
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1489,6 +1504,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1489
1504
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1490
1505
|
"""
|
1491
1506
|
fetch all withdrawals made from an account
|
1507
|
+
:see: https://www.bitstamp.net/api/#tag/Withdrawals/operation/GetWithdrawalRequests
|
1492
1508
|
:param str code: unified currency code
|
1493
1509
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
1494
1510
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -1833,6 +1849,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1833
1849
|
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}):
|
1834
1850
|
"""
|
1835
1851
|
fetch the history of changes, actions done by the user or operations that altered balance of the user
|
1852
|
+
:see: https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
1836
1853
|
:param str code: unified currency code, default is None
|
1837
1854
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
1838
1855
|
:param int [limit]: max number of ledger entrys to return, default is None
|
@@ -1852,6 +1869,8 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1852
1869
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1853
1870
|
"""
|
1854
1871
|
fetch all unfilled currently open orders
|
1872
|
+
:see: https://www.bitstamp.net/api/#tag/Orders/operation/GetAllOpenOrders
|
1873
|
+
:see: https://www.bitstamp.net/api/#tag/Orders/operation/GetOpenOrdersForMarket
|
1855
1874
|
:param str symbol: unified market symbol
|
1856
1875
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1857
1876
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1895,6 +1914,7 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1895
1914
|
async def fetch_deposit_address(self, code: str, params={}):
|
1896
1915
|
"""
|
1897
1916
|
fetch the deposit address for a currency associated with self account
|
1917
|
+
:see: https://www.bitstamp.net/api/#tag/Deposits/operation/GetCryptoDepositAddress
|
1898
1918
|
:param str code: unified currency code
|
1899
1919
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1900
1920
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1918,6 +1938,8 @@ class bitstamp(Exchange, ImplicitAPI):
|
|
1918
1938
|
async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
|
1919
1939
|
"""
|
1920
1940
|
make a withdrawal
|
1941
|
+
:see: https://www.bitstamp.net/api/#tag/Withdrawals/operation/RequestFiatWithdrawal
|
1942
|
+
:see: https://www.bitstamp.net/api/#tag/Withdrawals/operation/RequestCryptoWithdrawal
|
1921
1943
|
:param str code: unified currency code
|
1922
1944
|
:param float amount: the amount to withdraw
|
1923
1945
|
:param str address: the address to withdraw to
|
ccxt/async_support/bitvavo.py
CHANGED
@@ -1170,7 +1170,7 @@ class bitvavo(Exchange, ImplicitAPI):
|
|
1170
1170
|
request['market'] = market['id']
|
1171
1171
|
return request
|
1172
1172
|
|
1173
|
-
async def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
1173
|
+
async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: float = None, price: float = None, params={}):
|
1174
1174
|
"""
|
1175
1175
|
edit a trade order
|
1176
1176
|
:see: https://docs.bitvavo.com/#tag/Orders/paths/~1order/put
|
ccxt/async_support/bl3p.py
CHANGED
@@ -138,6 +138,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
138
138
|
async def fetch_balance(self, params={}) -> Balances:
|
139
139
|
"""
|
140
140
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
141
|
+
:see: https://github.com/BitonicNL/bl3p-api/blob/master/docs/authenticated_api/http.md#35---get-account-info--balance
|
141
142
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
142
143
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
143
144
|
"""
|
@@ -156,6 +157,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
156
157
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
157
158
|
"""
|
158
159
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
160
|
+
:see: https://github.com/BitonicNL/bl3p-api/blob/master/docs/public_api/http.md#22---orderbook
|
159
161
|
:param str symbol: unified symbol of the market to fetch the order book for
|
160
162
|
:param int [limit]: the maximum amount of order book entries to return
|
161
163
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -215,6 +217,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
215
217
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
216
218
|
"""
|
217
219
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
220
|
+
:see: https://github.com/BitonicNL/bl3p-api/blob/master/docs/public_api/http.md#21---ticker
|
218
221
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
219
222
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
220
223
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -276,6 +279,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
276
279
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
277
280
|
"""
|
278
281
|
get the list of most recent trades for a particular symbol
|
282
|
+
:see: https://github.com/BitonicNL/bl3p-api/blob/master/docs/public_api/http.md#23---last-1000-trades
|
279
283
|
:param str symbol: unified symbol of the market to fetch trades for
|
280
284
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
281
285
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -306,6 +310,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
306
310
|
async def fetch_trading_fees(self, params={}):
|
307
311
|
"""
|
308
312
|
fetch the trading fees for multiple markets
|
313
|
+
:see: https://github.com/BitonicNL/bl3p-api/blob/master/docs/authenticated_api/http.md#35---get-account-info--balance
|
309
314
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
310
315
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
311
316
|
"""
|
@@ -392,6 +397,7 @@ class bl3p(Exchange, ImplicitAPI):
|
|
392
397
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
393
398
|
"""
|
394
399
|
cancels an open order
|
400
|
+
:see: https://github.com/BitonicNL/bl3p-api/blob/master/docs/authenticated_api/http.md#22---cancel-an-order
|
395
401
|
:param str id: order id
|
396
402
|
:param str symbol: unified symbol of the market the order was made in
|
397
403
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -230,6 +230,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
230
230
|
async def fetch_markets(self, params={}):
|
231
231
|
"""
|
232
232
|
retrieves data on all markets for blockchaincom
|
233
|
+
:see: https://api.blockchain.com/v3/#/unauthenticated/getSymbols
|
233
234
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
234
235
|
:returns dict[]: an array of objects representing market data
|
235
236
|
"""
|
@@ -353,6 +354,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
353
354
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
354
355
|
"""
|
355
356
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
357
|
+
:see: https://api.blockchain.com/v3/#/unauthenticated/getL3OrderBook
|
356
358
|
:param str symbol: unified symbol of the market to fetch the order book for
|
357
359
|
:param int [limit]: the maximum amount of order book entries to return
|
358
360
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -363,6 +365,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
363
365
|
async def fetch_l3_order_book(self, symbol: str, limit: Int = None, params={}):
|
364
366
|
"""
|
365
367
|
fetches level 3 information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
368
|
+
:see: https://api.blockchain.com/v3/#/unauthenticated/getL3OrderBook
|
366
369
|
:param str symbol: unified market symbol
|
367
370
|
:param int [limit]: max number of orders to return, default is None
|
368
371
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -429,6 +432,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
429
432
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
430
433
|
"""
|
431
434
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
435
|
+
:see: https://api.blockchain.com/v3/#/unauthenticated/getTickerBySymbol
|
432
436
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
433
437
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
434
438
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -444,6 +448,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
444
448
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
445
449
|
"""
|
446
450
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
451
|
+
:see: https://api.blockchain.com/v3/#/unauthenticated/getTickers
|
447
452
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
448
453
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
449
454
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -522,6 +527,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
522
527
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
|
523
528
|
"""
|
524
529
|
create a trade order
|
530
|
+
:see: https://api.blockchain.com/v3/#/trading/createOrder
|
525
531
|
:param str symbol: unified symbol of the market to create an order in
|
526
532
|
:param str type: 'market' or 'limit'
|
527
533
|
:param str side: 'buy' or 'sell'
|
@@ -573,6 +579,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
573
579
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
574
580
|
"""
|
575
581
|
cancels an open order
|
582
|
+
:see: https://api.blockchain.com/v3/#/trading/deleteOrder
|
576
583
|
:param str id: order id
|
577
584
|
:param str symbol: unified symbol of the market the order was made in
|
578
585
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -590,6 +597,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
590
597
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
591
598
|
"""
|
592
599
|
cancel all open orders
|
600
|
+
:see: https://api.blockchain.com/v3/#/trading/deleteAllOrders
|
593
601
|
:param str symbol: unified market symbol of the market to cancel orders in, all markets are used if None, default is None
|
594
602
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
595
603
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -612,6 +620,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
612
620
|
async def fetch_trading_fees(self, params={}):
|
613
621
|
"""
|
614
622
|
fetch the trading fees for multiple markets
|
623
|
+
:see: https://api.blockchain.com/v3/#/trading/getFees
|
615
624
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
616
625
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
617
626
|
"""
|
@@ -640,6 +649,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
640
649
|
async def fetch_canceled_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
641
650
|
"""
|
642
651
|
fetches information on multiple canceled orders made by the user
|
652
|
+
:see: https://api.blockchain.com/v3/#/trading/getOrders
|
643
653
|
:param str symbol: unified market symbol of the market orders were made in
|
644
654
|
:param int [since]: timestamp in ms of the earliest order, default is None
|
645
655
|
:param int [limit]: max number of orders to return, default is None
|
@@ -652,6 +662,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
652
662
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
653
663
|
"""
|
654
664
|
fetches information on multiple closed orders made by the user
|
665
|
+
:see: https://api.blockchain.com/v3/#/trading/getOrders
|
655
666
|
:param str symbol: unified market symbol of the market orders were made in
|
656
667
|
:param int [since]: the earliest time in ms to fetch orders for
|
657
668
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -664,6 +675,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
664
675
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
665
676
|
"""
|
666
677
|
fetch all unfilled currently open orders
|
678
|
+
:see: https://api.blockchain.com/v3/#/trading/getOrders
|
667
679
|
:param str symbol: unified market symbol
|
668
680
|
:param int [since]: the earliest time in ms to fetch open orders for
|
669
681
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -736,6 +748,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
736
748
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
737
749
|
"""
|
738
750
|
fetch all trades made by the user
|
751
|
+
:see: https://api.blockchain.com/v3/#/trading/getFills
|
739
752
|
:param str symbol: unified market symbol
|
740
753
|
:param int [since]: the earliest time in ms to fetch trades for
|
741
754
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -756,6 +769,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
756
769
|
async def fetch_deposit_address(self, code: str, params={}):
|
757
770
|
"""
|
758
771
|
fetch the deposit address for a currency associated with self account
|
772
|
+
:see: https://api.blockchain.com/v3/#/payments/getDepositAddress
|
759
773
|
:param str code: unified currency code
|
760
774
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
761
775
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -862,6 +876,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
862
876
|
async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
|
863
877
|
"""
|
864
878
|
make a withdrawal
|
879
|
+
:see: https://api.blockchain.com/v3/#/payments/createWithdrawal
|
865
880
|
:param str code: unified currency code
|
866
881
|
:param float amount: the amount to withdraw
|
867
882
|
:param str address: the address to withdraw to
|
@@ -894,6 +909,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
894
909
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
895
910
|
"""
|
896
911
|
fetch all withdrawals made from an account
|
912
|
+
:see: https://api.blockchain.com/v3/#/payments/getWithdrawals
|
897
913
|
:param str code: unified currency code
|
898
914
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
899
915
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -916,6 +932,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
916
932
|
async def fetch_withdrawal(self, id: str, code: Str = None, params={}):
|
917
933
|
"""
|
918
934
|
fetch data on a currency withdrawal via the withdrawal id
|
935
|
+
:see: https://api.blockchain.com/v3/#/payments/getWithdrawalById
|
919
936
|
:param str id: withdrawal id
|
920
937
|
:param str code: not used by blockchaincom.fetchWithdrawal
|
921
938
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -931,6 +948,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
931
948
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
932
949
|
"""
|
933
950
|
fetch all deposits made to an account
|
951
|
+
:see: https://api.blockchain.com/v3/#/payments/getDeposits
|
934
952
|
:param str code: unified currency code
|
935
953
|
:param int [since]: the earliest time in ms to fetch deposits for
|
936
954
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -953,6 +971,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
953
971
|
async def fetch_deposit(self, id: str, code: Str = None, params={}):
|
954
972
|
"""
|
955
973
|
fetch information on a deposit
|
974
|
+
:see: https://api.blockchain.com/v3/#/payments/getDepositById
|
956
975
|
:param str id: deposit id
|
957
976
|
:param str code: not used by blockchaincom fetchDeposit()
|
958
977
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -969,6 +988,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
969
988
|
async def fetch_balance(self, params={}) -> Balances:
|
970
989
|
"""
|
971
990
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
991
|
+
:see: https://api.blockchain.com/v3/#/payments/getAccounts
|
972
992
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
973
993
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
974
994
|
"""
|
@@ -1011,6 +1031,7 @@ class blockchaincom(Exchange, ImplicitAPI):
|
|
1011
1031
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1012
1032
|
"""
|
1013
1033
|
fetches information on an order made by the user
|
1034
|
+
:see: https://api.blockchain.com/v3/#/trading/getOrderById
|
1014
1035
|
:param str symbol: not used by blockchaincom fetchOrder
|
1015
1036
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1016
1037
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
ccxt/async_support/blofin.py
CHANGED
@@ -1598,7 +1598,7 @@ class blofin(Exchange, ImplicitAPI):
|
|
1598
1598
|
ordersData = self.safe_list(response, 'data', [])
|
1599
1599
|
return self.parse_orders(ordersData, market, None, None, params)
|
1600
1600
|
|
1601
|
-
async def transfer(self, code: str, amount: float, fromAccount, toAccount, params={}) -> TransferEntry:
|
1601
|
+
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
1602
1602
|
"""
|
1603
1603
|
transfer currency internally between wallets on the same account
|
1604
1604
|
:see: https://blofin.com/docs#funds-transfer
|
@@ -1780,7 +1780,7 @@ class blofin(Exchange, ImplicitAPI):
|
|
1780
1780
|
response = await self.privateGetAccountLeverageInfo(self.extend(request, params))
|
1781
1781
|
return response
|
1782
1782
|
|
1783
|
-
async def set_leverage(self, leverage, symbol: Str = None, params={}):
|
1783
|
+
async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
|
1784
1784
|
"""
|
1785
1785
|
set the level of leverage for a market
|
1786
1786
|
:see: https://blofin.com/docs#set-leverage
|
ccxt/async_support/btcalpha.py
CHANGED
@@ -157,6 +157,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
157
157
|
async def fetch_markets(self, params={}):
|
158
158
|
"""
|
159
159
|
retrieves data on all markets for btcalpha
|
160
|
+
:see: https://btc-alpha.github.io/api-docs/#list-all-currencies
|
160
161
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
161
162
|
:returns dict[]: an array of objects representing market data
|
162
163
|
"""
|
@@ -416,6 +417,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
416
417
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
417
418
|
"""
|
418
419
|
get the list of most recent trades for a particular symbol
|
420
|
+
:see: https://btc-alpha.github.io/api-docs/#list-all-exchanges
|
419
421
|
:param str symbol: unified symbol of the market to fetch trades for
|
420
422
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
421
423
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -436,6 +438,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
436
438
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
437
439
|
"""
|
438
440
|
fetch all deposits made to an account
|
441
|
+
:see: https://btc-alpha.github.io/api-docs/#list-own-deposits
|
439
442
|
:param str code: unified currency code
|
440
443
|
:param int [since]: the earliest time in ms to fetch deposits for
|
441
444
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -462,6 +465,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
462
465
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
463
466
|
"""
|
464
467
|
fetch all withdrawals made from an account
|
468
|
+
:see: https://btc-alpha.github.io/api-docs/#list-own-made-withdraws
|
465
469
|
:param str code: unified currency code
|
466
470
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
467
471
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -566,6 +570,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
566
570
|
async def fetch_ohlcv(self, symbol: str, timeframe='5m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
567
571
|
"""
|
568
572
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
573
|
+
:see: https://btc-alpha.github.io/api-docs/#charts
|
569
574
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
570
575
|
:param str timeframe: the length of time each candle represents
|
571
576
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -608,6 +613,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
608
613
|
async def fetch_balance(self, params={}) -> Balances:
|
609
614
|
"""
|
610
615
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
616
|
+
:see: https://btc-alpha.github.io/api-docs/#list-own-wallets
|
611
617
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
612
618
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
613
619
|
"""
|
@@ -779,6 +785,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
779
785
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
780
786
|
"""
|
781
787
|
fetch all unfilled currently open orders
|
788
|
+
:see: https://btc-alpha.github.io/api-docs/#list-own-orders
|
782
789
|
:param str symbol: unified market symbol
|
783
790
|
:param int [since]: the earliest time in ms to fetch open orders for
|
784
791
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -793,6 +800,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
793
800
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
794
801
|
"""
|
795
802
|
fetches information on multiple closed orders made by the user
|
803
|
+
:see: https://btc-alpha.github.io/api-docs/#list-own-orders
|
796
804
|
:param str symbol: unified market symbol of the market orders were made in
|
797
805
|
:param int [since]: the earliest time in ms to fetch orders for
|
798
806
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -807,6 +815,7 @@ class btcalpha(Exchange, ImplicitAPI):
|
|
807
815
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
808
816
|
"""
|
809
817
|
fetch all trades made by the user
|
818
|
+
:see: https://btc-alpha.github.io/api-docs/#list-own-exchanges
|
810
819
|
:param str symbol: unified market symbol
|
811
820
|
:param int [since]: the earliest time in ms to fetch trades for
|
812
821
|
:param int [limit]: the maximum number of trades structures to retrieve
|