ccxt 4.4.30__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/ace.py +36 -12
- ccxt/alpaca.py +62 -22
- ccxt/ascendex.py +65 -30
- ccxt/async_support/__init__.py +1 -1
- ccxt/async_support/ace.py +36 -12
- ccxt/async_support/alpaca.py +62 -22
- 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 +555 -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 +17 -9
- ccxt/async_support/bitfinex.py +68 -24
- 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 +145 -79
- 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 +131 -50
- 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 +94 -38
- 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 +89 -38
- 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 +555 -323
- ccxt/bingx.py +208 -108
- ccxt/bit2c.py +34 -12
- ccxt/bitbank.py +42 -14
- ccxt/bitbns.py +17 -9
- ccxt/bitfinex.py +68 -24
- ccxt/bitfinex2.py +116 -44
- ccxt/bitflyer.py +54 -18
- ccxt/bitget.py +277 -145
- ccxt/bithumb.py +39 -14
- ccxt/bitmart.py +145 -79
- 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 +131 -50
- 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 +94 -38
- 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 +89 -38
- 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 +36 -12
- 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/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.30.dist-info → ccxt-4.4.31.dist-info}/METADATA +5 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/RECORD +267 -267
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.31.dist-info}/top_level.txt +0 -0
ccxt/async_support/bitfinex2.py
CHANGED
@@ -512,7 +512,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
512
512
|
async def fetch_status(self, params={}):
|
513
513
|
"""
|
514
514
|
the latest known information on the availability of the exchange API
|
515
|
-
|
515
|
+
|
516
|
+
https://docs.bitfinex.com/reference/rest-public-platform-status
|
517
|
+
|
516
518
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
517
519
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
518
520
|
"""
|
@@ -533,7 +535,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
533
535
|
async def fetch_markets(self, params={}) -> List[Market]:
|
534
536
|
"""
|
535
537
|
retrieves data on all markets for bitfinex2
|
536
|
-
|
538
|
+
|
539
|
+
https://docs.bitfinex.com/reference/rest-public-conf
|
540
|
+
|
537
541
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
538
542
|
:returns dict[]: an array of objects representing market data
|
539
543
|
"""
|
@@ -656,7 +660,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
656
660
|
async def fetch_currencies(self, params={}) -> Currencies:
|
657
661
|
"""
|
658
662
|
fetches all available currencies on an exchange
|
659
|
-
|
663
|
+
|
664
|
+
https://docs.bitfinex.com/reference/rest-public-conf
|
665
|
+
|
660
666
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
661
667
|
:returns dict: an associative dictionary of currencies
|
662
668
|
"""
|
@@ -840,7 +846,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
840
846
|
async def fetch_balance(self, params={}) -> Balances:
|
841
847
|
"""
|
842
848
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
843
|
-
|
849
|
+
|
850
|
+
https://docs.bitfinex.com/reference/rest-auth-wallets
|
851
|
+
|
844
852
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
845
853
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
846
854
|
"""
|
@@ -879,7 +887,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
879
887
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
880
888
|
"""
|
881
889
|
transfer currency internally between wallets on the same account
|
882
|
-
|
890
|
+
|
891
|
+
https://docs.bitfinex.com/reference/rest-auth-transfer
|
892
|
+
|
883
893
|
:param str code: unified currency code
|
884
894
|
:param float amount: amount to transfer
|
885
895
|
:param str fromAccount: account to transfer from
|
@@ -1017,7 +1027,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1017
1027
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1018
1028
|
"""
|
1019
1029
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1020
|
-
|
1030
|
+
|
1031
|
+
https://docs.bitfinex.com/reference/rest-public-book
|
1032
|
+
|
1021
1033
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1022
1034
|
:param int [limit]: the maximum amount of order book entries to return, bitfinex only allows 1, 25, or 100
|
1023
1035
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1131,7 +1143,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1131
1143
|
async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1132
1144
|
"""
|
1133
1145
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1134
|
-
|
1146
|
+
|
1147
|
+
https://docs.bitfinex.com/reference/rest-public-tickers
|
1148
|
+
|
1135
1149
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1136
1150
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1137
1151
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1196,7 +1210,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1196
1210
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1197
1211
|
"""
|
1198
1212
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1199
|
-
|
1213
|
+
|
1214
|
+
https://docs.bitfinex.com/reference/rest-public-ticker
|
1215
|
+
|
1200
1216
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1201
1217
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1202
1218
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1294,7 +1310,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1294
1310
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1295
1311
|
"""
|
1296
1312
|
get the list of most recent trades for a particular symbol
|
1297
|
-
|
1313
|
+
|
1314
|
+
https://docs.bitfinex.com/reference/rest-public-trades
|
1315
|
+
|
1298
1316
|
:param str symbol: unified symbol of the market to fetch trades for
|
1299
1317
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1300
1318
|
:param int [limit]: the maximum amount of trades to fetch, default 120, max 10000
|
@@ -1340,7 +1358,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1340
1358
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = 100, params={}) -> List[list]:
|
1341
1359
|
"""
|
1342
1360
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1343
|
-
|
1361
|
+
|
1362
|
+
https://docs.bitfinex.com/reference/rest-public-candles
|
1363
|
+
|
1344
1364
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1345
1365
|
:param str timeframe: the length of time each candle represents
|
1346
1366
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1503,7 +1523,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1503
1523
|
|
1504
1524
|
def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1505
1525
|
"""
|
1506
|
-
|
1526
|
+
@ignore
|
1507
1527
|
helper function to build an order request
|
1508
1528
|
:param str symbol: unified symbol of the market to create an order in
|
1509
1529
|
:param str type: 'market' or 'limit'
|
@@ -1582,7 +1602,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1582
1602
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1583
1603
|
"""
|
1584
1604
|
create an order on the exchange
|
1585
|
-
|
1605
|
+
|
1606
|
+
https://docs.bitfinex.com/reference/rest-auth-submit-order
|
1607
|
+
|
1586
1608
|
:param str symbol: unified CCXT market symbol
|
1587
1609
|
:param str type: 'limit' or 'market'
|
1588
1610
|
:param str side: 'buy' or 'sell'
|
@@ -1663,7 +1685,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1663
1685
|
async def create_orders(self, orders: List[OrderRequest], params={}):
|
1664
1686
|
"""
|
1665
1687
|
create a list of trade orders
|
1666
|
-
|
1688
|
+
|
1689
|
+
https://docs.bitfinex.com/reference/rest-auth-order-multi
|
1690
|
+
|
1667
1691
|
:param Array orders: list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
1668
1692
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1669
1693
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1720,7 +1744,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1720
1744
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1721
1745
|
"""
|
1722
1746
|
cancel all open orders
|
1723
|
-
|
1747
|
+
|
1748
|
+
https://docs.bitfinex.com/reference/rest-auth-cancel-orders-multiple
|
1749
|
+
|
1724
1750
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1725
1751
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1726
1752
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1739,7 +1765,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1739
1765
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1740
1766
|
"""
|
1741
1767
|
cancels an open order
|
1742
|
-
|
1768
|
+
|
1769
|
+
https://docs.bitfinex.com/reference/rest-auth-cancel-order
|
1770
|
+
|
1743
1771
|
:param str id: order id
|
1744
1772
|
:param str symbol: Not used by bitfinex2 cancelOrder()
|
1745
1773
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1769,7 +1797,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1769
1797
|
async def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1770
1798
|
"""
|
1771
1799
|
cancel multiple orders at the same time
|
1772
|
-
|
1800
|
+
|
1801
|
+
https://docs.bitfinex.com/reference/rest-auth-cancel-orders-multiple
|
1802
|
+
|
1773
1803
|
:param str[] ids: order ids
|
1774
1804
|
:param str symbol: unified market symbol, default is None
|
1775
1805
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1844,8 +1874,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1844
1874
|
async def fetch_open_order(self, id: str, symbol: Str = None, params={}):
|
1845
1875
|
"""
|
1846
1876
|
fetch an open order by it's id
|
1847
|
-
|
1848
|
-
|
1877
|
+
|
1878
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1879
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1880
|
+
|
1849
1881
|
:param str id: order id
|
1850
1882
|
:param str symbol: unified market symbol, default is None
|
1851
1883
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1863,8 +1895,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1863
1895
|
async def fetch_closed_order(self, id: str, symbol: Str = None, params={}):
|
1864
1896
|
"""
|
1865
1897
|
fetch an open order by it's id
|
1866
|
-
|
1867
|
-
|
1898
|
+
|
1899
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1900
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1901
|
+
|
1868
1902
|
:param str id: order id
|
1869
1903
|
:param str symbol: unified market symbol, default is None
|
1870
1904
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1882,8 +1916,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1882
1916
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1883
1917
|
"""
|
1884
1918
|
fetch all unfilled currently open orders
|
1885
|
-
|
1886
|
-
|
1919
|
+
|
1920
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1921
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1922
|
+
|
1887
1923
|
:param str symbol: unified market symbol
|
1888
1924
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1889
1925
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1946,8 +1982,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1946
1982
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1947
1983
|
"""
|
1948
1984
|
fetches information on multiple closed orders made by the user
|
1949
|
-
|
1950
|
-
|
1985
|
+
|
1986
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1987
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1988
|
+
|
1951
1989
|
:param str symbol: unified market symbol of the market orders were made in
|
1952
1990
|
:param int [since]: the earliest time in ms to fetch orders for
|
1953
1991
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2022,7 +2060,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2022
2060
|
async def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2023
2061
|
"""
|
2024
2062
|
fetch all the trades made from a single order
|
2025
|
-
|
2063
|
+
|
2064
|
+
https://docs.bitfinex.com/reference/rest-auth-order-trades
|
2065
|
+
|
2026
2066
|
:param str id: order id
|
2027
2067
|
:param str symbol: unified market symbol
|
2028
2068
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2049,8 +2089,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2049
2089
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2050
2090
|
"""
|
2051
2091
|
fetch all trades made by the user
|
2052
|
-
|
2053
|
-
|
2092
|
+
|
2093
|
+
https://docs.bitfinex.com/reference/rest-auth-trades
|
2094
|
+
https://docs.bitfinex.com/reference/rest-auth-trades-by-symbol
|
2095
|
+
|
2054
2096
|
:param str symbol: unified market symbol
|
2055
2097
|
:param int [since]: the earliest time in ms to fetch trades for
|
2056
2098
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2081,7 +2123,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2081
2123
|
async def create_deposit_address(self, code: str, params={}):
|
2082
2124
|
"""
|
2083
2125
|
create a currency deposit address
|
2084
|
-
|
2126
|
+
|
2127
|
+
https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
2128
|
+
|
2085
2129
|
:param str code: unified currency code of the currency for the deposit address
|
2086
2130
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2087
2131
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2095,7 +2139,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2095
2139
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
2096
2140
|
"""
|
2097
2141
|
fetch the deposit address for a currency associated with self account
|
2098
|
-
|
2142
|
+
|
2143
|
+
https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
2144
|
+
|
2099
2145
|
:param str code: unified currency code
|
2100
2146
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2101
2147
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2299,7 +2345,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2299
2345
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
2300
2346
|
"""
|
2301
2347
|
fetch the trading fees for multiple markets
|
2302
|
-
|
2348
|
+
|
2349
|
+
https://docs.bitfinex.com/reference/rest-auth-summary
|
2350
|
+
|
2303
2351
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2304
2352
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
2305
2353
|
"""
|
@@ -2407,8 +2455,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2407
2455
|
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2408
2456
|
"""
|
2409
2457
|
fetch history of deposits and withdrawals
|
2410
|
-
|
2411
|
-
|
2458
|
+
|
2459
|
+
https://docs.bitfinex.com/reference/movement-info
|
2460
|
+
https://docs.bitfinex.com/reference/rest-auth-movements
|
2461
|
+
|
2412
2462
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
2413
2463
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
2414
2464
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -2462,7 +2512,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2462
2512
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2463
2513
|
"""
|
2464
2514
|
make a withdrawal
|
2465
|
-
|
2515
|
+
|
2516
|
+
https://docs.bitfinex.com/reference/rest-auth-withdraw
|
2517
|
+
|
2466
2518
|
:param str code: unified currency code
|
2467
2519
|
:param float amount: the amount to withdraw
|
2468
2520
|
:param str address: the address to withdraw to
|
@@ -2545,7 +2597,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2545
2597
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
2546
2598
|
"""
|
2547
2599
|
fetch all open positions
|
2548
|
-
|
2600
|
+
|
2601
|
+
https://docs.bitfinex.com/reference/rest-auth-positions
|
2602
|
+
|
2549
2603
|
:param str[]|None symbols: list of unified market symbols
|
2550
2604
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2551
2605
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -2783,7 +2837,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2783
2837
|
async def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
2784
2838
|
"""
|
2785
2839
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
2786
|
-
|
2840
|
+
|
2841
|
+
https://docs.bitfinex.com/reference/rest-auth-ledgers
|
2842
|
+
|
2787
2843
|
:param str [code]: unified currency code, default is None
|
2788
2844
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2789
2845
|
:param int [limit]: max number of ledger entries to return, default is None, max is 2500
|
@@ -2835,7 +2891,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2835
2891
|
async def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
2836
2892
|
"""
|
2837
2893
|
fetch the current funding rate for multiple symbols
|
2838
|
-
|
2894
|
+
|
2895
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
2896
|
+
|
2839
2897
|
:param str[] symbols: list of unified market symbols
|
2840
2898
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2841
2899
|
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -2883,7 +2941,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2883
2941
|
async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2884
2942
|
"""
|
2885
2943
|
fetches historical funding rate prices
|
2886
|
-
|
2944
|
+
|
2945
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
2946
|
+
|
2887
2947
|
:param str symbol: unified market symbol
|
2888
2948
|
:param int [since]: timestamp in ms of the earliest funding rate entry
|
2889
2949
|
:param int [limit]: max number of funding rate entrys to return
|
@@ -3057,7 +3117,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3057
3117
|
async def fetch_open_interest(self, symbol: str, params={}):
|
3058
3118
|
"""
|
3059
3119
|
retrieves the open interest of a contract trading pair
|
3060
|
-
|
3120
|
+
|
3121
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
3122
|
+
|
3061
3123
|
:param str symbol: unified CCXT market symbol
|
3062
3124
|
:param dict [params]: exchange specific parameters
|
3063
3125
|
:returns dict: an `open interest structure <https://docs.ccxt.com/#/?id=open-interest-structure>`
|
@@ -3104,7 +3166,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3104
3166
|
async def fetch_open_interest_history(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}):
|
3105
3167
|
"""
|
3106
3168
|
retrieves the open interest history of a currency
|
3107
|
-
|
3169
|
+
|
3170
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
3171
|
+
|
3108
3172
|
:param str symbol: unified CCXT market symbol
|
3109
3173
|
:param str timeframe: the time period of each row of data, not used by bitfinex2
|
3110
3174
|
:param int [since]: the time in ms of the earliest record to retrieve unix timestamp
|
@@ -3235,7 +3299,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3235
3299
|
async def fetch_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}):
|
3236
3300
|
"""
|
3237
3301
|
retrieves the public liquidations of a trading pair
|
3238
|
-
|
3302
|
+
|
3303
|
+
https://docs.bitfinex.com/reference/rest-public-liquidations
|
3304
|
+
|
3239
3305
|
:param str symbol: unified CCXT market symbol
|
3240
3306
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
3241
3307
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
@@ -3320,7 +3386,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3320
3386
|
async def set_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
3321
3387
|
"""
|
3322
3388
|
either adds or reduces margin in a swap position in order to set the margin to a specific value
|
3323
|
-
|
3389
|
+
|
3390
|
+
https://docs.bitfinex.com/reference/rest-auth-deriv-pos-collateral-set
|
3391
|
+
|
3324
3392
|
:param str symbol: unified market symbol of the market to set margin in
|
3325
3393
|
:param float amount: the amount to set the margin to
|
3326
3394
|
:param dict [params]: parameters specific to the exchange API endpoint
|
@@ -3373,8 +3441,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3373
3441
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
3374
3442
|
"""
|
3375
3443
|
fetches information on an order made by the user
|
3376
|
-
|
3377
|
-
|
3444
|
+
|
3445
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
3446
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
3447
|
+
|
3378
3448
|
:param str id: the order id
|
3379
3449
|
:param str [symbol]: unified symbol of the market the order was made in
|
3380
3450
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3436,7 +3506,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3436
3506
|
async def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
3437
3507
|
"""
|
3438
3508
|
edit a trade order
|
3439
|
-
|
3509
|
+
|
3510
|
+
https://docs.bitfinex.com/reference/rest-auth-update-order
|
3511
|
+
|
3440
3512
|
:param str id: edit order id
|
3441
3513
|
:param str symbol: unified symbol of the market to edit an order in
|
3442
3514
|
:param str type: 'market' or 'limit'
|
ccxt/async_support/bitflyer.py
CHANGED
@@ -160,7 +160,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
160
160
|
async def fetch_markets(self, params={}) -> List[Market]:
|
161
161
|
"""
|
162
162
|
retrieves data on all markets for bitflyer
|
163
|
-
|
163
|
+
|
164
|
+
https://lightning.bitflyer.com/docs?lang=en#market-list
|
165
|
+
|
164
166
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
165
167
|
:returns dict[]: an array of objects representing market data
|
166
168
|
"""
|
@@ -318,7 +320,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
318
320
|
async def fetch_balance(self, params={}) -> Balances:
|
319
321
|
"""
|
320
322
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
321
|
-
|
323
|
+
|
324
|
+
https://lightning.bitflyer.com/docs?lang=en#get-account-asset-balance
|
325
|
+
|
322
326
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
323
327
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
324
328
|
"""
|
@@ -348,7 +352,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
348
352
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
349
353
|
"""
|
350
354
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
351
|
-
|
355
|
+
|
356
|
+
https://lightning.bitflyer.com/docs?lang=en#order-book
|
357
|
+
|
352
358
|
:param str symbol: unified symbol of the market to fetch the order book for
|
353
359
|
:param int [limit]: the maximum amount of order book entries to return
|
354
360
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -392,7 +398,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
392
398
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
393
399
|
"""
|
394
400
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
395
|
-
|
401
|
+
|
402
|
+
https://lightning.bitflyer.com/docs?lang=en#ticker
|
403
|
+
|
396
404
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
397
405
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
398
406
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -467,7 +475,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
467
475
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
468
476
|
"""
|
469
477
|
get the list of most recent trades for a particular symbol
|
470
|
-
|
478
|
+
|
479
|
+
https://lightning.bitflyer.com/docs?lang=en#list-executions
|
480
|
+
|
471
481
|
:param str symbol: unified symbol of the market to fetch trades for
|
472
482
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
473
483
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -500,7 +510,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
500
510
|
async def fetch_trading_fee(self, symbol: str, params={}) -> TradingFeeInterface:
|
501
511
|
"""
|
502
512
|
fetch the trading fees for a market
|
503
|
-
|
513
|
+
|
514
|
+
https://lightning.bitflyer.com/docs?lang=en#get-trading-commission
|
515
|
+
|
504
516
|
:param str symbol: unified market symbol
|
505
517
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
506
518
|
:returns dict: a `fee structure <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -529,7 +541,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
529
541
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
530
542
|
"""
|
531
543
|
create a trade order
|
532
|
-
|
544
|
+
|
545
|
+
https://lightning.bitflyer.com/docs?lang=en#send-a-new-order
|
546
|
+
|
533
547
|
:param str symbol: unified symbol of the market to create an order in
|
534
548
|
:param str type: 'market' or 'limit'
|
535
549
|
:param str side: 'buy' or 'sell'
|
@@ -557,7 +571,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
557
571
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
558
572
|
"""
|
559
573
|
cancels an open order
|
560
|
-
|
574
|
+
|
575
|
+
https://lightning.bitflyer.com/docs?lang=en#cancel-order
|
576
|
+
|
561
577
|
:param str id: order id
|
562
578
|
:param str symbol: unified symbol of the market the order was made in
|
563
579
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -636,7 +652,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
636
652
|
async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = 100, params={}) -> List[Order]:
|
637
653
|
"""
|
638
654
|
fetches information on multiple orders made by the user
|
639
|
-
|
655
|
+
|
656
|
+
https://lightning.bitflyer.com/docs?lang=en#list-orders
|
657
|
+
|
640
658
|
:param str symbol: unified market symbol of the market orders were made in
|
641
659
|
:param int [since]: the earliest time in ms to fetch orders for
|
642
660
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -660,7 +678,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
660
678
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = 100, params={}) -> List[Order]:
|
661
679
|
"""
|
662
680
|
fetch all unfilled currently open orders
|
663
|
-
|
681
|
+
|
682
|
+
https://lightning.bitflyer.com/docs?lang=en#list-orders
|
683
|
+
|
664
684
|
:param str symbol: unified market symbol
|
665
685
|
:param int [since]: the earliest time in ms to fetch open orders for
|
666
686
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -675,7 +695,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
675
695
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = 100, params={}) -> List[Order]:
|
676
696
|
"""
|
677
697
|
fetches information on multiple closed orders made by the user
|
678
|
-
|
698
|
+
|
699
|
+
https://lightning.bitflyer.com/docs?lang=en#list-orders
|
700
|
+
|
679
701
|
:param str symbol: unified market symbol of the market orders were made in
|
680
702
|
:param int [since]: the earliest time in ms to fetch orders for
|
681
703
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -690,7 +712,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
690
712
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
691
713
|
"""
|
692
714
|
fetches information on an order made by the user
|
693
|
-
|
715
|
+
|
716
|
+
https://lightning.bitflyer.com/docs?lang=en#list-orders
|
717
|
+
|
694
718
|
:param str id: the order id
|
695
719
|
:param str symbol: unified symbol of the market the order was made in
|
696
720
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -707,7 +731,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
707
731
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
708
732
|
"""
|
709
733
|
fetch all trades made by the user
|
710
|
-
|
734
|
+
|
735
|
+
https://lightning.bitflyer.com/docs?lang=en#list-executions
|
736
|
+
|
711
737
|
:param str symbol: unified market symbol
|
712
738
|
:param int [since]: the earliest time in ms to fetch trades for
|
713
739
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -743,7 +769,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
743
769
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
744
770
|
"""
|
745
771
|
fetch all open positions
|
746
|
-
|
772
|
+
|
773
|
+
https://lightning.bitflyer.com/docs?lang=en#get-open-interest-summary
|
774
|
+
|
747
775
|
:param str[] symbols: list of unified market symbols
|
748
776
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
749
777
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -778,7 +806,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
778
806
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
779
807
|
"""
|
780
808
|
make a withdrawal
|
781
|
-
|
809
|
+
|
810
|
+
https://lightning.bitflyer.com/docs?lang=en#withdrawing-funds
|
811
|
+
|
782
812
|
:param str code: unified currency code
|
783
813
|
:param float amount: the amount to withdraw
|
784
814
|
:param str address: the address to withdraw to
|
@@ -807,7 +837,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
807
837
|
async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
808
838
|
"""
|
809
839
|
fetch all deposits made to an account
|
810
|
-
|
840
|
+
|
841
|
+
https://lightning.bitflyer.com/docs?lang=en#get-crypto-assets-deposit-history
|
842
|
+
|
811
843
|
:param str code: unified currency code
|
812
844
|
:param int [since]: the earliest time in ms to fetch deposits for
|
813
845
|
:param int [limit]: the maximum number of deposits structures to retrieve
|
@@ -841,7 +873,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
841
873
|
async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
842
874
|
"""
|
843
875
|
fetch all withdrawals made from an account
|
844
|
-
|
876
|
+
|
877
|
+
https://lightning.bitflyer.com/docs?lang=en#get-crypto-assets-transaction-history
|
878
|
+
|
845
879
|
:param str code: unified currency code
|
846
880
|
:param int [since]: the earliest time in ms to fetch withdrawals for
|
847
881
|
:param int [limit]: the maximum number of withdrawals structures to retrieve
|
@@ -970,7 +1004,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
970
1004
|
async def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
|
971
1005
|
"""
|
972
1006
|
fetch the current funding rate
|
973
|
-
|
1007
|
+
|
1008
|
+
https://lightning.bitflyer.com/docs#funding-rate
|
1009
|
+
|
974
1010
|
:param str symbol: unified market symbol
|
975
1011
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
976
1012
|
:returns dict: a `funding rate structure <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|