ccxt 4.4.30__py2.py3-none-any.whl → 4.4.32__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/base/ws/aiohttp_client.py +25 -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 -22
- 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 +313 -157
- ccxt/async_support/gemini.py +57 -20
- ccxt/async_support/hashkey.py +151 -66
- ccxt/async_support/hitbtc.py +157 -74
- 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 +54 -17
- ccxt/async_support/kraken.py +108 -36
- ccxt/async_support/krakenfutures.py +88 -34
- ccxt/async_support/kucoin.py +214 -110
- ccxt/async_support/kucoinfutures.py +209 -64
- 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 +108 -56
- 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 +32 -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 +119 -50
- 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 +47 -35
- 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 -22
- 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 +313 -157
- ccxt/gemini.py +57 -20
- ccxt/hashkey.py +151 -66
- ccxt/hitbtc.py +157 -74
- 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 +54 -17
- ccxt/kraken.py +108 -36
- ccxt/krakenfutures.py +88 -34
- ccxt/kucoin.py +214 -110
- ccxt/kucoinfutures.py +209 -64
- 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 +108 -56
- 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 +204 -123
- ccxt/pro/bingx.py +44 -24
- ccxt/pro/bitfinex.py +13 -5
- ccxt/pro/bitget.py +76 -37
- 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 +97 -62
- 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 +71 -27
- ccxt/pro/deribit.py +36 -12
- ccxt/pro/exmo.py +10 -4
- ccxt/pro/gate.py +65 -31
- ccxt/pro/gemini.py +21 -7
- ccxt/pro/hashkey.py +27 -9
- 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 +36 -19
- 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 +32 -8
- ccxt/wazirx.py +51 -17
- ccxt/whitebit.py +105 -41
- ccxt/woo.py +162 -65
- ccxt/woofipro.py +119 -50
- 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.32.dist-info}/METADATA +11 -5
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
- {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/async_support/bit2c.py
CHANGED
@@ -214,7 +214,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
214
214
|
async def fetch_balance(self, params={}) -> Balances:
|
215
215
|
"""
|
216
216
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
217
|
-
|
217
|
+
|
218
|
+
https://bit2c.co.il/home/api#balance
|
219
|
+
|
218
220
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
219
221
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
220
222
|
"""
|
@@ -267,7 +269,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
267
269
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
268
270
|
"""
|
269
271
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
270
|
-
|
272
|
+
|
273
|
+
https://bit2c.co.il/home/api#orderb
|
274
|
+
|
271
275
|
:param str symbol: unified symbol of the market to fetch the order book for
|
272
276
|
:param int [limit]: the maximum amount of order book entries to return
|
273
277
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -312,7 +316,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
312
316
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
313
317
|
"""
|
314
318
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
315
|
-
|
319
|
+
|
320
|
+
https://bit2c.co.il/home/api#ticker
|
321
|
+
|
316
322
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
317
323
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
318
324
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -328,8 +334,10 @@ class bit2c(Exchange, ImplicitAPI):
|
|
328
334
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
329
335
|
"""
|
330
336
|
get the list of most recent trades for a particular symbol
|
331
|
-
|
332
|
-
|
337
|
+
|
338
|
+
https://bit2c.co.il/home/api#transactions
|
339
|
+
https://bit2c.co.il/home/api#trades
|
340
|
+
|
333
341
|
:param str symbol: unified symbol of the market to fetch trades for
|
334
342
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
335
343
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -365,7 +373,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
365
373
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
366
374
|
"""
|
367
375
|
fetch the trading fees for multiple markets
|
368
|
-
|
376
|
+
|
377
|
+
https://bit2c.co.il/home/api#balance
|
378
|
+
|
369
379
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
370
380
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
371
381
|
"""
|
@@ -411,7 +421,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
411
421
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
412
422
|
"""
|
413
423
|
create a trade order
|
414
|
-
|
424
|
+
|
425
|
+
https://bit2c.co.il/home/api#addo
|
426
|
+
|
415
427
|
:param str symbol: unified symbol of the market to create an order in
|
416
428
|
:param str type: 'market' or 'limit'
|
417
429
|
:param str side: 'buy' or 'sell'
|
@@ -441,7 +453,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
441
453
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
442
454
|
"""
|
443
455
|
cancels an open order
|
444
|
-
|
456
|
+
|
457
|
+
https://bit2c.co.il/home/api#cancelo
|
458
|
+
|
445
459
|
:param str id: order id
|
446
460
|
:param str symbol: Not used by bit2c cancelOrder()
|
447
461
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -456,7 +470,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
456
470
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
457
471
|
"""
|
458
472
|
fetch all unfilled currently open orders
|
459
|
-
|
473
|
+
|
474
|
+
https://bit2c.co.il/home/api#geto
|
475
|
+
|
460
476
|
:param str symbol: unified market symbol
|
461
477
|
:param int [since]: the earliest time in ms to fetch open orders for
|
462
478
|
:param int [limit]: the maximum number of open order structures to retrieve
|
@@ -479,7 +495,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
479
495
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
480
496
|
"""
|
481
497
|
fetches information on an order made by the user
|
482
|
-
|
498
|
+
|
499
|
+
https://bit2c.co.il/home/api#getoid
|
500
|
+
|
483
501
|
:param str id: the order id
|
484
502
|
:param str symbol: unified market symbol
|
485
503
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -617,7 +635,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
617
635
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
618
636
|
"""
|
619
637
|
fetch all trades made by the user
|
620
|
-
|
638
|
+
|
639
|
+
https://bit2c.co.il/home/api#orderh
|
640
|
+
|
621
641
|
:param str symbol: unified market symbol
|
622
642
|
:param int [since]: the earliest time in ms to fetch trades for
|
623
643
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -784,7 +804,9 @@ class bit2c(Exchange, ImplicitAPI):
|
|
784
804
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
785
805
|
"""
|
786
806
|
fetch the deposit address for a currency associated with self account
|
787
|
-
|
807
|
+
|
808
|
+
https://bit2c.co.il/home/api#addc
|
809
|
+
|
788
810
|
:param str code: unified currency code
|
789
811
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
790
812
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
ccxt/async_support/bitbank.py
CHANGED
@@ -174,7 +174,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
174
174
|
async def fetch_markets(self, params={}) -> List[Market]:
|
175
175
|
"""
|
176
176
|
retrieves data on all markets for bitbank
|
177
|
-
|
177
|
+
|
178
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
179
|
+
|
178
180
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
179
181
|
:returns dict[]: an array of objects representing market data
|
180
182
|
"""
|
@@ -298,7 +300,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
298
300
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
299
301
|
"""
|
300
302
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
301
|
-
|
303
|
+
|
304
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#ticker
|
305
|
+
|
302
306
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
303
307
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
304
308
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -315,7 +319,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
315
319
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
316
320
|
"""
|
317
321
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
318
|
-
|
322
|
+
|
323
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#depth
|
324
|
+
|
319
325
|
:param str symbol: unified symbol of the market to fetch the order book for
|
320
326
|
:param int [limit]: the maximum amount of order book entries to return
|
321
327
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -378,7 +384,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
378
384
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
|
379
385
|
"""
|
380
386
|
get the list of most recent trades for a particular symbol
|
381
|
-
|
387
|
+
|
388
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#transactions
|
389
|
+
|
382
390
|
:param str symbol: unified symbol of the market to fetch trades for
|
383
391
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
384
392
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -398,7 +406,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
398
406
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
399
407
|
"""
|
400
408
|
fetch the trading fees for multiple markets
|
401
|
-
|
409
|
+
|
410
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
|
411
|
+
|
402
412
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
403
413
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
404
414
|
"""
|
@@ -473,7 +483,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
473
483
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
474
484
|
"""
|
475
485
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
476
|
-
|
486
|
+
|
487
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#candlestick
|
488
|
+
|
477
489
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
478
490
|
:param str timeframe: the length of time each candle represents
|
479
491
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -540,7 +552,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
540
552
|
async def fetch_balance(self, params={}) -> Balances:
|
541
553
|
"""
|
542
554
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
543
|
-
|
555
|
+
|
556
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#assets
|
557
|
+
|
544
558
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
545
559
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
546
560
|
"""
|
@@ -632,7 +646,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
632
646
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
633
647
|
"""
|
634
648
|
create a trade order
|
635
|
-
|
649
|
+
|
650
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#create-new-order
|
651
|
+
|
636
652
|
:param str symbol: unified symbol of the market to create an order in
|
637
653
|
:param str type: 'market' or 'limit'
|
638
654
|
:param str side: 'buy' or 'sell'
|
@@ -658,7 +674,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
658
674
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
659
675
|
"""
|
660
676
|
cancels an open order
|
661
|
-
|
677
|
+
|
678
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#cancel-order
|
679
|
+
|
662
680
|
:param str id: order id
|
663
681
|
:param str symbol: unified symbol of the market the order was made in
|
664
682
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -700,7 +718,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
700
718
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
701
719
|
"""
|
702
720
|
fetches information on an order made by the user
|
703
|
-
|
721
|
+
|
722
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
|
723
|
+
|
704
724
|
:param str id: the order id
|
705
725
|
:param str symbol: unified symbol of the market the order was made in
|
706
726
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -741,7 +761,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
741
761
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
742
762
|
"""
|
743
763
|
fetch all unfilled currently open orders
|
744
|
-
|
764
|
+
|
765
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-active-orders
|
766
|
+
|
745
767
|
:param str symbol: unified market symbol
|
746
768
|
:param int [since]: the earliest time in ms to fetch open orders for
|
747
769
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -765,7 +787,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
765
787
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
766
788
|
"""
|
767
789
|
fetch all trades made by the user
|
768
|
-
|
790
|
+
|
791
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-trade-history
|
792
|
+
|
769
793
|
:param str symbol: unified market symbol
|
770
794
|
:param int [since]: the earliest time in ms to fetch trades for
|
771
795
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -790,7 +814,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
790
814
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
791
815
|
"""
|
792
816
|
fetch the deposit address for a currency associated with self account
|
793
|
-
|
817
|
+
|
818
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-withdrawal-accounts
|
819
|
+
|
794
820
|
:param str code: unified currency code
|
795
821
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
796
822
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -817,7 +843,9 @@ class bitbank(Exchange, ImplicitAPI):
|
|
817
843
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
818
844
|
"""
|
819
845
|
make a withdrawal
|
820
|
-
|
846
|
+
|
847
|
+
https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#new-withdrawal-request
|
848
|
+
|
821
849
|
:param str code: unified currency code
|
822
850
|
:param float amount: the amount to withdraw
|
823
851
|
:param str address: the address to withdraw to
|
ccxt/async_support/bitbns.py
CHANGED
@@ -569,8 +569,10 @@ class bitbns(Exchange, ImplicitAPI):
|
|
569
569
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
570
570
|
"""
|
571
571
|
create a trade order
|
572
|
-
|
573
|
-
|
572
|
+
|
573
|
+
https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/place-orders
|
574
|
+
https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/market-orders-quantity # market orders
|
575
|
+
|
574
576
|
:param str symbol: unified symbol of the market to create an order in
|
575
577
|
:param str type: 'market' or 'limit'
|
576
578
|
:param str side: 'buy' or 'sell'
|
@@ -578,8 +580,8 @@ class bitbns(Exchange, ImplicitAPI):
|
|
578
580
|
:param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
579
581
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
580
582
|
:param float [params.triggerPrice]: the price at which a trigger order is triggered at
|
581
|
-
|
582
|
-
|
583
|
+
|
584
|
+
EXCHANGE SPECIFIC PARAMETERS
|
583
585
|
:param float [params.target_rate]: *requires params.trail_rate when set, type must be 'limit'* a bracket order is placed when set
|
584
586
|
:param float [params.trail_rate]: *requires params.target_rate when set, type must be 'limit'* a bracket order is placed when set
|
585
587
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
@@ -625,8 +627,10 @@ class bitbns(Exchange, ImplicitAPI):
|
|
625
627
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
626
628
|
"""
|
627
629
|
cancels an open order
|
628
|
-
|
629
|
-
|
630
|
+
|
631
|
+
https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/cancel-orders
|
632
|
+
https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/cancel-stop-loss-orders
|
633
|
+
|
630
634
|
:param str id: order id
|
631
635
|
:param str symbol: unified symbol of the market the order was made in
|
632
636
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -654,7 +658,9 @@ class bitbns(Exchange, ImplicitAPI):
|
|
654
658
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
655
659
|
"""
|
656
660
|
fetches information on an order made by the user
|
657
|
-
|
661
|
+
|
662
|
+
https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-1/order-status
|
663
|
+
|
658
664
|
:param str id: order id
|
659
665
|
:param str symbol: unified symbol of the market the order was made in
|
660
666
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -704,8 +710,10 @@ class bitbns(Exchange, ImplicitAPI):
|
|
704
710
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
705
711
|
"""
|
706
712
|
fetch all unfilled currently open orders
|
707
|
-
|
708
|
-
|
713
|
+
|
714
|
+
https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/order-status-limit
|
715
|
+
https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/order-status-limit/order-status-stop-limit
|
716
|
+
|
709
717
|
:param str symbol: unified market symbol
|
710
718
|
:param int [since]: the earliest time in ms to fetch open orders for
|
711
719
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
ccxt/async_support/bitfinex.py
CHANGED
@@ -418,9 +418,11 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
418
418
|
|
419
419
|
async def fetch_transaction_fees(self, codes: Strings = None, params={}):
|
420
420
|
"""
|
421
|
-
|
421
|
+
@deprecated
|
422
422
|
please use fetchDepositWithdrawFees instead
|
423
|
-
|
423
|
+
|
424
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
425
|
+
|
424
426
|
:param str[]|None codes: list of unified currency codes
|
425
427
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
426
428
|
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -452,7 +454,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
452
454
|
async def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
|
453
455
|
"""
|
454
456
|
fetch deposit and withdraw fees
|
455
|
-
|
457
|
+
|
458
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-fees
|
459
|
+
|
456
460
|
:param str[]|None codes: list of unified currency codes
|
457
461
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
458
462
|
:returns dict[]: a list of `fees structures <https://docs.ccxt.com/#/?id=fee-structure>`
|
@@ -490,7 +494,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
490
494
|
async def fetch_trading_fees(self, params={}) -> TradingFees:
|
491
495
|
"""
|
492
496
|
fetch the trading fees for multiple markets
|
493
|
-
|
497
|
+
|
498
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-summary
|
499
|
+
|
494
500
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
495
501
|
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
|
496
502
|
"""
|
@@ -567,8 +573,10 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
567
573
|
async def fetch_markets(self, params={}) -> List[Market]:
|
568
574
|
"""
|
569
575
|
retrieves data on all markets for bitfinex
|
570
|
-
|
571
|
-
|
576
|
+
|
577
|
+
https://docs.bitfinex.com/v1/reference/rest-public-symbols
|
578
|
+
https://docs.bitfinex.com/v1/reference/rest-public-symbol-details
|
579
|
+
|
572
580
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
573
581
|
:returns dict[]: an array of objects representing market data
|
574
582
|
"""
|
@@ -687,7 +695,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
687
695
|
async def fetch_balance(self, params={}) -> Balances:
|
688
696
|
"""
|
689
697
|
query for balance and get the amount of funds available for trading or funds locked in orders
|
690
|
-
|
698
|
+
|
699
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-wallet-balances
|
700
|
+
|
691
701
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
692
702
|
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
|
693
703
|
"""
|
@@ -739,7 +749,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
739
749
|
async def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
|
740
750
|
"""
|
741
751
|
transfer currency internally between wallets on the same account
|
742
|
-
|
752
|
+
|
753
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-transfer-between-wallets
|
754
|
+
|
743
755
|
:param str code: unified currency code
|
744
756
|
:param float amount: amount to transfer
|
745
757
|
:param str fromAccount: account to transfer from
|
@@ -820,7 +832,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
820
832
|
async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
821
833
|
"""
|
822
834
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
823
|
-
|
835
|
+
|
836
|
+
https://docs.bitfinex.com/v1/reference/rest-public-orderbook
|
837
|
+
|
824
838
|
:param str symbol: unified symbol of the market to fetch the order book for
|
825
839
|
:param int [limit]: the maximum amount of order book entries to return
|
826
840
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -857,7 +871,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
857
871
|
async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
|
858
872
|
"""
|
859
873
|
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
860
|
-
|
874
|
+
|
875
|
+
https://docs.bitfinex.com/v1/reference/rest-public-ticker
|
876
|
+
|
861
877
|
:param str symbol: unified symbol of the market to fetch the ticker for
|
862
878
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
863
879
|
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
|
@@ -995,7 +1011,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
995
1011
|
async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = 50, params={}) -> List[Trade]:
|
996
1012
|
"""
|
997
1013
|
get the list of most recent trades for a particular symbol
|
998
|
-
|
1014
|
+
|
1015
|
+
https://docs.bitfinex.com/v1/reference/rest-public-trades
|
1016
|
+
|
999
1017
|
:param str symbol: unified symbol of the market to fetch trades for
|
1000
1018
|
:param int [since]: timestamp in ms of the earliest trade to fetch
|
1001
1019
|
:param int [limit]: the maximum amount of trades to fetch
|
@@ -1028,7 +1046,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1028
1046
|
async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
|
1029
1047
|
"""
|
1030
1048
|
fetch all trades made by the user
|
1031
|
-
|
1049
|
+
|
1050
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-past-trades
|
1051
|
+
|
1032
1052
|
:param str symbol: unified market symbol
|
1033
1053
|
:param int [since]: the earliest time in ms to fetch trades for
|
1034
1054
|
:param int [limit]: the maximum number of trades structures to retrieve
|
@@ -1052,7 +1072,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1052
1072
|
async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
|
1053
1073
|
"""
|
1054
1074
|
create a trade order
|
1055
|
-
|
1075
|
+
|
1076
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-new-order
|
1077
|
+
|
1056
1078
|
:param str symbol: unified symbol of the market to create an order in
|
1057
1079
|
:param str type: 'market' or 'limit'
|
1058
1080
|
:param str side: 'buy' or 'sell'
|
@@ -1109,7 +1131,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1109
1131
|
async def cancel_order(self, id: str, symbol: Str = None, params={}):
|
1110
1132
|
"""
|
1111
1133
|
cancels an open order
|
1112
|
-
|
1134
|
+
|
1135
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-cancel-order
|
1136
|
+
|
1113
1137
|
:param str id: order id
|
1114
1138
|
:param str symbol: not used by bitfinex cancelOrder()
|
1115
1139
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1150,7 +1174,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1150
1174
|
async def cancel_all_orders(self, symbol: Str = None, params={}):
|
1151
1175
|
"""
|
1152
1176
|
cancel all open orders
|
1153
|
-
|
1177
|
+
|
1178
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-cancel-all-orders
|
1179
|
+
|
1154
1180
|
:param str symbol: not used by bitfinex cancelAllOrders
|
1155
1181
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1156
1182
|
:returns dict: response from exchange
|
@@ -1237,7 +1263,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1237
1263
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1238
1264
|
"""
|
1239
1265
|
fetch all unfilled currently open orders
|
1240
|
-
|
1266
|
+
|
1267
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-active-orders
|
1268
|
+
|
1241
1269
|
:param str symbol: unified market symbol
|
1242
1270
|
:param int [since]: the earliest time in ms to fetch open orders for
|
1243
1271
|
:param int [limit]: the maximum number of open orders structures to retrieve
|
@@ -1257,7 +1285,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1257
1285
|
async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
1258
1286
|
"""
|
1259
1287
|
fetches information on multiple closed orders made by the user
|
1260
|
-
|
1288
|
+
|
1289
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-orders-history
|
1290
|
+
|
1261
1291
|
:param str symbol: unified market symbol of the market orders were made in
|
1262
1292
|
:param int [since]: the earliest time in ms to fetch orders for
|
1263
1293
|
:param int [limit]: the maximum number of order structures to retrieve
|
@@ -1279,7 +1309,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1279
1309
|
async def fetch_order(self, id: str, symbol: Str = None, params={}):
|
1280
1310
|
"""
|
1281
1311
|
fetches information on an order made by the user
|
1282
|
-
|
1312
|
+
|
1313
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-order-status
|
1314
|
+
|
1283
1315
|
:param str id: the order id
|
1284
1316
|
:param str symbol: not used by bitfinex fetchOrder
|
1285
1317
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -1315,7 +1347,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1315
1347
|
async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
|
1316
1348
|
"""
|
1317
1349
|
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1318
|
-
|
1350
|
+
|
1351
|
+
https://docs.bitfinex.com/reference/rest-public-candles#aggregate-funding-currency-candles
|
1352
|
+
|
1319
1353
|
:param str symbol: unified symbol of the market to fetch OHLCV data for
|
1320
1354
|
:param str timeframe: the length of time each candle represents
|
1321
1355
|
:param int [since]: timestamp in ms of the earliest candle to fetch
|
@@ -1357,7 +1391,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1357
1391
|
async def create_deposit_address(self, code: str, params={}):
|
1358
1392
|
"""
|
1359
1393
|
create a currency deposit address
|
1360
|
-
|
1394
|
+
|
1395
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-deposit
|
1396
|
+
|
1361
1397
|
:param str code: unified currency code of the currency for the deposit address
|
1362
1398
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1363
1399
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1371,7 +1407,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1371
1407
|
async def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
|
1372
1408
|
"""
|
1373
1409
|
fetch the deposit address for a currency associated with self account
|
1374
|
-
|
1410
|
+
|
1411
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-deposit
|
1412
|
+
|
1375
1413
|
:param str code: unified currency code
|
1376
1414
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1377
1415
|
:returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
|
@@ -1402,7 +1440,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1402
1440
|
async def fetch_deposits_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
|
1403
1441
|
"""
|
1404
1442
|
fetch history of deposits and withdrawals
|
1405
|
-
|
1443
|
+
|
1444
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-deposit-withdrawal-history
|
1445
|
+
|
1406
1446
|
:param str code: unified currency code for the currency of the deposit/withdrawals
|
1407
1447
|
:param int [since]: timestamp in ms of the earliest deposit/withdrawal, default is None
|
1408
1448
|
:param int [limit]: max number of deposit/withdrawals to return, default is None
|
@@ -1532,7 +1572,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1532
1572
|
async def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
|
1533
1573
|
"""
|
1534
1574
|
make a withdrawal
|
1535
|
-
|
1575
|
+
|
1576
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-withdrawal
|
1577
|
+
|
1536
1578
|
:param str code: unified currency code
|
1537
1579
|
:param float amount: the amount to withdraw
|
1538
1580
|
:param str address: the address to withdraw to
|
@@ -1578,7 +1620,9 @@ class bitfinex(Exchange, ImplicitAPI):
|
|
1578
1620
|
async def fetch_positions(self, symbols: Strings = None, params={}):
|
1579
1621
|
"""
|
1580
1622
|
fetch all open positions
|
1581
|
-
|
1623
|
+
|
1624
|
+
https://docs.bitfinex.com/v1/reference/rest-auth-active-positions
|
1625
|
+
|
1582
1626
|
:param str[]|None symbols: list of unified market symbols
|
1583
1627
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
1584
1628
|
:returns dict[]: a list of `position structure <https://docs.ccxt.com/#/?id=position-structure>`
|