ccxt 4.4.29__py2.py3-none-any.whl → 4.4.31__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -1
- ccxt/abstract/alpaca.py +1 -0
- ccxt/abstract/binance.py +9 -0
- ccxt/abstract/binancecoinm.py +9 -0
- ccxt/abstract/binanceus.py +9 -0
- ccxt/abstract/binanceusdm.py +9 -0
- ccxt/ace.py +36 -12
- ccxt/alpaca.py +113 -28
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +113 -28
- ccxt/async_support/ascendex.py +65 -30
- ccxt/async_support/base/exchange.py +3 -3
- ccxt/async_support/bigone.py +71 -27
- ccxt/async_support/binance.py +564 -323
- ccxt/async_support/bingx.py +208 -108
- ccxt/async_support/bit2c.py +34 -12
- ccxt/async_support/bitbank.py +42 -14
- ccxt/async_support/bitbns.py +29 -21
- ccxt/async_support/bitfinex.py +77 -33
- ccxt/async_support/bitfinex2.py +116 -44
- ccxt/async_support/bitflyer.py +54 -18
- ccxt/async_support/bitget.py +277 -145
- ccxt/async_support/bithumb.py +39 -14
- ccxt/async_support/bitmart.py +198 -132
- ccxt/async_support/bitmex.py +90 -30
- ccxt/async_support/bitopro.py +66 -22
- ccxt/async_support/bitrue.py +109 -57
- ccxt/async_support/bitso.py +55 -19
- ccxt/async_support/bitstamp.py +84 -36
- ccxt/async_support/bitteam.py +51 -17
- ccxt/async_support/bitvavo.py +57 -19
- ccxt/async_support/bl3p.py +26 -10
- ccxt/async_support/blockchaincom.py +63 -21
- ccxt/async_support/blofin.py +95 -38
- ccxt/async_support/btcalpha.py +48 -16
- ccxt/async_support/btcbox.py +27 -9
- ccxt/async_support/btcmarkets.py +57 -19
- ccxt/async_support/btcturk.py +36 -12
- ccxt/async_support/bybit.py +251 -95
- ccxt/async_support/cex.py +65 -22
- ccxt/async_support/coinbase.py +138 -56
- ccxt/async_support/coinbaseexchange.py +76 -28
- ccxt/async_support/coinbaseinternational.py +75 -27
- ccxt/async_support/coincatch.py +191 -97
- ccxt/async_support/coincheck.py +33 -11
- ccxt/async_support/coinex.py +212 -101
- ccxt/async_support/coinlist.py +87 -30
- ccxt/async_support/coinmate.py +55 -24
- ccxt/async_support/coinmetro.py +52 -18
- ccxt/async_support/coinone.py +27 -10
- ccxt/async_support/coinsph.py +73 -27
- ccxt/async_support/coinspot.py +25 -9
- ccxt/async_support/cryptocom.py +103 -38
- ccxt/async_support/currencycom.py +70 -23
- ccxt/async_support/delta.py +90 -30
- ccxt/async_support/deribit.py +138 -53
- ccxt/async_support/digifinex.py +114 -51
- ccxt/async_support/exmo.py +104 -45
- ccxt/async_support/gate.py +298 -155
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +156 -73
- ccxt/async_support/hollaex.py +76 -25
- ccxt/async_support/htx.py +297 -240
- ccxt/async_support/huobijp.py +1 -0
- ccxt/async_support/hyperliquid.py +203 -42
- ccxt/async_support/idex.py +73 -24
- ccxt/async_support/independentreserve.py +12 -5
- ccxt/async_support/indodax.py +53 -16
- ccxt/async_support/kraken.py +107 -35
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +211 -109
- ccxt/async_support/kucoinfutures.py +119 -42
- ccxt/async_support/kuna.py +80 -39
- ccxt/async_support/latoken.py +70 -33
- ccxt/async_support/lbank.py +90 -39
- ccxt/async_support/luno.py +54 -19
- ccxt/async_support/lykke.py +54 -19
- ccxt/async_support/mercado.py +1 -0
- ccxt/async_support/mexc.py +226 -108
- ccxt/async_support/ndax.py +58 -19
- ccxt/async_support/novadax.py +67 -22
- ccxt/async_support/oceanex.py +58 -19
- ccxt/async_support/okcoin.py +81 -38
- ccxt/async_support/okx.py +270 -109
- ccxt/async_support/onetrading.py +3 -1
- ccxt/async_support/oxfun.py +95 -36
- ccxt/async_support/p2b.py +49 -23
- ccxt/async_support/paradex.py +75 -27
- ccxt/async_support/paymium.py +31 -11
- ccxt/async_support/phemex.py +91 -41
- ccxt/async_support/poloniex.py +80 -30
- ccxt/async_support/poloniexfutures.py +72 -30
- ccxt/async_support/probit.py +64 -22
- ccxt/async_support/timex.py +58 -19
- ccxt/async_support/tokocrypto.py +63 -22
- ccxt/async_support/tradeogre.py +7 -2
- ccxt/async_support/upbit.py +72 -25
- ccxt/async_support/vertex.py +74 -28
- ccxt/async_support/wavesexchange.py +29 -8
- ccxt/async_support/wazirx.py +51 -17
- ccxt/async_support/whitebit.py +105 -41
- ccxt/async_support/woo.py +162 -65
- ccxt/async_support/woofipro.py +118 -49
- ccxt/async_support/xt.py +150 -73
- ccxt/async_support/yobit.py +49 -16
- ccxt/async_support/zaif.py +30 -10
- ccxt/async_support/zonda.py +46 -16
- ccxt/base/exchange.py +34 -34
- ccxt/base/types.py +1 -0
- ccxt/bigone.py +71 -27
- ccxt/binance.py +564 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +29 -21
- ccxt/bitfinex.py +77 -33
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +198 -132
- ccxt/bitmex.py +90 -30
- ccxt/bitopro.py +66 -22
- ccxt/bitrue.py +109 -57
- ccxt/bitso.py +55 -19
- ccxt/bitstamp.py +84 -36
- ccxt/bitteam.py +51 -17
- ccxt/bitvavo.py +57 -19
- ccxt/bl3p.py +26 -10
- ccxt/blockchaincom.py +63 -21
- ccxt/blofin.py +95 -38
- ccxt/btcalpha.py +48 -16
- ccxt/btcbox.py +27 -9
- ccxt/btcmarkets.py +57 -19
- ccxt/btcturk.py +36 -12
- ccxt/bybit.py +251 -95
- ccxt/cex.py +65 -22
- ccxt/coinbase.py +138 -56
- ccxt/coinbaseexchange.py +76 -28
- ccxt/coinbaseinternational.py +75 -27
- ccxt/coincatch.py +191 -97
- ccxt/coincheck.py +33 -11
- ccxt/coinex.py +212 -101
- ccxt/coinlist.py +87 -30
- ccxt/coinmate.py +55 -24
- ccxt/coinmetro.py +52 -18
- ccxt/coinone.py +27 -10
- ccxt/coinsph.py +73 -27
- ccxt/coinspot.py +25 -9
- ccxt/cryptocom.py +103 -38
- ccxt/currencycom.py +70 -23
- ccxt/delta.py +90 -30
- ccxt/deribit.py +138 -53
- ccxt/digifinex.py +114 -51
- ccxt/exmo.py +104 -45
- ccxt/gate.py +298 -155
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +156 -73
- ccxt/hollaex.py +76 -25
- ccxt/htx.py +297 -240
- ccxt/huobijp.py +1 -0
- ccxt/hyperliquid.py +203 -42
- ccxt/idex.py +73 -24
- ccxt/independentreserve.py +12 -5
- ccxt/indodax.py +53 -16
- ccxt/kraken.py +107 -35
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +211 -109
- ccxt/kucoinfutures.py +119 -42
- ccxt/kuna.py +80 -39
- ccxt/latoken.py +70 -33
- ccxt/lbank.py +90 -39
- ccxt/luno.py +54 -19
- ccxt/lykke.py +54 -19
- ccxt/mercado.py +1 -0
- ccxt/mexc.py +226 -108
- ccxt/ndax.py +58 -19
- ccxt/novadax.py +67 -22
- ccxt/oceanex.py +58 -19
- ccxt/okcoin.py +81 -38
- ccxt/okx.py +270 -109
- ccxt/onetrading.py +3 -1
- ccxt/oxfun.py +95 -36
- ccxt/p2b.py +49 -23
- ccxt/paradex.py +75 -27
- ccxt/paymium.py +31 -11
- ccxt/phemex.py +91 -41
- ccxt/poloniex.py +80 -30
- ccxt/poloniexfutures.py +72 -30
- ccxt/pro/__init__.py +1 -1
- ccxt/pro/alpaca.py +15 -5
- ccxt/pro/ascendex.py +18 -6
- ccxt/pro/binance.py +200 -119
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +75 -36
- ccxt/pro/bithumb.py +12 -4
- ccxt/pro/bitmart.py +44 -20
- ccxt/pro/bitmex.py +42 -14
- ccxt/pro/bitopro.py +15 -5
- ccxt/pro/bitrue.py +7 -3
- ccxt/pro/bitvavo.py +51 -17
- ccxt/pro/blockchaincom.py +18 -6
- ccxt/pro/blofin.py +38 -13
- ccxt/pro/bybit.py +100 -42
- ccxt/pro/cex.py +48 -16
- ccxt/pro/coinbase.py +32 -12
- ccxt/pro/coinbaseexchange.py +1 -1
- ccxt/pro/coinbaseinternational.py +34 -14
- ccxt/pro/coincatch.py +54 -19
- ccxt/pro/coincheck.py +6 -2
- ccxt/pro/coinex.py +40 -20
- ccxt/pro/coinone.py +9 -3
- ccxt/pro/cryptocom.py +70 -26
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +64 -30
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +26 -8
- ccxt/pro/hitbtc.py +61 -37
- ccxt/pro/hollaex.py +15 -5
- ccxt/pro/htx.py +39 -21
- ccxt/pro/hyperliquid.py +41 -14
- ccxt/pro/kraken.py +49 -17
- ccxt/pro/krakenfutures.py +47 -24
- ccxt/pro/kucoin.py +60 -31
- ccxt/pro/kucoinfutures.py +41 -19
- ccxt/pro/lbank.py +27 -9
- ccxt/pro/luno.py +3 -1
- ccxt/pro/mexc.py +35 -17
- ccxt/pro/ndax.py +12 -4
- ccxt/pro/okcoin.py +18 -6
- ccxt/pro/okx.py +76 -28
- ccxt/pro/onetrading.py +21 -7
- ccxt/pro/oxfun.py +54 -20
- ccxt/pro/p2b.py +23 -11
- ccxt/pro/paradex.py +12 -4
- ccxt/pro/phemex.py +31 -19
- ccxt/pro/poloniex.py +50 -22
- ccxt/pro/poloniexfutures.py +17 -7
- ccxt/pro/probit.py +18 -6
- ccxt/pro/upbit.py +25 -9
- ccxt/pro/vertex.py +20 -6
- ccxt/pro/wazirx.py +21 -7
- ccxt/pro/whitebit.py +25 -9
- ccxt/pro/woo.py +32 -12
- ccxt/pro/woofipro.py +35 -13
- ccxt/pro/xt.py +46 -26
- ccxt/probit.py +64 -22
- ccxt/test/tests_helpers.py +2 -2
- ccxt/timex.py +58 -19
- ccxt/tokocrypto.py +63 -22
- ccxt/tradeogre.py +7 -2
- ccxt/upbit.py +72 -25
- ccxt/vertex.py +74 -28
- ccxt/wavesexchange.py +29 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +118 -49
- ccxt/xt.py +150 -73
- ccxt/yobit.py +49 -16
- ccxt/zaif.py +30 -10
- ccxt/zonda.py +46 -16
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/RECORD +273 -273
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.29.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/lbank.py
CHANGED
@@ -312,8 +312,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
312
312
|
def fetch_time(self, params={}):
|
313
313
|
"""
|
314
314
|
fetches the current integer timestamp in milliseconds from the exchange server
|
315
|
-
|
316
|
-
|
315
|
+
|
316
|
+
https://www.lbank.com/en-US/docs/index.html#get-timestamp
|
317
|
+
https://www.lbank.com/en-US/docs/contract.html#get-the-current-time
|
318
|
+
|
317
319
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
318
320
|
:returns int: the current integer timestamp in milliseconds from the exchange server
|
319
321
|
"""
|
@@ -349,8 +351,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
349
351
|
def fetch_markets(self, params={}) -> List[Market]:
|
350
352
|
"""
|
351
353
|
retrieves data on all markets for lbank
|
352
|
-
|
353
|
-
|
354
|
+
|
355
|
+
https://www.lbank.com/en-US/docs/index.html#trading-pairs
|
356
|
+
https://www.lbank.com/en-US/docs/contract.html#query-contract-information-list
|
357
|
+
|
354
358
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
355
359
|
:returns dict[]: an array of objects representing market data
|
356
360
|
"""
|
@@ -599,7 +603,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
599
603
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
600
604
|
"""
|
601
605
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
602
|
-
|
606
|
+
|
607
|
+
https://www.lbank.com/en-US/docs/index.html#query-current-market-data-new
|
608
|
+
|
603
609
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
604
610
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
605
611
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -641,8 +647,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
641
647
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
642
648
|
"""
|
643
649
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
644
|
-
|
645
|
-
|
650
|
+
|
651
|
+
https://www.lbank.com/en-US/docs/index.html#query-current-market-data-new
|
652
|
+
https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
|
653
|
+
|
646
654
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
647
655
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
648
656
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -715,8 +723,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
715
723
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
716
724
|
"""
|
717
725
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
718
|
-
|
719
|
-
|
726
|
+
|
727
|
+
https://www.lbank.com/en-US/docs/index.html#query-market-depth
|
728
|
+
https://www.lbank.com/en-US/docs/contract.html#get-handicap
|
729
|
+
|
720
730
|
:param str symbol: unified symbol of the market to fetch the order book for
|
721
731
|
:param int [limit]: the maximum amount of order book entries to return
|
722
732
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -888,8 +898,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
888
898
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
889
899
|
"""
|
890
900
|
get the list of most recent trades for a particular symbol
|
891
|
-
|
892
|
-
|
901
|
+
|
902
|
+
https://www.lbank.com/en-US/docs/index.html#query-historical-transactions
|
903
|
+
https://www.lbank.com/en-US/docs/index.html#recent-transactions-list
|
904
|
+
|
893
905
|
:param str symbol: unified symbol of the market to fetch trades for
|
894
906
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
895
907
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -958,7 +970,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
958
970
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
959
971
|
"""
|
960
972
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
961
|
-
|
973
|
+
|
974
|
+
https://www.lbank.com/en-US/docs/index.html#query-k-bar-data
|
975
|
+
|
962
976
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
963
977
|
:param str timeframe: the length of time each candle represents
|
964
978
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1158,7 +1172,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
1158
1172
|
intervalString = None
|
1159
1173
|
if positionFeeTime is not None:
|
1160
1174
|
interval = self.parse_to_int(positionFeeTime / 60 / 60)
|
1161
|
-
intervalString = interval + 'h'
|
1175
|
+
intervalString = str(interval) + 'h'
|
1162
1176
|
return {
|
1163
1177
|
'info': ticker,
|
1164
1178
|
'symbol': symbol,
|
@@ -1181,7 +1195,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1181
1195
|
def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
1182
1196
|
"""
|
1183
1197
|
fetch the current funding rate
|
1184
|
-
|
1198
|
+
|
1199
|
+
https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
|
1200
|
+
|
1185
1201
|
:param str symbol: unified market symbol
|
1186
1202
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1187
1203
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -1194,7 +1210,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1194
1210
|
def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
1195
1211
|
"""
|
1196
1212
|
fetch the funding rate for multiple markets
|
1197
|
-
|
1213
|
+
|
1214
|
+
https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
|
1215
|
+
|
1198
1216
|
:param str[]|None symbols: list of unified market symbols
|
1199
1217
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1200
1218
|
:returns dict: a dictionary of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rates-structure>`, indexed by market symbols
|
@@ -1235,9 +1253,11 @@ class lbank(Exchange, ImplicitAPI):
|
|
1235
1253
|
def fetch_balance(self, params={}) -> Balances:
|
1236
1254
|
"""
|
1237
1255
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1256
|
+
|
1257
|
+
https://www.lbank.com/en-US/docs/index.html#asset-information
|
1258
|
+
https://www.lbank.com/en-US/docs/index.html#account-information
|
1259
|
+
https://www.lbank.com/en-US/docs/index.html#get-all-coins-information
|
1260
|
+
|
1241
1261
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1242
1262
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
1243
1263
|
"""
|
@@ -1306,7 +1326,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1306
1326
|
def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
1307
1327
|
"""
|
1308
1328
|
fetch the trading fees for a market
|
1309
|
-
|
1329
|
+
|
1330
|
+
https://www.lbank.com/en-US/docs/index.html#transaction-fee-rate-query
|
1331
|
+
|
1310
1332
|
:param str symbol: unified market symbol
|
1311
1333
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1312
1334
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -1318,7 +1340,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1318
1340
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
1319
1341
|
"""
|
1320
1342
|
fetch the trading fees for multiple markets
|
1321
|
-
|
1343
|
+
|
1344
|
+
https://www.lbank.com/en-US/docs/index.html#transaction-fee-rate-query
|
1345
|
+
|
1322
1346
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1323
1347
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
1324
1348
|
"""
|
@@ -1336,8 +1360,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
1336
1360
|
def create_market_buy_order_with_cost(self, symbol: str, cost: float, params={}):
|
1337
1361
|
"""
|
1338
1362
|
create a market buy order by providing the symbol and cost
|
1339
|
-
|
1340
|
-
|
1363
|
+
|
1364
|
+
https://www.lbank.com/en-US/docs/index.html#place-order
|
1365
|
+
https://www.lbank.com/en-US/docs/index.html#place-an-order
|
1366
|
+
|
1341
1367
|
:param str symbol: unified symbol of the market to create an order in
|
1342
1368
|
:param float cost: how much you want to trade in units of the quote currency
|
1343
1369
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1353,8 +1379,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
1353
1379
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1354
1380
|
"""
|
1355
1381
|
create a trade order
|
1356
|
-
|
1357
|
-
|
1382
|
+
|
1383
|
+
https://www.lbank.com/en-US/docs/index.html#place-order
|
1384
|
+
https://www.lbank.com/en-US/docs/index.html#place-an-order
|
1385
|
+
|
1358
1386
|
:param str symbol: unified symbol of the market to create an order in
|
1359
1387
|
:param str type: 'market' or 'limit'
|
1360
1388
|
:param str side: 'buy' or 'sell'
|
@@ -1595,8 +1623,11 @@ class lbank(Exchange, ImplicitAPI):
|
|
1595
1623
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1596
1624
|
"""
|
1597
1625
|
fetches information on an order made by the user
|
1598
|
-
|
1599
|
-
|
1626
|
+
|
1627
|
+
https://www.lbank.com/en-US/docs/index.html#query-order
|
1628
|
+
https://www.lbank.com/en-US/docs/index.html#query-order-new
|
1629
|
+
|
1630
|
+
:param str id: order id
|
1600
1631
|
:param str symbol: unified symbol of the market the order was made in
|
1601
1632
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1602
1633
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1691,7 +1722,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1691
1722
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1692
1723
|
"""
|
1693
1724
|
fetch all trades made by the user
|
1694
|
-
|
1725
|
+
|
1726
|
+
https://www.lbank.com/en-US/docs/index.html#past-transaction-details
|
1727
|
+
|
1695
1728
|
:param str symbol: unified market symbol
|
1696
1729
|
:param int [since]: the earliest time in ms to fetch trades for
|
1697
1730
|
:param int [limit]: the maximum number of trade structures to retrieve
|
@@ -1745,7 +1778,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1745
1778
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1746
1779
|
"""
|
1747
1780
|
fetches information on multiple orders made by the user
|
1748
|
-
|
1781
|
+
|
1782
|
+
https://www.lbank.com/en-US/docs/index.html#query-all-orders
|
1783
|
+
|
1749
1784
|
:param str symbol: unified market symbol of the market orders were made in
|
1750
1785
|
:param int [since]: the earliest time in ms to fetch orders for
|
1751
1786
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1801,7 +1836,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1801
1836
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1802
1837
|
"""
|
1803
1838
|
fetch all unfilled currently open orders
|
1804
|
-
|
1839
|
+
|
1840
|
+
https://www.lbank.com/en-US/docs/index.html#current-pending-order
|
1841
|
+
|
1805
1842
|
:param str symbol: unified market symbol
|
1806
1843
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1807
1844
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -1854,7 +1891,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1854
1891
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1855
1892
|
"""
|
1856
1893
|
cancels an open order
|
1857
|
-
|
1894
|
+
|
1895
|
+
https://www.lbank.com/en-US/docs/index.html#cancel-order-new
|
1896
|
+
|
1858
1897
|
:param str id: order id
|
1859
1898
|
:param str symbol: unified symbol of the market the order was made in
|
1860
1899
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1892,7 +1931,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
1892
1931
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1893
1932
|
"""
|
1894
1933
|
cancel all open orders in a market
|
1895
|
-
|
1934
|
+
|
1935
|
+
https://www.lbank.com/en-US/docs/index.html#cancel-all-pending-orders-for-a-single-trading-pair
|
1936
|
+
|
1896
1937
|
:param str symbol: unified market symbol of the market to cancel orders in
|
1897
1938
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1898
1939
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1936,8 +1977,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
1936
1977
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1937
1978
|
"""
|
1938
1979
|
fetch the deposit address for a currency associated with self account
|
1939
|
-
|
1940
|
-
|
1980
|
+
|
1981
|
+
https://www.lbank.com/en-US/docs/index.html#get-deposit-address
|
1982
|
+
https://www.lbank.com/en-US/docs/index.html#the-user-obtains-the-deposit-address
|
1983
|
+
|
1941
1984
|
:param str code: unified currency code
|
1942
1985
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1943
1986
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2034,7 +2077,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
2034
2077
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2035
2078
|
"""
|
2036
2079
|
make a withdrawal
|
2037
|
-
|
2080
|
+
|
2081
|
+
https://www.lbank.com/en-US/docs/index.html#withdrawal
|
2082
|
+
|
2038
2083
|
:param str code: unified currency code
|
2039
2084
|
:param float amount: the amount to withdraw
|
2040
2085
|
:param str address: the address to withdraw to
|
@@ -2191,7 +2236,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
2191
2236
|
def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2192
2237
|
"""
|
2193
2238
|
fetch all deposits made to an account
|
2194
|
-
|
2239
|
+
|
2240
|
+
https://www.lbank.com/en-US/docs/index.html#get-recharge-history
|
2241
|
+
|
2195
2242
|
:param str code: unified currency code
|
2196
2243
|
:param int [since]: the earliest time in ms to fetch deposits for
|
2197
2244
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -2240,7 +2287,9 @@ class lbank(Exchange, ImplicitAPI):
|
|
2240
2287
|
def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2241
2288
|
"""
|
2242
2289
|
fetch all withdrawals made from an account
|
2243
|
-
|
2290
|
+
|
2291
|
+
https://www.lbank.com/en-US/docs/index.html#get-withdrawal-history
|
2292
|
+
|
2244
2293
|
:param str code: unified currency code
|
2245
2294
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
2246
2295
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -2292,7 +2341,7 @@ class lbank(Exchange, ImplicitAPI):
|
|
2292
2341
|
|
2293
2342
|
def fetch_transaction_fees(self, codes: Strings = None, params={}):
|
2294
2343
|
"""
|
2295
|
-
|
2344
|
+
@deprecated
|
2296
2345
|
please use fetchDepositWithdrawFees instead
|
2297
2346
|
:param str[]|None codes: not used by lbank fetchTransactionFees()
|
2298
2347
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2428,8 +2477,10 @@ class lbank(Exchange, ImplicitAPI):
|
|
2428
2477
|
def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
2429
2478
|
"""
|
2430
2479
|
when using private endpoint, only returns information for currencies with non-zero balance, use public method by specifying self.options['fetchDepositWithdrawFees']['method'] = 'fetchPublicDepositWithdrawFees'
|
2431
|
-
|
2432
|
-
|
2480
|
+
|
2481
|
+
https://www.lbank.com/en-US/docs/index.html#get-all-coins-information
|
2482
|
+
https://www.lbank.com/en-US/docs/index.html#withdrawal-configurations
|
2483
|
+
|
2433
2484
|
:param str[] [codes]: array of unified currency codes
|
2434
2485
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2435
2486
|
:returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
ccxt/luno.py
CHANGED
@@ -188,7 +188,9 @@ class luno(Exchange, ImplicitAPI):
|
|
188
188
|
def fetch_markets(self, params={}) -> List[Market]:
|
189
189
|
"""
|
190
190
|
retrieves data on all markets for luno
|
191
|
-
|
191
|
+
|
192
|
+
https://www.luno.com/en/developers/api#tag/Market/operation/Markets
|
193
|
+
|
192
194
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
193
195
|
:returns dict[]: an array of objects representing market data
|
194
196
|
"""
|
@@ -276,7 +278,9 @@ class luno(Exchange, ImplicitAPI):
|
|
276
278
|
def fetch_accounts(self, params={}) -> List[Account]:
|
277
279
|
"""
|
278
280
|
fetch all the accounts associated with a profile
|
279
|
-
|
281
|
+
|
282
|
+
https://www.luno.com/en/developers/api#tag/Accounts/operation/getBalances
|
283
|
+
|
280
284
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
281
285
|
:returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
|
282
286
|
"""
|
@@ -325,7 +329,9 @@ class luno(Exchange, ImplicitAPI):
|
|
325
329
|
def fetch_balance(self, params={}) -> Balances:
|
326
330
|
"""
|
327
331
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
328
|
-
|
332
|
+
|
333
|
+
https://www.luno.com/en/developers/api#tag/Accounts/operation/getBalances
|
334
|
+
|
329
335
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
330
336
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
331
337
|
"""
|
@@ -346,8 +352,10 @@ class luno(Exchange, ImplicitAPI):
|
|
346
352
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
347
353
|
"""
|
348
354
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
349
|
-
|
350
|
-
|
355
|
+
|
356
|
+
https://www.luno.com/en/developers/api#tag/Market/operation/GetOrderBookFull
|
357
|
+
https://www.luno.com/en/developers/api#tag/Market/operation/GetOrderBook
|
358
|
+
|
351
359
|
:param str symbol: unified symbol of the market to fetch the order book for
|
352
360
|
:param int [limit]: the maximum amount of order book entries to return
|
353
361
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -448,7 +456,10 @@ class luno(Exchange, ImplicitAPI):
|
|
448
456
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
449
457
|
"""
|
450
458
|
fetches information on an order made by the user
|
451
|
-
|
459
|
+
|
460
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/GetOrder
|
461
|
+
|
462
|
+
:param str id: order id
|
452
463
|
:param str symbol: not used by luno fetchOrder
|
453
464
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
454
465
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -476,7 +487,9 @@ class luno(Exchange, ImplicitAPI):
|
|
476
487
|
def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
477
488
|
"""
|
478
489
|
fetches information on multiple orders made by the user
|
479
|
-
|
490
|
+
|
491
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
|
492
|
+
|
480
493
|
:param str symbol: unified market symbol of the market orders were made in
|
481
494
|
:param int [since]: the earliest time in ms to fetch orders for
|
482
495
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -488,7 +501,9 @@ class luno(Exchange, ImplicitAPI):
|
|
488
501
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
489
502
|
"""
|
490
503
|
fetch all unfilled currently open orders
|
491
|
-
|
504
|
+
|
505
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
|
506
|
+
|
492
507
|
:param str symbol: unified market symbol
|
493
508
|
:param int [since]: the earliest time in ms to fetch open orders for
|
494
509
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -500,7 +515,9 @@ class luno(Exchange, ImplicitAPI):
|
|
500
515
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
501
516
|
"""
|
502
517
|
fetches information on multiple closed orders made by the user
|
503
|
-
|
518
|
+
|
519
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
|
520
|
+
|
504
521
|
:param str symbol: unified market symbol of the market orders were made in
|
505
522
|
:param int [since]: the earliest time in ms to fetch orders for
|
506
523
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -549,7 +566,9 @@ class luno(Exchange, ImplicitAPI):
|
|
549
566
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
550
567
|
"""
|
551
568
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
552
|
-
|
569
|
+
|
570
|
+
https://www.luno.com/en/developers/api#tag/Market/operation/GetTickers
|
571
|
+
|
553
572
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
554
573
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
555
574
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -571,7 +590,9 @@ class luno(Exchange, ImplicitAPI):
|
|
571
590
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
572
591
|
"""
|
573
592
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
574
|
-
|
593
|
+
|
594
|
+
https://www.luno.com/en/developers/api#tag/Market/operation/GetTicker
|
595
|
+
|
575
596
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
576
597
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
577
598
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -680,7 +701,9 @@ class luno(Exchange, ImplicitAPI):
|
|
680
701
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
681
702
|
"""
|
682
703
|
get the list of most recent trades for a particular symbol
|
683
|
-
|
704
|
+
|
705
|
+
https://www.luno.com/en/developers/api#tag/Market/operation/ListTrades
|
706
|
+
|
684
707
|
:param str symbol: unified symbol of the market to fetch trades for
|
685
708
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
686
709
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -713,7 +736,9 @@ class luno(Exchange, ImplicitAPI):
|
|
713
736
|
|
714
737
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}):
|
715
738
|
"""
|
716
|
-
|
739
|
+
|
740
|
+
https://www.luno.com/en/developers/api#tag/Market/operation/GetCandles
|
741
|
+
|
717
742
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
718
743
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
719
744
|
:param str timeframe: the length of time each candle represents
|
@@ -774,7 +799,9 @@ class luno(Exchange, ImplicitAPI):
|
|
774
799
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
775
800
|
"""
|
776
801
|
fetch all trades made by the user
|
777
|
-
|
802
|
+
|
803
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/ListUserTrades
|
804
|
+
|
778
805
|
:param str symbol: unified market symbol
|
779
806
|
:param int [since]: the earliest time in ms to fetch trades for
|
780
807
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -820,7 +847,9 @@ class luno(Exchange, ImplicitAPI):
|
|
820
847
|
def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
821
848
|
"""
|
822
849
|
fetch the trading fees for a market
|
823
|
-
|
850
|
+
|
851
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/getFeeInfo
|
852
|
+
|
824
853
|
:param str symbol: unified market symbol
|
825
854
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
826
855
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -850,8 +879,10 @@ class luno(Exchange, ImplicitAPI):
|
|
850
879
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
851
880
|
"""
|
852
881
|
create a trade order
|
853
|
-
|
854
|
-
|
882
|
+
|
883
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/PostMarketOrder
|
884
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/PostLimitOrder
|
885
|
+
|
855
886
|
:param str symbol: unified symbol of the market to create an order in
|
856
887
|
:param str type: 'market' or 'limit'
|
857
888
|
:param str side: 'buy' or 'sell'
|
@@ -887,7 +918,9 @@ class luno(Exchange, ImplicitAPI):
|
|
887
918
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
888
919
|
"""
|
889
920
|
cancels an open order
|
890
|
-
|
921
|
+
|
922
|
+
https://www.luno.com/en/developers/api#tag/Orders/operation/StopOrder
|
923
|
+
|
891
924
|
:param str id: order id
|
892
925
|
:param str symbol: unified symbol of the market the order was made in
|
893
926
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -923,7 +956,9 @@ class luno(Exchange, ImplicitAPI):
|
|
923
956
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
924
957
|
"""
|
925
958
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
926
|
-
|
959
|
+
|
960
|
+
https://www.luno.com/en/developers/api#tag/Accounts/operation/ListTransactions
|
961
|
+
|
927
962
|
:param str [code]: unified currency code, default is None
|
928
963
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
929
964
|
:param int [limit]: max number of ledger entries to return, default is None
|