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/bingx.py
CHANGED
@@ -365,7 +365,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
365
365
|
def fetch_time(self, params={}):
|
366
366
|
"""
|
367
367
|
fetches the current integer timestamp in milliseconds from the bingx server
|
368
|
-
see https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
|
368
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/base-info.html#Get%20Server%20Time
|
369
369
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
370
370
|
:returns int: the current integer timestamp in milliseconds from the bingx server
|
371
371
|
"""
|
@@ -385,7 +385,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
385
385
|
def fetch_currencies(self, params={}):
|
386
386
|
"""
|
387
387
|
fetches all available currencies on an exchange
|
388
|
-
see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
|
388
|
+
:see: https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins
|
389
389
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
390
390
|
:returns dict: an associative dictionary of currencies
|
391
391
|
"""
|
@@ -624,8 +624,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
624
624
|
def fetch_markets(self, params={}):
|
625
625
|
"""
|
626
626
|
retrieves data on all markets for bingx
|
627
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
|
628
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
|
627
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20Symbols
|
628
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Contract%20Information
|
629
629
|
:param dict [params]: extra parameters specific to the exchange api endpoint
|
630
630
|
:returns [dict]: an array of objects representing market data
|
631
631
|
"""
|
@@ -638,9 +638,9 @@ class bingx(Exchange, ImplicitAPI):
|
|
638
638
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
639
639
|
"""
|
640
640
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
641
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#K-Line%20Data
|
642
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Candlestick%20chart%20data
|
643
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#%20K-Line%20Data
|
641
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#K-Line%20Data
|
642
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Candlestick%20chart%20data
|
643
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#%20K-Line%20Data
|
644
644
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
645
645
|
:param str timeframe: the length of time each candle represents
|
646
646
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -738,8 +738,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
738
738
|
def fetch_trades(self, symbol: str, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
739
739
|
"""
|
740
740
|
get the list of most recent trades for a particular symbol
|
741
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20transaction%20records
|
742
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#The%20latest%20Trade%20of%20a%20Trading%20Pair
|
741
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20transaction%20records
|
742
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#The%20latest%20Trade%20of%20a%20Trading%20Pair
|
743
743
|
:param str symbol: unified symbol of the market to fetch trades for
|
744
744
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
745
745
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -902,8 +902,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
902
902
|
def fetch_order_book(self, symbol: str, limit: Optional[int] = None, params={}):
|
903
903
|
"""
|
904
904
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
905
|
-
see https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20depth%20information
|
906
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
|
905
|
+
:see: https://bingx-api.github.io/docs/#/spot/market-api.html#Query%20depth%20information
|
906
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Market%20Depth
|
907
907
|
:param str symbol: unified symbol of the market to fetch the order book for
|
908
908
|
:param int [limit]: the maximum amount of order book entries to return
|
909
909
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -987,7 +987,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
987
987
|
def fetch_funding_rate(self, symbol: str, params={}):
|
988
988
|
"""
|
989
989
|
fetch the current funding rate
|
990
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
|
990
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Current%20Funding%20Rate
|
991
991
|
:param str symbol: unified market symbol
|
992
992
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
993
993
|
:returns dict: a `funding rate structure <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure>`
|
@@ -1052,7 +1052,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1052
1052
|
def fetch_funding_rate_history(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
1053
1053
|
"""
|
1054
1054
|
fetches historical funding rate prices
|
1055
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
|
1055
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Funding%20Rate%20History
|
1056
1056
|
:param str symbol: unified symbol of the market to fetch the funding rate history for
|
1057
1057
|
:param int [since]: timestamp in ms of the earliest funding rate to fetch
|
1058
1058
|
:param int [limit]: the maximum amount of `funding rate structures <https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure>` to fetch
|
@@ -1114,7 +1114,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1114
1114
|
def fetch_open_interest(self, symbol: str, params={}):
|
1115
1115
|
"""
|
1116
1116
|
Retrieves the open interest of a currency
|
1117
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
|
1117
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Swap%20Open%20Positions
|
1118
1118
|
:param str symbol: Unified CCXT market symbol
|
1119
1119
|
:param dict [params]: exchange specific parameters
|
1120
1120
|
:returns dict} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure:
|
@@ -1165,8 +1165,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1165
1165
|
def fetch_ticker(self, symbol: str, params={}):
|
1166
1166
|
"""
|
1167
1167
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1168
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1169
|
-
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
|
1168
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1169
|
+
: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
|
1170
1170
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1171
1171
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1172
1172
|
:returns dict: a `ticker structure <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1208,7 +1208,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1208
1208
|
def fetch_tickers(self, symbols: Optional[List[str]] = None, params={}):
|
1209
1209
|
"""
|
1210
1210
|
fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
1211
|
-
see https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1211
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/market-api.html#Get%20Ticker
|
1212
1212
|
:param [str]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1213
1213
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1214
1214
|
:returns dict: a dictionary of `ticker structures <https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure>`
|
@@ -1321,9 +1321,9 @@ class bingx(Exchange, ImplicitAPI):
|
|
1321
1321
|
def fetch_balance(self, params={}):
|
1322
1322
|
"""
|
1323
1323
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1324
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
|
1325
|
-
see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
|
1326
|
-
see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1324
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Assets
|
1325
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/account-api.html#Get%20Perpetual%20Swap%20Account%20Asset%20Information
|
1326
|
+
:see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1327
1327
|
:param dict [params]: extra parameters specific to the cryptocom api endpoint
|
1328
1328
|
:param boolean [params.standard]: whether to fetch standard contract balances
|
1329
1329
|
:returns dict: a `balance structure <https://github.com/ccxt/ccxt/wiki/Manual#balance-structure>`
|
@@ -1431,8 +1431,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1431
1431
|
def fetch_positions(self, symbols: Optional[List[str]] = None, params={}):
|
1432
1432
|
"""
|
1433
1433
|
fetch all open positions
|
1434
|
-
see https://bingx-api.github.io/docs/#/swapV2/account-api.html#Perpetual%20Swap%20Positions
|
1435
|
-
see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1434
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/account-api.html#Perpetual%20Swap%20Positions
|
1435
|
+
:see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Query%20standard%20contract%20balance
|
1436
1436
|
:param [str]|None symbols: list of unified market symbols
|
1437
1437
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1438
1438
|
:param boolean [params.standard]: whether to fetch standard contract positions
|
@@ -1537,8 +1537,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1537
1537
|
def create_order(self, symbol: str, type, side: OrderSide, amount, price=None, params={}):
|
1538
1538
|
"""
|
1539
1539
|
create a trade order
|
1540
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Create%20an%20Order
|
1541
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Trade%20order
|
1540
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Create%20an%20Order
|
1541
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Trade%20order
|
1542
1542
|
:param str symbol: unified symbol of the market to create an order in
|
1543
1543
|
:param str type: 'market' or 'limit'
|
1544
1544
|
:param str side: 'buy' or 'sell'
|
@@ -1847,8 +1847,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1847
1847
|
def cancel_order(self, id: str, symbol: Optional[str] = None, params={}):
|
1848
1848
|
"""
|
1849
1849
|
cancels an open order
|
1850
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20an%20Order
|
1851
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20an%20Order
|
1850
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20an%20Order
|
1851
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20an%20Order
|
1852
1852
|
:param str id: order id
|
1853
1853
|
:param str symbol: unified symbol of the market the order was made in
|
1854
1854
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -1920,7 +1920,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
1920
1920
|
def cancel_all_orders(self, symbol: Optional[str] = None, params={}):
|
1921
1921
|
"""
|
1922
1922
|
cancel all open orders
|
1923
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
|
1923
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20All%20Orders
|
1924
1924
|
:param str [symbol]: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1925
1925
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
1926
1926
|
:returns [dict]: a list of `order structures <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -1968,8 +1968,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
1968
1968
|
def cancel_orders(self, ids: List[int], symbol: Optional[str] = None, params={}):
|
1969
1969
|
"""
|
1970
1970
|
cancel multiple orders
|
1971
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1972
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1971
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1972
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Cancel%20a%20Batch%20of%20Orders
|
1973
1973
|
:param [str] ids: order ids
|
1974
1974
|
:param str symbol: unified market symbol, default is None
|
1975
1975
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -2027,8 +2027,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
2027
2027
|
def fetch_order(self, id: str, symbol: Optional[str] = None, params={}):
|
2028
2028
|
"""
|
2029
2029
|
fetches information on an order made by the user
|
2030
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Orders
|
2031
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
|
2030
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Orders
|
2031
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Order
|
2032
2032
|
:param str symbol: unified symbol of the market the order was made in
|
2033
2033
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2034
2034
|
:returns dict: An `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
@@ -2103,8 +2103,8 @@ class bingx(Exchange, ImplicitAPI):
|
|
2103
2103
|
|
2104
2104
|
def fetch_open_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2105
2105
|
"""
|
2106
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Open%20Orders
|
2107
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20all%20current%20pending%20orders
|
2106
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Open%20Orders
|
2107
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20all%20current%20pending%20orders
|
2108
2108
|
fetch all unfilled currently open orders
|
2109
2109
|
:param str symbol: unified market symbol
|
2110
2110
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -2186,9 +2186,9 @@ class bingx(Exchange, ImplicitAPI):
|
|
2186
2186
|
def fetch_closed_orders(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2187
2187
|
"""
|
2188
2188
|
fetches information on multiple closed orders made by the user
|
2189
|
-
see https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Order%20History
|
2190
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#User's%20Force%20Orders
|
2191
|
-
see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
|
2189
|
+
:see: https://bingx-api.github.io/docs/#/spot/trade-api.html#Query%20Order%20History
|
2190
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#User's%20Force%20Orders
|
2191
|
+
:see: https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
|
2192
2192
|
:param str [symbol]: unified market symbol of the market orders were made in
|
2193
2193
|
:param int [since]: the earliest time in ms to fetch orders for
|
2194
2194
|
:param int [limit]: the maximum number of orde structures to retrieve
|
@@ -2275,7 +2275,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2275
2275
|
def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
|
2276
2276
|
"""
|
2277
2277
|
transfer currency internally between wallets on the same account
|
2278
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#User%20Universal%20Transfer
|
2278
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#User%20Universal%20Transfer
|
2279
2279
|
:param str code: unified currency code
|
2280
2280
|
:param float amount: amount to transfer
|
2281
2281
|
:param str fromAccount: account to transfer from
|
@@ -2314,7 +2314,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2314
2314
|
def fetch_transfers(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2315
2315
|
"""
|
2316
2316
|
fetch a history of internal transfers made on an account
|
2317
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#Query%20User%20Universal%20Transfer%20History%20(USER_DATA)
|
2317
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#Query%20User%20Universal%20Transfer%20History%20(USER_DATA)
|
2318
2318
|
:param str [code]: unified currency code of the currency transferred
|
2319
2319
|
:param int [since]: the earliest time in ms to fetch transfers for
|
2320
2320
|
:param int [limit]: the maximum number of transfers structures to retrieve
|
@@ -2385,7 +2385,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2385
2385
|
def fetch_deposit_address(self, code: str, params={}):
|
2386
2386
|
"""
|
2387
2387
|
fetch the deposit address for a currency associated with self account
|
2388
|
-
see https://bingx-api.github.io/docs/#/common/sub-account#Query%20Main%20Account%20Deposit%20Address
|
2388
|
+
:see: https://bingx-api.github.io/docs/#/common/sub-account#Query%20Main%20Account%20Deposit%20Address
|
2389
2389
|
:param str code: unified currency code
|
2390
2390
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2391
2391
|
:returns dict: an `address structure <https://github.com/ccxt/ccxt/wiki/Manual#address-structure>`
|
@@ -2451,7 +2451,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2451
2451
|
def fetch_deposits(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2452
2452
|
"""
|
2453
2453
|
fetch all deposits made to an account
|
2454
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#Deposit%20History(supporting%20network)
|
2454
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#Deposit%20History(supporting%20network)
|
2455
2455
|
:param str [code]: unified currency code
|
2456
2456
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2457
2457
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2492,7 +2492,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2492
2492
|
def fetch_withdrawals(self, code: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2493
2493
|
"""
|
2494
2494
|
fetch all withdrawals made from an account
|
2495
|
-
see https://bingx-api.github.io/docs/#/spot/account-api.html#Withdraw%20History%20(supporting%20network)
|
2495
|
+
:see: https://bingx-api.github.io/docs/#/spot/account-api.html#Withdraw%20History%20(supporting%20network)
|
2496
2496
|
:param str [code]: unified currency code
|
2497
2497
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2498
2498
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2630,7 +2630,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2630
2630
|
def set_margin_mode(self, marginMode: str, symbol: Optional[str] = None, params={}):
|
2631
2631
|
"""
|
2632
2632
|
set margin mode to 'cross' or 'isolated'
|
2633
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Margin%20Mode
|
2633
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Margin%20Mode
|
2634
2634
|
:param str marginMode: 'cross' or 'isolated'
|
2635
2635
|
:param str symbol: unified market symbol
|
2636
2636
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -2655,7 +2655,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2655
2655
|
def set_margin(self, symbol: str, amount, params={}):
|
2656
2656
|
"""
|
2657
2657
|
Either adds or reduces margin in an isolated position in order to set the margin to a specific value
|
2658
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Adjust%20isolated%20margin
|
2658
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Adjust%20isolated%20margin
|
2659
2659
|
:param str symbol: unified market symbol of the market to set margin in
|
2660
2660
|
:param float amount: the amount to set the margin to
|
2661
2661
|
:param dict [params]: parameters specific to the bingx api endpoint
|
@@ -2687,7 +2687,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2687
2687
|
def fetch_leverage(self, symbol: str, params={}):
|
2688
2688
|
"""
|
2689
2689
|
fetch the set leverage for a market
|
2690
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
|
2690
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20Leverage
|
2691
2691
|
:param str symbol: unified market symbol
|
2692
2692
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2693
2693
|
:returns dict: a `leverage structure <https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure>`
|
@@ -2713,7 +2713,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2713
2713
|
def set_leverage(self, leverage, symbol: Optional[str] = None, params={}):
|
2714
2714
|
"""
|
2715
2715
|
set the level of leverage for a market
|
2716
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
|
2716
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
|
2717
2717
|
:param float leverage: the rate of leverage
|
2718
2718
|
:param str symbol: unified market symbol
|
2719
2719
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
@@ -2744,7 +2744,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2744
2744
|
def fetch_my_trades(self, symbol: Optional[str] = None, since: Optional[int] = None, limit: Optional[int] = None, params={}):
|
2745
2745
|
"""
|
2746
2746
|
fetch all trades made by the user
|
2747
|
-
see https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20historical%20transaction%20orders
|
2747
|
+
:see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Query%20historical%20transaction%20orders
|
2748
2748
|
:param str [symbol]: unified market symbol
|
2749
2749
|
:param int [since]: the earliest time in ms to fetch trades for
|
2750
2750
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2853,7 +2853,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2853
2853
|
def fetch_deposit_withdraw_fees(self, codes: Optional[List[str]] = None, params={}):
|
2854
2854
|
"""
|
2855
2855
|
fetch deposit and withdraw fees
|
2856
|
-
see https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
2856
|
+
:see: https://bingx-api.github.io/docs/#/common/account-api.html#All%20Coins'%20Information
|
2857
2857
|
:param [str]|None codes: list of unified currency codes
|
2858
2858
|
:param dict [params]: extra parameters specific to the bingx api endpoint
|
2859
2859
|
:returns dict: a list of `fee structures <https://github.com/ccxt/ccxt/wiki/Manual#fee-structure>`
|
@@ -2866,7 +2866,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
2866
2866
|
def withdraw(self, code: str, amount, address, tag=None, params={}):
|
2867
2867
|
"""
|
2868
2868
|
make a withdrawal
|
2869
|
-
see https://bingx-api.github.io/docs/#/common/account-api.html#Withdraw
|
2869
|
+
:see: https://bingx-api.github.io/docs/#/common/account-api.html#Withdraw
|
2870
2870
|
:param str code: unified currency code
|
2871
2871
|
:param float amount: the amount to withdraw
|
2872
2872
|
:param str address: the address to withdraw to
|
ccxt/bitbank.py
CHANGED
@@ -163,7 +163,7 @@ class bitbank(Exchange, ImplicitAPI):
|
|
163
163
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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/bitbns.py
CHANGED
@@ -568,8 +568,8 @@ class bitbns(Exchange, ImplicitAPI):
|
|
568
568
|
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
|
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
|
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
|
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/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
|
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>`
|