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/bitfinex2.py
CHANGED
@@ -511,7 +511,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
511
511
|
def fetch_status(self, params={}):
|
512
512
|
"""
|
513
513
|
the latest known information on the availability of the exchange API
|
514
|
-
|
514
|
+
|
515
|
+
https://docs.bitfinex.com/reference/rest-public-platform-status
|
516
|
+
|
515
517
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
516
518
|
:returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
|
517
519
|
"""
|
@@ -532,7 +534,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
532
534
|
def fetch_markets(self, params={}) -> List[Market]:
|
533
535
|
"""
|
534
536
|
retrieves data on all markets for bitfinex2
|
535
|
-
|
537
|
+
|
538
|
+
https://docs.bitfinex.com/reference/rest-public-conf
|
539
|
+
|
536
540
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
537
541
|
:returns dict[]: an array of objects representing market data
|
538
542
|
"""
|
@@ -655,7 +659,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
655
659
|
def fetch_currencies(self, params={}) -> Currencies:
|
656
660
|
"""
|
657
661
|
fetches all available currencies on an exchange
|
658
|
-
|
662
|
+
|
663
|
+
https://docs.bitfinex.com/reference/rest-public-conf
|
664
|
+
|
659
665
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
660
666
|
:returns dict: an associative dictionary of currencies
|
661
667
|
"""
|
@@ -839,7 +845,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
839
845
|
def fetch_balance(self, params={}) -> Balances:
|
840
846
|
"""
|
841
847
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
842
|
-
|
848
|
+
|
849
|
+
https://docs.bitfinex.com/reference/rest-auth-wallets
|
850
|
+
|
843
851
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
844
852
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
845
853
|
"""
|
@@ -878,7 +886,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
878
886
|
def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
879
887
|
"""
|
880
888
|
transfer currency internally between wallets on the same account
|
881
|
-
|
889
|
+
|
890
|
+
https://docs.bitfinex.com/reference/rest-auth-transfer
|
891
|
+
|
882
892
|
:param str code: unified currency code
|
883
893
|
:param float amount: amount to transfer
|
884
894
|
:param str fromAccount: account to transfer from
|
@@ -1016,7 +1026,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1016
1026
|
def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
1017
1027
|
"""
|
1018
1028
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
1019
|
-
|
1029
|
+
|
1030
|
+
https://docs.bitfinex.com/reference/rest-public-book
|
1031
|
+
|
1020
1032
|
:param str symbol: unified symbol of the market to fetch the order book for
|
1021
1033
|
:param int [limit]: the maximum amount of order book entries to return, bitfinex only allows 1, 25, or 100
|
1022
1034
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1130,7 +1142,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1130
1142
|
def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
|
1131
1143
|
"""
|
1132
1144
|
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
1133
|
-
|
1145
|
+
|
1146
|
+
https://docs.bitfinex.com/reference/rest-public-tickers
|
1147
|
+
|
1134
1148
|
:param str[]|None symbols: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
1135
1149
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1136
1150
|
:returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1195,7 +1209,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1195
1209
|
def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
1196
1210
|
"""
|
1197
1211
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
1198
|
-
|
1212
|
+
|
1213
|
+
https://docs.bitfinex.com/reference/rest-public-ticker
|
1214
|
+
|
1199
1215
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
1200
1216
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1201
1217
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -1293,7 +1309,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1293
1309
|
def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
1294
1310
|
"""
|
1295
1311
|
get the list of most recent trades for a particular symbol
|
1296
|
-
|
1312
|
+
|
1313
|
+
https://docs.bitfinex.com/reference/rest-public-trades
|
1314
|
+
|
1297
1315
|
:param str symbol: unified symbol of the market to fetch trades for
|
1298
1316
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1299
1317
|
:param int [limit]: the maximum amount of trades to fetch, default 120, max 10000
|
@@ -1339,7 +1357,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1339
1357
|
def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = 100, params={}) -> List[list]:
|
1340
1358
|
"""
|
1341
1359
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1342
|
-
|
1360
|
+
|
1361
|
+
https://docs.bitfinex.com/reference/rest-public-candles
|
1362
|
+
|
1343
1363
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1344
1364
|
:param str timeframe: the length of time each candle represents
|
1345
1365
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1502,7 +1522,7 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1502
1522
|
|
1503
1523
|
def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1504
1524
|
"""
|
1505
|
-
|
1525
|
+
@ignore
|
1506
1526
|
helper function to build an order request
|
1507
1527
|
:param str symbol: unified symbol of the market to create an order in
|
1508
1528
|
:param str type: 'market' or 'limit'
|
@@ -1581,7 +1601,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1581
1601
|
def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1582
1602
|
"""
|
1583
1603
|
create an order on the exchange
|
1584
|
-
|
1604
|
+
|
1605
|
+
https://docs.bitfinex.com/reference/rest-auth-submit-order
|
1606
|
+
|
1585
1607
|
:param str symbol: unified CCXT market symbol
|
1586
1608
|
:param str type: 'limit' or 'market'
|
1587
1609
|
:param str side: 'buy' or 'sell'
|
@@ -1662,7 +1684,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1662
1684
|
def create_orders(self, orders: List[OrderRequest], params={}):
|
1663
1685
|
"""
|
1664
1686
|
create a list of trade orders
|
1665
|
-
|
1687
|
+
|
1688
|
+
https://docs.bitfinex.com/reference/rest-auth-order-multi
|
1689
|
+
|
1666
1690
|
: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
|
1667
1691
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1668
1692
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1719,7 +1743,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1719
1743
|
def cancel_all_orders(self, symbol: Str = None, params={}):
|
1720
1744
|
"""
|
1721
1745
|
cancel all open orders
|
1722
|
-
|
1746
|
+
|
1747
|
+
https://docs.bitfinex.com/reference/rest-auth-cancel-orders-multiple
|
1748
|
+
|
1723
1749
|
:param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
|
1724
1750
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1725
1751
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -1738,7 +1764,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1738
1764
|
def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1739
1765
|
"""
|
1740
1766
|
cancels an open order
|
1741
|
-
|
1767
|
+
|
1768
|
+
https://docs.bitfinex.com/reference/rest-auth-cancel-order
|
1769
|
+
|
1742
1770
|
:param str id: order id
|
1743
1771
|
:param str symbol: Not used by bitfinex2 cancelOrder()
|
1744
1772
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1768,7 +1796,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1768
1796
|
def cancel_orders(self, ids, symbol: Str = None, params={}):
|
1769
1797
|
"""
|
1770
1798
|
cancel multiple orders at the same time
|
1771
|
-
|
1799
|
+
|
1800
|
+
https://docs.bitfinex.com/reference/rest-auth-cancel-orders-multiple
|
1801
|
+
|
1772
1802
|
:param str[] ids: order ids
|
1773
1803
|
:param str symbol: unified market symbol, default is None
|
1774
1804
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1843,8 +1873,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1843
1873
|
def fetch_open_order(self, id: str, symbol: Str = None, params={}):
|
1844
1874
|
"""
|
1845
1875
|
fetch an open order by it's id
|
1846
|
-
|
1847
|
-
|
1876
|
+
|
1877
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1878
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1879
|
+
|
1848
1880
|
:param str id: order id
|
1849
1881
|
:param str symbol: unified market symbol, default is None
|
1850
1882
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1862,8 +1894,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1862
1894
|
def fetch_closed_order(self, id: str, symbol: Str = None, params={}):
|
1863
1895
|
"""
|
1864
1896
|
fetch an open order by it's id
|
1865
|
-
|
1866
|
-
|
1897
|
+
|
1898
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1899
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1900
|
+
|
1867
1901
|
:param str id: order id
|
1868
1902
|
:param str symbol: unified market symbol, default is None
|
1869
1903
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1881,8 +1915,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1881
1915
|
def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1882
1916
|
"""
|
1883
1917
|
fetch all unfilled currently open orders
|
1884
|
-
|
1885
|
-
|
1918
|
+
|
1919
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1920
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1921
|
+
|
1886
1922
|
:param str symbol: unified market symbol
|
1887
1923
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1888
1924
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1945,8 +1981,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
1945
1981
|
def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1946
1982
|
"""
|
1947
1983
|
fetches information on multiple closed orders made by the user
|
1948
|
-
|
1949
|
-
|
1984
|
+
|
1985
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
1986
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
1987
|
+
|
1950
1988
|
:param str symbol: unified market symbol of the market orders were made in
|
1951
1989
|
:param int [since]: the earliest time in ms to fetch orders for
|
1952
1990
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -2021,7 +2059,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2021
2059
|
def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2022
2060
|
"""
|
2023
2061
|
fetch all the trades made from a single order
|
2024
|
-
|
2062
|
+
|
2063
|
+
https://docs.bitfinex.com/reference/rest-auth-order-trades
|
2064
|
+
|
2025
2065
|
:param str id: order id
|
2026
2066
|
:param str symbol: unified market symbol
|
2027
2067
|
:param int [since]: the earliest time in ms to fetch trades for
|
@@ -2048,8 +2088,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2048
2088
|
def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2049
2089
|
"""
|
2050
2090
|
fetch all trades made by the user
|
2051
|
-
|
2052
|
-
|
2091
|
+
|
2092
|
+
https://docs.bitfinex.com/reference/rest-auth-trades
|
2093
|
+
https://docs.bitfinex.com/reference/rest-auth-trades-by-symbol
|
2094
|
+
|
2053
2095
|
:param str symbol: unified market symbol
|
2054
2096
|
:param int [since]: the earliest time in ms to fetch trades for
|
2055
2097
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -2080,7 +2122,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2080
2122
|
def create_deposit_address(self, code: str, params={}):
|
2081
2123
|
"""
|
2082
2124
|
create a currency deposit address
|
2083
|
-
|
2125
|
+
|
2126
|
+
https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
2127
|
+
|
2084
2128
|
:param str code: unified currency code of the currency for the deposit address
|
2085
2129
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2086
2130
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2094,7 +2138,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2094
2138
|
def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
2095
2139
|
"""
|
2096
2140
|
fetch the deposit address for a currency associated with self account
|
2097
|
-
|
2141
|
+
|
2142
|
+
https://docs.bitfinex.com/reference/rest-auth-deposit-address
|
2143
|
+
|
2098
2144
|
:param str code: unified currency code
|
2099
2145
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2100
2146
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -2298,7 +2344,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2298
2344
|
def fetch_trading_fees(self, params={}) -> TradingFees:
|
2299
2345
|
"""
|
2300
2346
|
fetch the trading fees for multiple markets
|
2301
|
-
|
2347
|
+
|
2348
|
+
https://docs.bitfinex.com/reference/rest-auth-summary
|
2349
|
+
|
2302
2350
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2303
2351
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
2304
2352
|
"""
|
@@ -2406,8 +2454,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2406
2454
|
def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
2407
2455
|
"""
|
2408
2456
|
fetch history of deposits and withdrawals
|
2409
|
-
|
2410
|
-
|
2457
|
+
|
2458
|
+
https://docs.bitfinex.com/reference/movement-info
|
2459
|
+
https://docs.bitfinex.com/reference/rest-auth-movements
|
2460
|
+
|
2411
2461
|
:param str [code]: unified currency code for the currency of the deposit/withdrawals, default is None
|
2412
2462
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
2413
2463
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -2461,7 +2511,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2461
2511
|
def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
2462
2512
|
"""
|
2463
2513
|
make a withdrawal
|
2464
|
-
|
2514
|
+
|
2515
|
+
https://docs.bitfinex.com/reference/rest-auth-withdraw
|
2516
|
+
|
2465
2517
|
:param str code: unified currency code
|
2466
2518
|
:param float amount: the amount to withdraw
|
2467
2519
|
:param str address: the address to withdraw to
|
@@ -2544,7 +2596,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2544
2596
|
def fetch_positions(self, symbols: Strings = None, params={}):
|
2545
2597
|
"""
|
2546
2598
|
fetch all open positions
|
2547
|
-
|
2599
|
+
|
2600
|
+
https://docs.bitfinex.com/reference/rest-auth-positions
|
2601
|
+
|
2548
2602
|
:param str[]|None symbols: list of unified market symbols
|
2549
2603
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2550
2604
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|
@@ -2782,7 +2836,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2782
2836
|
def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
|
2783
2837
|
"""
|
2784
2838
|
fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
2785
|
-
|
2839
|
+
|
2840
|
+
https://docs.bitfinex.com/reference/rest-auth-ledgers
|
2841
|
+
|
2786
2842
|
:param str [code]: unified currency code, default is None
|
2787
2843
|
:param int [since]: timestamp in ms of the earliest ledger entry, default is None
|
2788
2844
|
:param int [limit]: max number of ledger entries to return, default is None, max is 2500
|
@@ -2834,7 +2890,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2834
2890
|
def fetch_funding_rates(self, symbols: Strings = None, params={}) -> FundingRates:
|
2835
2891
|
"""
|
2836
2892
|
fetch the current funding rate for multiple symbols
|
2837
|
-
|
2893
|
+
|
2894
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
2895
|
+
|
2838
2896
|
:param str[] symbols: list of unified market symbols
|
2839
2897
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
2840
2898
|
:returns dict[]: a list of `funding rate structures <https://docs.ccxt.com/#/?id=funding-rate-structure>`
|
@@ -2882,7 +2940,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
2882
2940
|
def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
2883
2941
|
"""
|
2884
2942
|
fetches historical funding rate prices
|
2885
|
-
|
2943
|
+
|
2944
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
2945
|
+
|
2886
2946
|
:param str symbol: unified market symbol
|
2887
2947
|
:param int [since]: timestamp in ms of the earliest funding rate entry
|
2888
2948
|
:param int [limit]: max number of funding rate entrys to return
|
@@ -3056,7 +3116,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3056
3116
|
def fetch_open_interest(self, symbol: str, params={}):
|
3057
3117
|
"""
|
3058
3118
|
retrieves the open interest of a contract trading pair
|
3059
|
-
|
3119
|
+
|
3120
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
3121
|
+
|
3060
3122
|
:param str symbol: unified CCXT market symbol
|
3061
3123
|
:param dict [params]: exchange specific parameters
|
3062
3124
|
:returns dict: an `open interest structure <https://docs.ccxt.com/#/?id=open-interest-structure>`
|
@@ -3103,7 +3165,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3103
3165
|
def fetch_open_interest_history(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}):
|
3104
3166
|
"""
|
3105
3167
|
retrieves the open interest history of a currency
|
3106
|
-
|
3168
|
+
|
3169
|
+
https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
|
3170
|
+
|
3107
3171
|
:param str symbol: unified CCXT market symbol
|
3108
3172
|
:param str timeframe: the time period of each row of data, not used by bitfinex2
|
3109
3173
|
:param int [since]: the time in ms of the earliest record to retrieve unix timestamp
|
@@ -3234,7 +3298,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3234
3298
|
def fetch_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}):
|
3235
3299
|
"""
|
3236
3300
|
retrieves the public liquidations of a trading pair
|
3237
|
-
|
3301
|
+
|
3302
|
+
https://docs.bitfinex.com/reference/rest-public-liquidations
|
3303
|
+
|
3238
3304
|
:param str symbol: unified CCXT market symbol
|
3239
3305
|
:param int [since]: the earliest time in ms to fetch liquidations for
|
3240
3306
|
:param int [limit]: the maximum number of liquidation structures to retrieve
|
@@ -3319,7 +3385,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3319
3385
|
def set_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
|
3320
3386
|
"""
|
3321
3387
|
either adds or reduces margin in a swap position in order to set the margin to a specific value
|
3322
|
-
|
3388
|
+
|
3389
|
+
https://docs.bitfinex.com/reference/rest-auth-deriv-pos-collateral-set
|
3390
|
+
|
3323
3391
|
:param str symbol: unified market symbol of the market to set margin in
|
3324
3392
|
:param float amount: the amount to set the margin to
|
3325
3393
|
:param dict [params]: parameters specific to the exchange API endpoint
|
@@ -3372,8 +3440,10 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3372
3440
|
def fetch_order(self, id: str, symbol: Str = None, params={}):
|
3373
3441
|
"""
|
3374
3442
|
fetches information on an order made by the user
|
3375
|
-
|
3376
|
-
|
3443
|
+
|
3444
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
|
3445
|
+
https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
3446
|
+
|
3377
3447
|
:param str id: the order id
|
3378
3448
|
:param str [symbol]: unified symbol of the market the order was made in
|
3379
3449
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3435,7 +3505,9 @@ class bitfinex2(Exchange, ImplicitAPI):
|
|
3435
3505
|
def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
|
3436
3506
|
"""
|
3437
3507
|
edit a trade order
|
3438
|
-
|
3508
|
+
|
3509
|
+
https://docs.bitfinex.com/reference/rest-auth-update-order
|
3510
|
+
|
3439
3511
|
:param str id: edit order id
|
3440
3512
|
:param str symbol: unified symbol of the market to edit an order in
|
3441
3513
|
:param str type: 'market' or 'limit'
|
ccxt/bitflyer.py
CHANGED
@@ -160,7 +160,9 @@ class bitflyer(Exchange, ImplicitAPI):
|
|
160
160
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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>`
|