ccxt 4.1.19__py2.py3-none-any.whl → 4.1.22__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/okcoin.py +70 -206
- ccxt/ace.py +12 -12
- ccxt/ascendex.py +5 -5
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +12 -12
- ccxt/async_support/ascendex.py +5 -5
- ccxt/async_support/base/exchange.py +1 -1
- ccxt/async_support/bigone.py +2 -2
- ccxt/async_support/binance.py +184 -184
- ccxt/async_support/bingx.py +48 -48
- ccxt/async_support/bitbank.py +14 -14
- ccxt/async_support/bitbns.py +7 -7
- ccxt/async_support/bitfinex.py +2 -2
- ccxt/async_support/bitfinex2.py +35 -35
- ccxt/async_support/bitflyer.py +17 -17
- ccxt/async_support/bitforex.py +9 -9
- ccxt/async_support/bitget.py +433 -215
- ccxt/async_support/bitmart.py +39 -39
- ccxt/async_support/bitmex.py +7 -7
- ccxt/async_support/bitopro.py +1 -1
- ccxt/async_support/bitpanda.py +1 -1
- ccxt/async_support/bitrue.py +2 -2
- ccxt/async_support/bitso.py +2 -2
- ccxt/async_support/bitstamp.py +3 -3
- ccxt/async_support/bitvavo.py +2 -2
- ccxt/async_support/bl3p.py +1 -1
- ccxt/async_support/btcalpha.py +7 -7
- ccxt/async_support/btcturk.py +1 -1
- ccxt/async_support/bybit.py +58 -58
- ccxt/async_support/cex.py +1 -1
- ccxt/async_support/coinbase.py +13 -13
- ccxt/async_support/coinbasepro.py +15 -15
- ccxt/async_support/coinex.py +19 -19
- ccxt/async_support/coinone.py +2 -2
- ccxt/async_support/coinsph.py +4 -4
- ccxt/async_support/coinspot.py +2 -2
- ccxt/async_support/cryptocom.py +28 -28
- ccxt/async_support/currencycom.py +1 -1
- ccxt/async_support/delta.py +26 -26
- ccxt/async_support/deribit.py +9 -9
- ccxt/async_support/digifinex.py +38 -38
- ccxt/async_support/exmo.py +18 -18
- ccxt/async_support/gate.py +59 -59
- ccxt/async_support/gemini.py +4 -4
- ccxt/async_support/hitbtc.py +6 -6
- ccxt/async_support/hollaex.py +2 -2
- ccxt/async_support/huobi.py +70 -70
- ccxt/async_support/indodax.py +1 -1
- ccxt/async_support/kraken.py +33 -33
- ccxt/async_support/krakenfutures.py +6 -5
- ccxt/async_support/kucoin.py +74 -74
- ccxt/async_support/kucoinfutures.py +8 -8
- ccxt/async_support/latoken.py +14 -14
- ccxt/async_support/lbank2.py +33 -33
- ccxt/async_support/mexc.py +22 -22
- ccxt/async_support/ndax.py +1 -1
- ccxt/async_support/novadax.py +22 -22
- ccxt/async_support/oceanex.py +18 -18
- ccxt/async_support/okcoin.py +1950 -2758
- ccxt/async_support/okx.py +73 -73
- ccxt/async_support/paymium.py +11 -11
- ccxt/async_support/phemex.py +26 -26
- ccxt/async_support/poloniex.py +30 -30
- ccxt/async_support/poloniexfutures.py +25 -25
- ccxt/async_support/probit.py +21 -21
- ccxt/async_support/tokocrypto.py +22 -22
- ccxt/async_support/upbit.py +21 -21
- ccxt/async_support/wavesexchange.py +2 -2
- ccxt/async_support/wazirx.py +14 -14
- ccxt/async_support/whitebit.py +6 -6
- ccxt/async_support/woo.py +21 -21
- ccxt/async_support/yobit.py +16 -16
- ccxt/async_support/zaif.py +10 -10
- ccxt/async_support/zonda.py +15 -15
- ccxt/base/exchange.py +2 -1
- ccxt/bigone.py +2 -2
- ccxt/binance.py +184 -184
- ccxt/bingx.py +48 -48
- ccxt/bitbank.py +14 -14
- ccxt/bitbns.py +7 -7
- ccxt/bitfinex.py +2 -2
- ccxt/bitfinex2.py +35 -35
- ccxt/bitflyer.py +17 -17
- ccxt/bitforex.py +9 -9
- ccxt/bitget.py +433 -215
- ccxt/bitmart.py +39 -39
- ccxt/bitmex.py +7 -7
- ccxt/bitopro.py +1 -1
- ccxt/bitpanda.py +1 -1
- ccxt/bitrue.py +2 -2
- ccxt/bitso.py +2 -2
- ccxt/bitstamp.py +3 -3
- ccxt/bitvavo.py +2 -2
- ccxt/bl3p.py +1 -1
- ccxt/btcalpha.py +7 -7
- ccxt/btcturk.py +1 -1
- ccxt/bybit.py +58 -58
- ccxt/cex.py +1 -1
- ccxt/coinbase.py +13 -13
- ccxt/coinbasepro.py +15 -15
- ccxt/coinex.py +19 -19
- ccxt/coinone.py +2 -2
- ccxt/coinsph.py +4 -4
- ccxt/coinspot.py +2 -2
- ccxt/cryptocom.py +28 -28
- ccxt/currencycom.py +1 -1
- ccxt/delta.py +26 -26
- ccxt/deribit.py +9 -9
- ccxt/digifinex.py +38 -38
- ccxt/exmo.py +18 -18
- ccxt/gate.py +59 -59
- ccxt/gemini.py +4 -4
- ccxt/hitbtc.py +6 -6
- ccxt/hollaex.py +2 -2
- ccxt/huobi.py +70 -70
- ccxt/indodax.py +1 -1
- ccxt/kraken.py +33 -33
- ccxt/krakenfutures.py +6 -5
- ccxt/kucoin.py +74 -74
- ccxt/kucoinfutures.py +8 -8
- ccxt/latoken.py +14 -14
- ccxt/lbank2.py +33 -33
- ccxt/mexc.py +22 -22
- ccxt/ndax.py +1 -1
- ccxt/novadax.py +22 -22
- ccxt/oceanex.py +18 -18
- ccxt/okcoin.py +1950 -2758
- ccxt/okx.py +73 -73
- ccxt/paymium.py +11 -11
- ccxt/phemex.py +26 -26
- ccxt/poloniex.py +30 -30
- ccxt/poloniexfutures.py +25 -25
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/ascendex.py +1 -1
- ccxt/pro/binance.py +9 -9
- ccxt/pro/bingx.py +12 -12
- ccxt/pro/bitget.py +2 -2
- ccxt/pro/bitpanda.py +7 -7
- ccxt/pro/bitrue.py +2 -2
- ccxt/pro/blockchaincom.py +6 -6
- ccxt/pro/bybit.py +15 -15
- ccxt/pro/cex.py +8 -8
- ccxt/pro/coinbase.py +6 -6
- ccxt/pro/coinbasepro.py +1 -1
- ccxt/pro/coinex.py +8 -8
- ccxt/pro/cryptocom.py +12 -12
- ccxt/pro/deribit.py +7 -7
- ccxt/pro/gemini.py +4 -4
- ccxt/pro/hitbtc.py +17 -17
- ccxt/pro/huobi.py +3 -3
- ccxt/pro/kraken.py +6 -6
- ccxt/pro/krakenfutures.py +10 -10
- ccxt/pro/kucoin.py +85 -42
- ccxt/pro/kucoinfutures.py +5 -5
- ccxt/pro/luno.py +1 -1
- ccxt/pro/mexc.py +7 -7
- ccxt/pro/okx.py +16 -15
- ccxt/pro/phemex.py +15 -15
- ccxt/pro/poloniex.py +9 -9
- ccxt/pro/poloniexfutures.py +5 -5
- ccxt/pro/probit.py +5 -5
- ccxt/pro/wazirx.py +5 -5
- ccxt/pro/woo.py +1 -1
- ccxt/probit.py +21 -21
- ccxt/test/base/test_shared_methods.py +1 -1
- ccxt/tokocrypto.py +22 -22
- ccxt/upbit.py +21 -21
- ccxt/wavesexchange.py +2 -2
- ccxt/wazirx.py +14 -14
- ccxt/whitebit.py +6 -6
- ccxt/woo.py +21 -21
- ccxt/yobit.py +16 -16
- ccxt/zaif.py +10 -10
- ccxt/zonda.py +15 -15
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/METADATA +5 -9
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/RECORD +179 -179
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/WHEEL +0 -0
- {ccxt-4.1.19.dist-info → ccxt-4.1.22.dist-info}/top_level.txt +0 -0
ccxt/async_support/bingx.py
CHANGED
@@ -366,7 +366,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
366
366
|
async def fetch_time(self, params={}):
|
367
367
|
"""
|
368
368
|
fetches the current integer timestamp in milliseconds from the bingx server
|
369
|
-
see https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
|
369
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
|
370
370
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
371
371
|
:returns int: the current integer timestamp in milliseconds from the bingx server
|
372
372
|
"""
|
@@ -386,7 +386,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
386
386
|
async def fetch_currencies(self, params={}):
|
387
387
|
"""
|
388
388
|
fetches all available currencies on an exchange
|
389
|
-
see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
|
389
|
+
:see: https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
|
390
390
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
391
391
|
:returns dict: an associative dictionary of currencies
|
392
392
|
"""
|
@@ -625,8 +625,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
625
625
|
async def fetch_markets(self, params={}):
|
626
626
|
"""
|
627
627
|
retrieves data on all markets for bingx
|
628
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
|
629
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
|
628
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
|
629
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
|
630
630
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
631
631
|
:returns [dict]: an array of objects representing market data
|
632
632
|
"""
|
@@ -639,9 +639,9 @@ class bingx(Exchange, ImplicitAPI):
|
|
639
639
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
640
640
|
"""
|
641
641
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
642
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#K-Line%20Data
|
643
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Candlestick%20chart%20data
|
644
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#%20K-Line%20Data
|
642
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#K-Line%20Data
|
643
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Candlestick%20chart%20data
|
644
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#%20K-Line%20Data
|
645
645
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
646
646
|
:param str timeframe: the length of time each candle represents
|
647
647
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -739,8 +739,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
739
739
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
740
740
|
"""
|
741
741
|
get the list of most recent trades for a particular symbol
|
742
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20transaction%20records
|
743
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#The%20latest%20Trade%20of%20a%20Trading%20Pair
|
742
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20transaction%20records
|
743
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#The%20latest%20Trade%20of%20a%20Trading%20Pair
|
744
744
|
:param str symbol: unified symbol of the market to fetch trades for
|
745
745
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
746
746
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -903,8 +903,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
903
903
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
904
904
|
"""
|
905
905
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
906
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20depth%20information
|
907
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
|
906
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20depth%20information
|
907
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
|
908
908
|
:param str symbol: unified symbol of the market to fetch the order book for
|
909
909
|
:param int [limit]: the maximum amount of order book entries to return
|
910
910
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -988,7 +988,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
988
988
|
async def fetch_funding_rate(self, symbol: str, params={}):
|
989
989
|
"""
|
990
990
|
fetch the current funding rate
|
991
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
|
991
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
|
992
992
|
:param str symbol: unified market symbol
|
993
993
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
994
994
|
:returns dict: a `funding rate structure <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure>`
|
@@ -1053,7 +1053,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1053
1053
|
async def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1054
1054
|
"""
|
1055
1055
|
fetches historical funding rate prices
|
1056
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
|
1056
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
|
1057
1057
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
1058
1058
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
1059
1059
|
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
@@ -1115,7 +1115,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1115
1115
|
async def fetch_open_interest(self, symbol: str, params={}):
|
1116
1116
|
"""
|
1117
1117
|
Retrieves the open interest of a currency
|
1118
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
|
1118
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
|
1119
1119
|
:param str symbol: Unified CCXT market symbol
|
1120
1120
|
:param dict [params]: exchange specific parameters
|
1121
1121
|
:returns dict} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure:
|
@@ -1166,8 +1166,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1166
1166
|
async def fetch_ticker(self, symbol: str, params={}):
|
1167
1167
|
"""
|
1168
1168
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1169
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1170
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#24%E5%B0%8F%E6%97%B6%E4%BB%B7%E6%A0%BC%E5%8F%98%E5%8A%A8%E6%83%85%E5%86%B5
|
1169
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1170
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#24%E5%B0%8F%E6%97%B6%E4%BB%B7%E6%A0%BC%E5%8F%98%E5%8A%A8%E6%83%85%E5%86%B5
|
1171
1171
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1172
1172
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1173
1173
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1209,7 +1209,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1209
1209
|
async def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1210
1210
|
"""
|
1211
1211
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1212
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1212
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1213
1213
|
:param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1214
1214
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1215
1215
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1322,9 +1322,9 @@ class bingx(Exchange, ImplicitAPI):
|
|
1322
1322
|
async def fetch_balance(self, params={}):
|
1323
1323
|
"""
|
1324
1324
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1325
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
|
1326
|
-
see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
|
1327
|
-
see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1325
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
|
1326
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
|
1327
|
+
:see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1328
1328
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
1329
1329
|
:param boolean [params.standard]: whether to fetch standard contract balances
|
1330
1330
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
@@ -1432,8 +1432,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1432
1432
|
async def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
1433
1433
|
"""
|
1434
1434
|
fetch all open positions
|
1435
|
-
see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Perpetual%20Swap%20Positions
|
1436
|
-
see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1435
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/account-api.html#Perpetual%20Swap%20Positions
|
1436
|
+
:see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1437
1437
|
:param [str]|None symbols: list of unified market symbols
|
1438
1438
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1439
1439
|
:param boolean [params.standard]: whether to fetch standard contract positions
|
@@ -1538,8 +1538,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1538
1538
|
async def create_order(self, symbol: str, type, side: OrderSide, amount, price=None, params={}):
|
1539
1539
|
"""
|
1540
1540
|
create a trade order
|
1541
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Create%20an%20Order
|
1542
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Trade%20order
|
1541
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Create%20an%20Order
|
1542
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Trade%20order
|
1543
1543
|
:param str symbol: unified symbol of the market to create an order in
|
1544
1544
|
:param str type: 'market' or 'limit'
|
1545
1545
|
:param str side: 'buy' or 'sell'
|
@@ -1848,8 +1848,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1848
1848
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1849
1849
|
"""
|
1850
1850
|
cancels an open order
|
1851
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20an%20Order
|
1852
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20an%20Order
|
1851
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20an%20Order
|
1852
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20an%20Order
|
1853
1853
|
:param str id: order id
|
1854
1854
|
:param str symbol: unified symbol of the market the order was made in
|
1855
1855
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -1921,7 +1921,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1921
1921
|
async def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1922
1922
|
"""
|
1923
1923
|
cancel all open orders
|
1924
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
|
1924
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
|
1925
1925
|
:param str [symbol]: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1926
1926
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1927
1927
|
:returns [dict]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1969,8 +1969,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1969
1969
|
async def cancel_orders(self, ids: List[int], symbol: Optional[str] = None, params={}):
|
1970
1970
|
"""
|
1971
1971
|
cancel multiple orders
|
1972
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1973
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1972
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1973
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1974
1974
|
:param [str] ids: order ids
|
1975
1975
|
:param str symbol: unified market symbol, default is None
|
1976
1976
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -2028,8 +2028,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
2028
2028
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
2029
2029
|
"""
|
2030
2030
|
fetches information on an order made by the user
|
2031
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Orders
|
2032
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
|
2031
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Orders
|
2032
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
|
2033
2033
|
:param str symbol: unified symbol of the market the order was made in
|
2034
2034
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2035
2035
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -2104,8 +2104,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
2104
2104
|
|
2105
2105
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2106
2106
|
"""
|
2107
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Open%20Orders
|
2108
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20all%20current%20pending%20orders
|
2107
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Open%20Orders
|
2108
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20all%20current%20pending%20orders
|
2109
2109
|
fetch all unfilled currently open orders
|
2110
2110
|
:param str symbol: unified market symbol
|
2111
2111
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -2187,9 +2187,9 @@ class bingx(Exchange, ImplicitAPI):
|
|
2187
2187
|
async def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2188
2188
|
"""
|
2189
2189
|
fetches information on multiple closed orders made by the user
|
2190
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Order%20History
|
2191
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#User's%20Force%20Orders
|
2192
|
-
see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
|
2190
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Order%20History
|
2191
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#User's%20Force%20Orders
|
2192
|
+
:see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
|
2193
2193
|
:param str [symbol]: unified market symbol of the market orders were made in
|
2194
2194
|
:param int [since]: the earliest time in ms to fetch orders for
|
2195
2195
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -2276,7 +2276,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2276
2276
|
async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
2277
2277
|
"""
|
2278
2278
|
transfer currency internally between wallets on the same account
|
2279
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#User%20Universal%20Transfer
|
2279
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#User%20Universal%20Transfer
|
2280
2280
|
:param str code: unified currency code
|
2281
2281
|
:param float amount: amount to transfer
|
2282
2282
|
:param str fromAccount: account to transfer from
|
@@ -2315,7 +2315,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2315
2315
|
async def fetch_transfers(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2316
2316
|
"""
|
2317
2317
|
fetch a history of internal transfers made on an account
|
2318
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#Query%20User%20Universal%20Transfer%20History%20(USER_DATA)
|
2318
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#Query%20User%20Universal%20Transfer%20History%20(USER_DATA)
|
2319
2319
|
:param str [code]: unified currency code of the currency transferred
|
2320
2320
|
:param int [since]: the earliest time in ms to fetch transfers for
|
2321
2321
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -2386,7 +2386,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2386
2386
|
async def fetch_deposit_address(self, code: str, params={}):
|
2387
2387
|
"""
|
2388
2388
|
fetch the deposit address for a currency associated with self account
|
2389
|
-
see https://bingx-api.github.io/docs/#/common/sub-account#Query%20Main%20Account%20Deposit%20Address
|
2389
|
+
:see: https://bingx-api.github.io/docs/#/common/sub-account#Query%20Main%20Account%20Deposit%20Address
|
2390
2390
|
:param str code: unified currency code
|
2391
2391
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2392
2392
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -2452,7 +2452,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2452
2452
|
async def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2453
2453
|
"""
|
2454
2454
|
fetch all deposits made to an account
|
2455
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#Deposit%20History(supporting%20network)
|
2455
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#Deposit%20History(supporting%20network)
|
2456
2456
|
:param str [code]: unified currency code
|
2457
2457
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2458
2458
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2493,7 +2493,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2493
2493
|
async def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2494
2494
|
"""
|
2495
2495
|
fetch all withdrawals made from an account
|
2496
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#Withdraw%20History%20(supporting%20network)
|
2496
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#Withdraw%20History%20(supporting%20network)
|
2497
2497
|
:param str [code]: unified currency code
|
2498
2498
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2499
2499
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2631,7 +2631,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2631
2631
|
async def set_margin_mode(self, marginMode: str, symbol: Optional[str] = None, params={}):
|
2632
2632
|
"""
|
2633
2633
|
set margin mode to 'cross' or 'isolated'
|
2634
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Margin%20Mode
|
2634
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Margin%20Mode
|
2635
2635
|
:param str marginMode: 'cross' or 'isolated'
|
2636
2636
|
:param str symbol: unified market symbol
|
2637
2637
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -2656,7 +2656,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2656
2656
|
async def set_margin(self, symbol: str, amount, params={}):
|
2657
2657
|
"""
|
2658
2658
|
Either adds or reduces margin in an isolated position in order to set the margin to a specific value
|
2659
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Adjust%20isolated%20margin
|
2659
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Adjust%20isolated%20margin
|
2660
2660
|
:param str symbol: unified market symbol of the market to set margin in
|
2661
2661
|
:param float amount: the amount to set the margin to
|
2662
2662
|
:param dict [params]: parameters specific to the bingx api endpoint
|
@@ -2688,7 +2688,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2688
2688
|
async def fetch_leverage(self, symbol: str, params={}):
|
2689
2689
|
"""
|
2690
2690
|
fetch the set leverage for a market
|
2691
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
|
2691
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
|
2692
2692
|
:param str symbol: unified market symbol
|
2693
2693
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2694
2694
|
:returns dict: a `leverage structure <https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure>`
|
@@ -2714,7 +2714,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2714
2714
|
async def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
2715
2715
|
"""
|
2716
2716
|
set the level of leverage for a market
|
2717
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
|
2717
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
|
2718
2718
|
:param float leverage: the rate of leverage
|
2719
2719
|
:param str symbol: unified market symbol
|
2720
2720
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -2745,7 +2745,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2745
2745
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2746
2746
|
"""
|
2747
2747
|
fetch all trades made by the user
|
2748
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20historical%20transaction%20orders
|
2748
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20historical%20transaction%20orders
|
2749
2749
|
:param str [symbol]: unified market symbol
|
2750
2750
|
:param int [since]: the earliest time in ms to fetch trades for
|
2751
2751
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2854,7 +2854,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2854
2854
|
async def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
2855
2855
|
"""
|
2856
2856
|
fetch deposit and withdraw fees
|
2857
|
-
see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
2857
|
+
:see: https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
2858
2858
|
:param [str]|None codes: list of unified currency codes
|
2859
2859
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2860
2860
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -2867,7 +2867,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2867
2867
|
async def withdraw(self, code: str, amount, address, tag=None, params={}):
|
2868
2868
|
"""
|
2869
2869
|
make a withdrawal
|
2870
|
-
see https://bingx-api.github.io/docs/#/common/account-api.html#Withdraw
|
2870
|
+
:see: https://bingx-api.github.io/docs/#/common/account-api.html#Withdraw
|
2871
2871
|
:param str code: unified currency code
|
2872
2872
|
:param float amount: the amount to withdraw
|
2873
2873
|
:param str address: the address to withdraw to
|
ccxt/async_support/bitbank.py
CHANGED
@@ -163,7 +163,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
163
163
|
async def fetch_markets(self, params={}):
|
164
164
|
"""
|
165
165
|
retrieves data on all markets for bitbank
|
166
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
166
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
167
167
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
168
168
|
:returns dict[]: an array of objects representing market data
|
169
169
|
"""
|
@@ -288,7 +288,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
288
288
|
async def fetch_ticker(self, symbol: str, params={}):
|
289
289
|
"""
|
290
290
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
291
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#ticker
|
291
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#ticker
|
292
292
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
293
293
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
294
294
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -305,7 +305,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
305
305
|
async def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
306
306
|
"""
|
307
307
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
308
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#depth
|
308
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#depth
|
309
309
|
:param str symbol: unified symbol of the market to fetch the order book for
|
310
310
|
:param int [limit]: the maximum amount of order book entries to return
|
311
311
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
@@ -368,7 +368,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
368
368
|
async def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
369
369
|
"""
|
370
370
|
get the list of most recent trades for a particular symbol
|
371
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#transactions
|
371
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#transactions
|
372
372
|
:param str symbol: unified symbol of the market to fetch trades for
|
373
373
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
374
374
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -388,7 +388,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
388
388
|
async def fetch_trading_fees(self, params={}):
|
389
389
|
"""
|
390
390
|
fetch the trading fees for multiple markets
|
391
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
391
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
392
392
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
393
393
|
:returns dict: a dictionary of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>` indexed by market symbols
|
394
394
|
"""
|
@@ -463,7 +463,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
463
463
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
464
464
|
"""
|
465
465
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
466
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#candlestick
|
466
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#candlestick
|
467
467
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
468
468
|
:param str timeframe: the length of time each candle represents
|
469
469
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -530,7 +530,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
530
530
|
async def fetch_balance(self, params={}):
|
531
531
|
"""
|
532
532
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
533
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#assets
|
533
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#assets
|
534
534
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
535
535
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
536
536
|
"""
|
@@ -622,7 +622,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
622
622
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
623
623
|
"""
|
624
624
|
create a trade order
|
625
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#create-new-order
|
625
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#create-new-order
|
626
626
|
:param str symbol: unified symbol of the market to create an order in
|
627
627
|
:param str type: 'market' or 'limit'
|
628
628
|
:param str side: 'buy' or 'sell'
|
@@ -648,7 +648,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
648
648
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
649
649
|
"""
|
650
650
|
cancels an open order
|
651
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#cancel-order
|
651
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#cancel-order
|
652
652
|
:param str id: order id
|
653
653
|
:param str symbol: unified symbol of the market the order was made in
|
654
654
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
@@ -667,7 +667,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
667
667
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
668
668
|
"""
|
669
669
|
fetches information on an order made by the user
|
670
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
|
670
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
|
671
671
|
:param str symbol: unified symbol of the market the order was made in
|
672
672
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
673
673
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -685,7 +685,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
685
685
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
686
686
|
"""
|
687
687
|
fetch all unfilled currently open orders
|
688
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-active-orders
|
688
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-active-orders
|
689
689
|
:param str symbol: unified market symbol
|
690
690
|
:param int [since]: the earliest time in ms to fetch open orders for
|
691
691
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -709,7 +709,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
709
709
|
async def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
710
710
|
"""
|
711
711
|
fetch all trades made by the user
|
712
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-trade-history
|
712
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-trade-history
|
713
713
|
:param str symbol: unified market symbol
|
714
714
|
:param int [since]: the earliest time in ms to fetch trades for
|
715
715
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -734,7 +734,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
734
734
|
async def fetch_deposit_address(self, code: str, params={}):
|
735
735
|
"""
|
736
736
|
fetch the deposit address for a currency associated with self account
|
737
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-withdrawal-accounts
|
737
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-withdrawal-accounts
|
738
738
|
:param str code: unified currency code
|
739
739
|
:param dict [params]: extra parameters specific to the bitbank api endpoint
|
740
740
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -761,7 +761,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
761
761
|
async def withdraw(self, code: str, amount, address, tag=None, params={}):
|
762
762
|
"""
|
763
763
|
make a withdrawal
|
764
|
-
see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#new-withdrawal-request
|
764
|
+
:see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#new-withdrawal-request
|
765
765
|
:param str code: unified currency code
|
766
766
|
:param float amount: the amount to withdraw
|
767
767
|
:param str address: the address to withdraw to
|
ccxt/async_support/bitbns.py
CHANGED
@@ -568,8 +568,8 @@ class bitbns(Exchange, ImplicitAPI):
|
|
568
568
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
|
569
569
|
"""
|
570
570
|
create a trade order
|
571
|
-
see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/place-orders
|
572
|
-
see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/market-orders-quantity # market orders
|
571
|
+
:see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/place-orders
|
572
|
+
:see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/market-orders-quantity # market orders
|
573
573
|
:param str symbol: unified symbol of the market to create an order in
|
574
574
|
:param str type: 'market' or 'limit'
|
575
575
|
:param str side: 'buy' or 'sell'
|
@@ -624,8 +624,8 @@ class bitbns(Exchange, ImplicitAPI):
|
|
624
624
|
async def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
625
625
|
"""
|
626
626
|
cancels an open order
|
627
|
-
see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/cancel-orders
|
628
|
-
see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/cancel-stop-loss-orders
|
627
|
+
:see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/cancel-orders
|
628
|
+
:see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/cancel-stop-loss-orders
|
629
629
|
:param str id: order id
|
630
630
|
:param str symbol: unified symbol of the market the order was made in
|
631
631
|
:param dict [params]: extra parameters specific to the bitbns api endpoint
|
@@ -653,7 +653,7 @@ class bitbns(Exchange, ImplicitAPI):
|
|
653
653
|
async def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
654
654
|
"""
|
655
655
|
fetches information on an order made by the user
|
656
|
-
see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/order-status
|
656
|
+
:see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/order-status
|
657
657
|
:param str id: order id
|
658
658
|
:param str symbol: unified symbol of the market the order was made in
|
659
659
|
:param dict [params]: extra parameters specific to the bitbns api endpoint
|
@@ -703,8 +703,8 @@ class bitbns(Exchange, ImplicitAPI):
|
|
703
703
|
async def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
704
704
|
"""
|
705
705
|
fetch all unfilled currently open orders
|
706
|
-
see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/order-status-limit
|
707
|
-
see https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/order-status-limit/order-status-stop-limit
|
706
|
+
:see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/order-status-limit
|
707
|
+
:see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/order-status-limit/order-status-stop-limit
|
708
708
|
:param str symbol: unified market symbol
|
709
709
|
:param int [since]: the earliest time in ms to fetch open orders for
|
710
710
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
ccxt/async_support/bitfinex.py
CHANGED
@@ -415,7 +415,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
415
415
|
"""
|
416
416
|
* @deprecated
|
417
417
|
please use fetchDepositWithdrawFees instead
|
418
|
-
see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
418
|
+
:see: https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
419
419
|
:param str[]|None codes: list of unified currency codes
|
420
420
|
:param dict [params]: extra parameters specific to the bitfinex api endpoint
|
421
421
|
:returns dict[]: a list of `fees structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -447,7 +447,7 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
447
447
|
async def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
448
448
|
"""
|
449
449
|
fetch deposit and withdraw fees
|
450
|
-
see https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
450
|
+
:see: https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
451
451
|
:param str[]|None codes: list of unified currency codes
|
452
452
|
:param dict [params]: extra parameters specific to the bitfinex api endpoint
|
453
453
|
:returns dict[]: a list of `fees structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|