ccxt 4.2.31__py2.py3-none-any.whl → 4.2.34__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.

Potentially problematic release.


This version of ccxt might be problematic. Click here for more details.

Files changed (242) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +4 -3
  3. ccxt/alpaca.py +1 -1
  4. ccxt/ascendex.py +6 -6
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +4 -3
  7. ccxt/async_support/alpaca.py +1 -1
  8. ccxt/async_support/ascendex.py +6 -6
  9. ccxt/async_support/base/exchange.py +62 -39
  10. ccxt/async_support/bigone.py +25 -5
  11. ccxt/async_support/binance.py +16 -15
  12. ccxt/async_support/bingx.py +10 -9
  13. ccxt/async_support/bit2c.py +13 -1
  14. ccxt/async_support/bitbank.py +2 -2
  15. ccxt/async_support/bitbns.py +1 -1
  16. ccxt/async_support/bitfinex.py +5 -5
  17. ccxt/async_support/bitfinex2.py +6 -6
  18. ccxt/async_support/bitflyer.py +5 -5
  19. ccxt/async_support/bitforex.py +1 -1
  20. ccxt/async_support/bitget.py +11 -11
  21. ccxt/async_support/bithumb.py +2 -2
  22. ccxt/async_support/bitmart.py +9 -9
  23. ccxt/async_support/bitmex.py +3 -3
  24. ccxt/async_support/bitopro.py +2 -2
  25. ccxt/async_support/bitrue.py +8 -8
  26. ccxt/async_support/bitso.py +4 -4
  27. ccxt/async_support/bitstamp.py +2 -2
  28. ccxt/async_support/bitteam.py +1 -1
  29. ccxt/async_support/bitvavo.py +3 -3
  30. ccxt/async_support/bl3p.py +1 -1
  31. ccxt/async_support/blockchaincom.py +3 -3
  32. ccxt/async_support/btcalpha.py +1 -1
  33. ccxt/async_support/btcbox.py +1 -1
  34. ccxt/async_support/btcmarkets.py +2 -2
  35. ccxt/async_support/btcturk.py +1 -1
  36. ccxt/async_support/bybit.py +9 -9
  37. ccxt/async_support/cex.py +1 -1
  38. ccxt/async_support/coinbase.py +6 -6
  39. ccxt/async_support/coinbasepro.py +2 -2
  40. ccxt/async_support/coincheck.py +1 -1
  41. ccxt/async_support/coinex.py +9 -9
  42. ccxt/async_support/coinlist.py +4 -4
  43. ccxt/async_support/coinmate.py +2 -2
  44. ccxt/async_support/coinmetro.py +2 -2
  45. ccxt/async_support/coinone.py +1 -1
  46. ccxt/async_support/coinsph.py +2 -2
  47. ccxt/async_support/coinspot.py +1 -1
  48. ccxt/async_support/cryptocom.py +14 -14
  49. ccxt/async_support/currencycom.py +1 -1
  50. ccxt/async_support/delta.py +2 -2
  51. ccxt/async_support/deribit.py +4 -4
  52. ccxt/async_support/digifinex.py +6 -6
  53. ccxt/async_support/exmo.py +2 -2
  54. ccxt/async_support/gate.py +41 -37
  55. ccxt/async_support/gemini.py +2 -2
  56. ccxt/async_support/hitbtc.py +5 -5
  57. ccxt/async_support/hollaex.py +2 -2
  58. ccxt/async_support/htx.py +10 -10
  59. ccxt/async_support/huobijp.py +4 -4
  60. ccxt/async_support/idex.py +2 -2
  61. ccxt/async_support/independentreserve.py +2 -2
  62. ccxt/async_support/indodax.py +2 -2
  63. ccxt/async_support/kraken.py +42 -4
  64. ccxt/async_support/krakenfutures.py +5 -5
  65. ccxt/async_support/kucoin.py +8 -8
  66. ccxt/async_support/kucoinfutures.py +4 -4
  67. ccxt/async_support/kuna.py +2 -2
  68. ccxt/async_support/latoken.py +3 -3
  69. ccxt/async_support/lbank.py +2 -2
  70. ccxt/async_support/luno.py +1 -1
  71. ccxt/async_support/lykke.py +2 -2
  72. ccxt/async_support/mercado.py +2 -2
  73. ccxt/async_support/mexc.py +7 -6
  74. ccxt/async_support/ndax.py +2 -2
  75. ccxt/async_support/novadax.py +4 -4
  76. ccxt/async_support/oceanex.py +1 -1
  77. ccxt/async_support/okcoin.py +5 -5
  78. ccxt/async_support/okx.py +11 -10
  79. ccxt/async_support/onetrading.py +2 -2
  80. ccxt/async_support/p2b.py +1 -1
  81. ccxt/async_support/paymium.py +3 -3
  82. ccxt/async_support/phemex.py +13 -13
  83. ccxt/async_support/poloniex.py +4 -4
  84. ccxt/async_support/poloniexfutures.py +1 -1
  85. ccxt/async_support/probit.py +5 -5
  86. ccxt/async_support/timex.py +1 -1
  87. ccxt/async_support/tokocrypto.py +4 -4
  88. ccxt/async_support/upbit.py +2 -2
  89. ccxt/async_support/wavesexchange.py +4 -3
  90. ccxt/async_support/wazirx.py +1 -1
  91. ccxt/async_support/whitebit.py +5 -5
  92. ccxt/async_support/woo.py +6 -6
  93. ccxt/async_support/yobit.py +41 -2
  94. ccxt/async_support/zaif.py +2 -2
  95. ccxt/async_support/zonda.py +4 -4
  96. ccxt/base/exchange.py +67 -40
  97. ccxt/base/types.py +10 -0
  98. ccxt/bigone.py +25 -5
  99. ccxt/binance.py +16 -15
  100. ccxt/bingx.py +10 -9
  101. ccxt/bit2c.py +13 -1
  102. ccxt/bitbank.py +2 -2
  103. ccxt/bitbns.py +1 -1
  104. ccxt/bitfinex.py +5 -5
  105. ccxt/bitfinex2.py +6 -6
  106. ccxt/bitflyer.py +5 -5
  107. ccxt/bitforex.py +1 -1
  108. ccxt/bitget.py +11 -11
  109. ccxt/bithumb.py +2 -2
  110. ccxt/bitmart.py +9 -9
  111. ccxt/bitmex.py +3 -3
  112. ccxt/bitopro.py +2 -2
  113. ccxt/bitrue.py +8 -8
  114. ccxt/bitso.py +4 -4
  115. ccxt/bitstamp.py +2 -2
  116. ccxt/bitteam.py +1 -1
  117. ccxt/bitvavo.py +3 -3
  118. ccxt/bl3p.py +1 -1
  119. ccxt/blockchaincom.py +3 -3
  120. ccxt/btcalpha.py +1 -1
  121. ccxt/btcbox.py +1 -1
  122. ccxt/btcmarkets.py +2 -2
  123. ccxt/btcturk.py +1 -1
  124. ccxt/bybit.py +9 -9
  125. ccxt/cex.py +1 -1
  126. ccxt/coinbase.py +6 -6
  127. ccxt/coinbasepro.py +2 -2
  128. ccxt/coincheck.py +1 -1
  129. ccxt/coinex.py +9 -9
  130. ccxt/coinlist.py +4 -4
  131. ccxt/coinmate.py +2 -2
  132. ccxt/coinmetro.py +2 -2
  133. ccxt/coinone.py +1 -1
  134. ccxt/coinsph.py +2 -2
  135. ccxt/coinspot.py +1 -1
  136. ccxt/cryptocom.py +14 -14
  137. ccxt/currencycom.py +1 -1
  138. ccxt/delta.py +2 -2
  139. ccxt/deribit.py +4 -4
  140. ccxt/digifinex.py +6 -6
  141. ccxt/exmo.py +2 -2
  142. ccxt/gate.py +41 -37
  143. ccxt/gemini.py +2 -2
  144. ccxt/hitbtc.py +5 -5
  145. ccxt/hollaex.py +2 -2
  146. ccxt/htx.py +10 -10
  147. ccxt/huobijp.py +4 -4
  148. ccxt/idex.py +2 -2
  149. ccxt/independentreserve.py +2 -2
  150. ccxt/indodax.py +2 -2
  151. ccxt/kraken.py +42 -4
  152. ccxt/krakenfutures.py +5 -5
  153. ccxt/kucoin.py +8 -8
  154. ccxt/kucoinfutures.py +4 -4
  155. ccxt/kuna.py +2 -2
  156. ccxt/latoken.py +3 -3
  157. ccxt/lbank.py +2 -2
  158. ccxt/luno.py +1 -1
  159. ccxt/lykke.py +2 -2
  160. ccxt/mercado.py +2 -2
  161. ccxt/mexc.py +7 -6
  162. ccxt/ndax.py +2 -2
  163. ccxt/novadax.py +4 -4
  164. ccxt/oceanex.py +1 -1
  165. ccxt/okcoin.py +5 -5
  166. ccxt/okx.py +11 -10
  167. ccxt/onetrading.py +2 -2
  168. ccxt/p2b.py +1 -1
  169. ccxt/paymium.py +3 -3
  170. ccxt/phemex.py +13 -13
  171. ccxt/poloniex.py +4 -4
  172. ccxt/poloniexfutures.py +1 -1
  173. ccxt/pro/__init__.py +1 -1
  174. ccxt/pro/alpaca.py +8 -4
  175. ccxt/pro/ascendex.py +1 -2
  176. ccxt/pro/binance.py +14 -10
  177. ccxt/pro/bingx.py +1 -1
  178. ccxt/pro/bitfinex.py +21 -22
  179. ccxt/pro/bitfinex2.py +13 -15
  180. ccxt/pro/bitget.py +3 -1
  181. ccxt/pro/bitmart.py +3 -7
  182. ccxt/pro/bitmex.py +4 -6
  183. ccxt/pro/bitopro.py +2 -4
  184. ccxt/pro/bitrue.py +1 -1
  185. ccxt/pro/bitstamp.py +2 -3
  186. ccxt/pro/bitvavo.py +10 -5
  187. ccxt/pro/blockchaincom.py +22 -22
  188. ccxt/pro/bybit.py +5 -5
  189. ccxt/pro/cex.py +7 -7
  190. ccxt/pro/coinbase.py +3 -2
  191. ccxt/pro/coinbasepro.py +1 -1
  192. ccxt/pro/coinex.py +15 -13
  193. ccxt/pro/currencycom.py +5 -6
  194. ccxt/pro/deribit.py +4 -4
  195. ccxt/pro/exmo.py +15 -13
  196. ccxt/pro/gate.py +1 -1
  197. ccxt/pro/gemini.py +4 -2
  198. ccxt/pro/hitbtc.py +10 -9
  199. ccxt/pro/hollaex.py +2 -2
  200. ccxt/pro/htx.py +6 -6
  201. ccxt/pro/huobijp.py +3 -4
  202. ccxt/pro/idex.py +1 -1
  203. ccxt/pro/independentreserve.py +14 -13
  204. ccxt/pro/kraken.py +10 -14
  205. ccxt/pro/krakenfutures.py +10 -6
  206. ccxt/pro/kucoin.py +10 -10
  207. ccxt/pro/kucoinfutures.py +11 -10
  208. ccxt/pro/lbank.py +10 -10
  209. ccxt/pro/luno.py +12 -14
  210. ccxt/pro/mexc.py +3 -2
  211. ccxt/pro/ndax.py +7 -11
  212. ccxt/pro/okcoin.py +7 -10
  213. ccxt/pro/okx.py +6 -9
  214. ccxt/pro/onetrading.py +16 -15
  215. ccxt/pro/p2b.py +5 -3
  216. ccxt/pro/phemex.py +16 -11
  217. ccxt/pro/poloniex.py +6 -4
  218. ccxt/pro/poloniexfutures.py +13 -9
  219. ccxt/pro/probit.py +15 -12
  220. ccxt/pro/upbit.py +8 -8
  221. ccxt/pro/wazirx.py +6 -3
  222. ccxt/pro/woo.py +9 -7
  223. ccxt/probit.py +5 -5
  224. ccxt/test/base/test_order_book.py +7 -7
  225. ccxt/test/base/test_shared_methods.py +1 -1
  226. ccxt/test/test_async.py +86 -36
  227. ccxt/test/test_sync.py +86 -36
  228. ccxt/timex.py +1 -1
  229. ccxt/tokocrypto.py +4 -4
  230. ccxt/upbit.py +2 -2
  231. ccxt/wavesexchange.py +4 -3
  232. ccxt/wazirx.py +1 -1
  233. ccxt/whitebit.py +5 -5
  234. ccxt/woo.py +6 -6
  235. ccxt/yobit.py +41 -2
  236. ccxt/zaif.py +2 -2
  237. ccxt/zonda.py +4 -4
  238. {ccxt-4.2.31.dist-info → ccxt-4.2.34.dist-info}/METADATA +9 -8
  239. ccxt-4.2.34.dist-info/RECORD +438 -0
  240. ccxt-4.2.31.dist-info/RECORD +0 -438
  241. {ccxt-4.2.31.dist-info → ccxt-4.2.34.dist-info}/WHEEL +0 -0
  242. {ccxt-4.2.31.dist-info → ccxt-4.2.34.dist-info}/top_level.txt +0 -0
@@ -6,7 +6,7 @@
6
6
  from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.bigone import ImplicitAPI
8
8
  import asyncio
9
- from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Bool, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, TransferEntry, OrderBook, OrderSide, OrderType, Str, Bool, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import PermissionDenied
@@ -522,6 +522,7 @@ class bigone(Exchange, ImplicitAPI):
522
522
  async def fetch_markets(self, params={}):
523
523
  """
524
524
  retrieves data on all markets for bigone
525
+ :see: https://open.big.one/docs/spot_asset_pair.html
525
526
  :param dict [params]: extra parameters specific to the exchange API endpoint
526
527
  :returns dict[]: an array of objects representing market data
527
528
  """
@@ -780,6 +781,7 @@ class bigone(Exchange, ImplicitAPI):
780
781
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
781
782
  """
782
783
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
784
+ :see: https://open.big.one/docs/spot_tickers.html
783
785
  :param str symbol: unified symbol of the market to fetch the ticker for
784
786
  :param dict [params]: extra parameters specific to the exchange API endpoint
785
787
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -818,6 +820,7 @@ class bigone(Exchange, ImplicitAPI):
818
820
  async def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
819
821
  """
820
822
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
823
+ :see: https://open.big.one/docs/spot_tickers.html
821
824
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
822
825
  :param dict [params]: extra parameters specific to the exchange API endpoint
823
826
  :returns dict: a dictionary of `ticker structures <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -899,6 +902,7 @@ class bigone(Exchange, ImplicitAPI):
899
902
  async def fetch_time(self, params={}):
900
903
  """
901
904
  fetches the current integer timestamp in milliseconds from the exchange server
905
+ :see: https://open.big.one/docs/spot_ping.html
902
906
  :param dict [params]: extra parameters specific to the exchange API endpoint
903
907
  :returns int: the current integer timestamp in milliseconds from the exchange server
904
908
  """
@@ -917,6 +921,7 @@ class bigone(Exchange, ImplicitAPI):
917
921
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
918
922
  """
919
923
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
924
+ :see: https://open.big.one/docs/contract_misc.html#get-orderbook-snapshot
920
925
  :param str symbol: unified symbol of the market to fetch the order book for
921
926
  :param int [limit]: the maximum amount of order book entries to return
922
927
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1131,6 +1136,7 @@ class bigone(Exchange, ImplicitAPI):
1131
1136
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1132
1137
  """
1133
1138
  get the list of most recent trades for a particular symbol
1139
+ :see: https://open.big.one/docs/spot_asset_pair_trade.html
1134
1140
  :param str symbol: unified symbol of the market to fetch trades for
1135
1141
  :param int [since]: timestamp in ms of the earliest trade to fetch
1136
1142
  :param int [limit]: the maximum amount of trades to fetch
@@ -1192,6 +1198,7 @@ class bigone(Exchange, ImplicitAPI):
1192
1198
  async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1193
1199
  """
1194
1200
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1201
+ :see: https://open.big.one/docs/spot_asset_pair_candle.html
1195
1202
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1196
1203
  :param str timeframe: the length of time each candle represents
1197
1204
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1262,6 +1269,8 @@ class bigone(Exchange, ImplicitAPI):
1262
1269
  async def fetch_balance(self, params={}) -> Balances:
1263
1270
  """
1264
1271
  query for balance and get the amount of funds available for trading or funds locked in orders
1272
+ :see: https://open.big.one/docs/fund_accounts.html
1273
+ :see: https://open.big.one/docs/spot_accounts.html
1265
1274
  :param dict [params]: extra parameters specific to the exchange API endpoint
1266
1275
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
1267
1276
  """
@@ -1381,7 +1390,7 @@ class bigone(Exchange, ImplicitAPI):
1381
1390
  params['createMarketBuyOrderRequiresPrice'] = False
1382
1391
  return await self.create_order(symbol, 'market', 'buy', cost, None, params)
1383
1392
 
1384
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
1393
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
1385
1394
  """
1386
1395
  create a trade order
1387
1396
  :see: https://open.big.one/docs/spot_orders.html#create-order
@@ -1478,6 +1487,7 @@ class bigone(Exchange, ImplicitAPI):
1478
1487
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
1479
1488
  """
1480
1489
  cancels an open order
1490
+ :see: https://open.big.one/docs/spot_orders.html#cancel-order
1481
1491
  :param str id: order id
1482
1492
  :param str symbol: Not used by bigone cancelOrder()
1483
1493
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1504,6 +1514,7 @@ class bigone(Exchange, ImplicitAPI):
1504
1514
  async def cancel_all_orders(self, symbol: Str = None, params={}):
1505
1515
  """
1506
1516
  cancel all open orders
1517
+ :see: https://open.big.one/docs/spot_orders.html#cancel-all-orders
1507
1518
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
1508
1519
  :param dict [params]: extra parameters specific to the exchange API endpoint
1509
1520
  :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1531,6 +1542,7 @@ class bigone(Exchange, ImplicitAPI):
1531
1542
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
1532
1543
  """
1533
1544
  fetches information on an order made by the user
1545
+ :see: https://open.big.one/docs/spot_orders.html#get-one-order
1534
1546
  :param str symbol: not used by bigone fetchOrder
1535
1547
  :param dict [params]: extra parameters specific to the exchange API endpoint
1536
1548
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1544,6 +1556,7 @@ class bigone(Exchange, ImplicitAPI):
1544
1556
  async def fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1545
1557
  """
1546
1558
  fetches information on multiple orders made by the user
1559
+ :see: https://open.big.one/docs/spot_orders.html#get-user-orders-in-one-asset-pair
1547
1560
  :param str symbol: unified market symbol of the market orders were made in
1548
1561
  :param int [since]: the earliest time in ms to fetch orders for
1549
1562
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1590,6 +1603,7 @@ class bigone(Exchange, ImplicitAPI):
1590
1603
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
1591
1604
  """
1592
1605
  fetch all trades made by the user
1606
+ :see: https://open.big.one/docs/spot_trade.html#trades-of-user
1593
1607
  :param str symbol: unified market symbol
1594
1608
  :param int [since]: the earliest time in ms to fetch trades for
1595
1609
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -1655,6 +1669,7 @@ class bigone(Exchange, ImplicitAPI):
1655
1669
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1656
1670
  """
1657
1671
  fetch all unfilled currently open orders
1672
+ :see: https://open.big.one/docs/spot_orders.html#get-user-orders-in-one-asset-pair
1658
1673
  :param str symbol: unified market symbol
1659
1674
  :param int [since]: the earliest time in ms to fetch open orders for
1660
1675
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -1669,6 +1684,7 @@ class bigone(Exchange, ImplicitAPI):
1669
1684
  async def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
1670
1685
  """
1671
1686
  fetches information on multiple closed orders made by the user
1687
+ :see: https://open.big.one/docs/spot_orders.html#get-user-orders-in-one-asset-pair
1672
1688
  :param str symbol: unified market symbol of the market orders were made in
1673
1689
  :param int [since]: the earliest time in ms to fetch orders for
1674
1690
  :param int [limit]: the maximum number of order structures to retrieve
@@ -1715,6 +1731,7 @@ class bigone(Exchange, ImplicitAPI):
1715
1731
  async def fetch_deposit_address(self, code: str, params={}):
1716
1732
  """
1717
1733
  fetch the deposit address for a currency associated with self account
1734
+ :see: https://open.big.one/docs/spot_deposit.html#get-deposite-address-of-one-asset-of-user
1718
1735
  :param str code: unified currency code
1719
1736
  :param dict [params]: extra parameters specific to the exchange API endpoint
1720
1737
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1862,6 +1879,7 @@ class bigone(Exchange, ImplicitAPI):
1862
1879
  async def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1863
1880
  """
1864
1881
  fetch all deposits made to an account
1882
+ :see: https://open.big.one/docs/spot_deposit.html#deposit-of-user
1865
1883
  :param str code: unified currency code
1866
1884
  :param int [since]: the earliest time in ms to fetch deposits for
1867
1885
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -1909,6 +1927,7 @@ class bigone(Exchange, ImplicitAPI):
1909
1927
  async def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
1910
1928
  """
1911
1929
  fetch all withdrawals made from an account
1930
+ :see: https://open.big.one/docs/spot_withdrawal.html#get-withdrawals-of-user
1912
1931
  :param str code: unified currency code
1913
1932
  :param int [since]: the earliest time in ms to fetch withdrawals for
1914
1933
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -1953,7 +1972,7 @@ class bigone(Exchange, ImplicitAPI):
1953
1972
  withdrawals = self.safe_value(response, 'data', [])
1954
1973
  return self.parse_transactions(withdrawals, currency, since, limit)
1955
1974
 
1956
- async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
1975
+ async def transfer(self, code: str, amount: float, fromAccount, toAccount, params={}) -> TransferEntry:
1957
1976
  """
1958
1977
  transfer currency internally between wallets on the same account
1959
1978
  :see: https://open.big.one/docs/spot_transfer.html#transfer-of-user
@@ -2009,7 +2028,7 @@ class bigone(Exchange, ImplicitAPI):
2009
2028
  'id': None,
2010
2029
  'timestamp': None,
2011
2030
  'datetime': None,
2012
- 'currency': code,
2031
+ 'currency': None,
2013
2032
  'amount': None,
2014
2033
  'fromAccount': None,
2015
2034
  'toAccount': None,
@@ -2022,9 +2041,10 @@ class bigone(Exchange, ImplicitAPI):
2022
2041
  }
2023
2042
  return self.safe_string(statuses, status, 'failed')
2024
2043
 
2025
- async def withdraw(self, code: str, amount, address, tag=None, params={}):
2044
+ async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
2026
2045
  """
2027
2046
  make a withdrawal
2047
+ :see: https://open.big.one/docs/spot_withdrawal.html#create-withdrawal-of-user
2028
2048
  :param str code: unified currency code
2029
2049
  :param float amount: the amount to withdraw
2030
2050
  :param str address: the address to withdraw to
@@ -8,7 +8,7 @@ from ccxt.abstract.binance import ImplicitAPI
8
8
  import asyncio
9
9
  import hashlib
10
10
  import json
11
- from ccxt.base.types import Balances, Currency, Greeks, Int, Market, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
11
+ from ccxt.base.types import Balances, Currency, Greeks, Int, Market, Order, TransferEntry, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
12
12
  from typing import List
13
13
  from ccxt.base.errors import ExchangeError
14
14
  from ccxt.base.errors import PermissionDenied
@@ -3090,7 +3090,7 @@ class binance(Exchange, ImplicitAPI):
3090
3090
  account['debt'] = Precise.string_add(debt, interest)
3091
3091
  return account
3092
3092
 
3093
- def parse_balance(self, response, type=None, marginMode=None) -> Balances:
3093
+ def parse_balance_custom(self, response, type=None, marginMode=None) -> Balances:
3094
3094
  result = {
3095
3095
  'info': response,
3096
3096
  }
@@ -3408,7 +3408,7 @@ class binance(Exchange, ImplicitAPI):
3408
3408
  # }
3409
3409
  # ]
3410
3410
  #
3411
- return self.parse_balance(response, type, marginMode)
3411
+ return self.parse_balance_custom(response, type, marginMode)
3412
3412
 
3413
3413
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
3414
3414
  """
@@ -4355,7 +4355,7 @@ class binance(Exchange, ImplicitAPI):
4355
4355
  #
4356
4356
  return self.parse_trades(response, market, since, limit)
4357
4357
 
4358
- async def edit_spot_order(self, id: str, symbol, type, side, amount, price=None, params={}):
4358
+ async def edit_spot_order(self, id: str, symbol, type, side, amount: float, price: float = None, params={}):
4359
4359
  """
4360
4360
  * @ignore
4361
4361
  edit a trade order
@@ -4418,7 +4418,7 @@ class binance(Exchange, ImplicitAPI):
4418
4418
  data = self.safe_value(response, 'newOrderResponse')
4419
4419
  return self.parse_order(data, market)
4420
4420
 
4421
- def edit_spot_order_request(self, id: str, symbol, type, side, amount, price=None, params={}):
4421
+ def edit_spot_order_request(self, id: str, symbol, type, side, amount: float, price: float = None, params={}):
4422
4422
  """
4423
4423
  * @ignore
4424
4424
  helper function to build request for editSpotOrder
@@ -4523,7 +4523,7 @@ class binance(Exchange, ImplicitAPI):
4523
4523
  params = self.omit(params, ['quoteOrderQty', 'cost', 'stopPrice', 'newClientOrderId', 'clientOrderId', 'postOnly'])
4524
4524
  return self.extend(request, params)
4525
4525
 
4526
- async def edit_contract_order(self, id: str, symbol, type, side, amount, price=None, params={}):
4526
+ async def edit_contract_order(self, id: str, symbol, type, side, amount: float, price: float = None, params={}):
4527
4527
  """
4528
4528
  edit a trade order
4529
4529
  :see: https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade
@@ -4946,7 +4946,7 @@ class binance(Exchange, ImplicitAPI):
4946
4946
  #
4947
4947
  return self.parse_orders(response)
4948
4948
 
4949
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
4949
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
4950
4950
  """
4951
4951
  create a trade order
4952
4952
  :see: https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
@@ -4995,7 +4995,7 @@ class binance(Exchange, ImplicitAPI):
4995
4995
  response = await getattr(self, method)(request)
4996
4996
  return self.parse_order(response, market)
4997
4997
 
4998
- def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
4998
+ def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
4999
4999
  """
5000
5000
  * @ignore
5001
5001
  helper function to build request
@@ -5021,7 +5021,7 @@ class binance(Exchange, ImplicitAPI):
5021
5021
  stopLossPrice = self.safe_value(params, 'stopLossPrice', triggerPrice) # fallback to stopLoss
5022
5022
  takeProfitPrice = self.safe_value(params, 'takeProfitPrice')
5023
5023
  trailingDelta = self.safe_value(params, 'trailingDelta')
5024
- trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activationPrice', price)
5024
+ trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activationPrice', self.number_to_string(price))
5025
5025
  trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRate')
5026
5026
  isTrailingPercentOrder = trailingPercent is not None
5027
5027
  isStopLoss = stopLossPrice is not None or trailingDelta is not None
@@ -6433,7 +6433,7 @@ class binance(Exchange, ImplicitAPI):
6433
6433
  'amount': amount,
6434
6434
  }
6435
6435
 
6436
- async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
6436
+ async def transfer(self, code: str, amount: float, fromAccount, toAccount, params={}) -> TransferEntry:
6437
6437
  """
6438
6438
  transfer currency internally between wallets on the same account
6439
6439
  :see: https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data
@@ -6883,7 +6883,7 @@ class binance(Exchange, ImplicitAPI):
6883
6883
  }
6884
6884
  return result
6885
6885
 
6886
- async def withdraw(self, code: str, amount, address, tag=None, params={}):
6886
+ async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
6887
6887
  """
6888
6888
  make a withdrawal
6889
6889
  :see: https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
@@ -8208,7 +8208,7 @@ class binance(Exchange, ImplicitAPI):
8208
8208
  raise NotSupported(self.id + ' fetchFundingHistory() supports linear and inverse contracts only')
8209
8209
  return self.parse_incomes(response, market, since, limit)
8210
8210
 
8211
- async def set_leverage(self, leverage, symbol: Str = None, params={}):
8211
+ async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
8212
8212
  """
8213
8213
  set the level of leverage for a market
8214
8214
  :see: https://binance-docs.github.io/apidocs/futures/en/#change-initial-leverage-trade
@@ -8848,7 +8848,7 @@ class binance(Exchange, ImplicitAPI):
8848
8848
  return entry[1]
8849
8849
  return self.safe_value(config, 'cost', 1)
8850
8850
 
8851
- async def request(self, path, api='public', method='GET', params={}, headers=None, body=None, config={}, context={}):
8851
+ async def request(self, path, api='public', method='GET', params={}, headers=None, body=None, config={}):
8852
8852
  response = await self.fetch2(path, api, method, params, headers, body, config)
8853
8853
  # a workaround for {"code":-2015,"msg":"Invalid API-key, IP, or permissions for action."}
8854
8854
  if api == 'private':
@@ -9226,7 +9226,7 @@ class binance(Exchange, ImplicitAPI):
9226
9226
  #
9227
9227
  return self.parse_margin_loan(response, currency)
9228
9228
 
9229
- async def borrow_cross_margin(self, code: str, amount, params={}):
9229
+ async def borrow_cross_margin(self, code: str, amount: float, params={}):
9230
9230
  """
9231
9231
  create a loan to borrow margin
9232
9232
  :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-repay-margin
@@ -9252,7 +9252,7 @@ class binance(Exchange, ImplicitAPI):
9252
9252
  #
9253
9253
  return self.parse_margin_loan(response, currency)
9254
9254
 
9255
- async def borrow_isolated_margin(self, symbol: str, code: str, amount, params={}):
9255
+ async def borrow_isolated_margin(self, symbol: str, code: str, amount: float, params={}):
9256
9256
  """
9257
9257
  create a loan to borrow margin
9258
9258
  :see: https://binance-docs.github.io/apidocs/spot/en/#margin-account-borrow-repay-margin
@@ -9421,6 +9421,7 @@ class binance(Exchange, ImplicitAPI):
9421
9421
  return item
9422
9422
  else:
9423
9423
  return self.parse_open_interest(response, market)
9424
+ return None
9424
9425
 
9425
9426
  def parse_open_interest(self, interest, market: Market = None):
9426
9427
  timestamp = self.safe_integer_2(interest, 'timestamp', 'time')
@@ -8,7 +8,7 @@ from ccxt.abstract.bingx import ImplicitAPI
8
8
  import asyncio
9
9
  import hashlib
10
10
  import numbers
11
- from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, Transaction
11
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, TransferEntry, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, Transaction
12
12
  from typing import List
13
13
  from ccxt.base.errors import ExchangeError
14
14
  from ccxt.base.errors import PermissionDenied
@@ -1680,7 +1680,7 @@ class bingx(Exchange, ImplicitAPI):
1680
1680
  params['quoteOrderQty'] = cost
1681
1681
  return await self.create_order(symbol, 'market', 'sell', cost, None, params)
1682
1682
 
1683
- def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
1683
+ def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
1684
1684
  """
1685
1685
  * @ignore
1686
1686
  helper function to build request
@@ -1783,6 +1783,7 @@ class bingx(Exchange, ImplicitAPI):
1783
1783
  requestTrailingPercent = Precise.string_div(trailingPercent, '100')
1784
1784
  request['priceRate'] = self.parse_to_numeric(requestTrailingPercent)
1785
1785
  if isStopLoss or isTakeProfit:
1786
+ stringifiedAmount = self.number_to_string(amount)
1786
1787
  if isStopLoss:
1787
1788
  slTriggerPrice = self.safe_string_2(stopLoss, 'triggerPrice', 'stopPrice', stopLoss)
1788
1789
  slWorkingType = self.safe_string(stopLoss, 'workingType', 'MARK_PRICE')
@@ -1795,7 +1796,7 @@ class bingx(Exchange, ImplicitAPI):
1795
1796
  slPrice = self.safe_string(stopLoss, 'price')
1796
1797
  if slPrice is not None:
1797
1798
  slRequest['price'] = self.parse_to_numeric(self.price_to_precision(symbol, slPrice))
1798
- slQuantity = self.safe_string(stopLoss, 'quantity', amount)
1799
+ slQuantity = self.safe_string(stopLoss, 'quantity', stringifiedAmount)
1799
1800
  slRequest['quantity'] = self.parse_to_numeric(self.amount_to_precision(symbol, slQuantity))
1800
1801
  request['stopLoss'] = self.json(slRequest)
1801
1802
  if isTakeProfit:
@@ -1810,7 +1811,7 @@ class bingx(Exchange, ImplicitAPI):
1810
1811
  slPrice = self.safe_string(takeProfit, 'price')
1811
1812
  if slPrice is not None:
1812
1813
  tpRequest['price'] = self.parse_to_numeric(self.price_to_precision(symbol, slPrice))
1813
- tkQuantity = self.safe_string(takeProfit, 'quantity', amount)
1814
+ tkQuantity = self.safe_string(takeProfit, 'quantity', stringifiedAmount)
1814
1815
  tpRequest['quantity'] = self.parse_to_numeric(self.amount_to_precision(symbol, tkQuantity))
1815
1816
  request['takeProfit'] = self.json(tpRequest)
1816
1817
  positionSide = None
@@ -1823,7 +1824,7 @@ class bingx(Exchange, ImplicitAPI):
1823
1824
  params = self.omit(params, ['reduceOnly', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingPercent', 'takeProfit', 'stopLoss', 'clientOrderId'])
1824
1825
  return self.extend(request, params)
1825
1826
 
1826
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
1827
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
1827
1828
  """
1828
1829
  create a trade order
1829
1830
  :see: https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Trade%20order
@@ -2682,7 +2683,7 @@ class bingx(Exchange, ImplicitAPI):
2682
2683
  orders = self.safe_value(data, 'orders', [])
2683
2684
  return self.parse_orders(orders, market, since, limit)
2684
2685
 
2685
- async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
2686
+ async def transfer(self, code: str, amount: float, fromAccount, toAccount, params={}) -> TransferEntry:
2686
2687
  """
2687
2688
  transfer currency internally between wallets on the same account
2688
2689
  :see: https://bingx-api.github.io/docs/#/spot/account-api.html#User%20Universal%20Transfer
@@ -3138,7 +3139,7 @@ class bingx(Exchange, ImplicitAPI):
3138
3139
  #
3139
3140
  return response
3140
3141
 
3141
- async def set_leverage(self, leverage, symbol: Str = None, params={}):
3142
+ async def set_leverage(self, leverage: Int, symbol: Str = None, params={}):
3142
3143
  """
3143
3144
  set the level of leverage for a market
3144
3145
  :see: https://bingx-api.github.io/docs/#/swapV2/trade-api.html#Switch%20Leverage
@@ -3334,7 +3335,7 @@ class bingx(Exchange, ImplicitAPI):
3334
3335
  coins = self.safe_value(response, 'data')
3335
3336
  return self.parse_deposit_withdraw_fees(coins, codes, 'coin')
3336
3337
 
3337
- async def withdraw(self, code: str, amount, address, tag=None, params={}):
3338
+ async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
3338
3339
  """
3339
3340
  make a withdrawal
3340
3341
  :see: https://bingx-api.github.io/docs/#/common/account-api.html#Withdraw
@@ -3372,7 +3373,7 @@ class bingx(Exchange, ImplicitAPI):
3372
3373
  # "id":"1197073063359000577"
3373
3374
  # }
3374
3375
  # }
3375
- self.parse_transaction(data)
3376
+ return self.parse_transaction(data)
3376
3377
 
3377
3378
  def parse_params(self, params):
3378
3379
  sortedParams = self.keysort(params)
@@ -212,6 +212,7 @@ class bit2c(Exchange, ImplicitAPI):
212
212
  async def fetch_balance(self, params={}) -> Balances:
213
213
  """
214
214
  query for balance and get the amount of funds available for trading or funds locked in orders
215
+ :see: https://bit2c.co.il/home/api#balance
215
216
  :param dict [params]: extra parameters specific to the exchange API endpoint
216
217
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
217
218
  """
@@ -264,6 +265,7 @@ class bit2c(Exchange, ImplicitAPI):
264
265
  async def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
265
266
  """
266
267
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
268
+ :see: https://bit2c.co.il/home/api#orderb
267
269
  :param str symbol: unified symbol of the market to fetch the order book for
268
270
  :param int [limit]: the maximum amount of order book entries to return
269
271
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -308,6 +310,7 @@ class bit2c(Exchange, ImplicitAPI):
308
310
  async def fetch_ticker(self, symbol: str, params={}) -> Ticker:
309
311
  """
310
312
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
313
+ :see: https://bit2c.co.il/home/api#ticker
311
314
  :param str symbol: unified symbol of the market to fetch the ticker for
312
315
  :param dict [params]: extra parameters specific to the exchange API endpoint
313
316
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -323,6 +326,8 @@ class bit2c(Exchange, ImplicitAPI):
323
326
  async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
324
327
  """
325
328
  get the list of most recent trades for a particular symbol
329
+ :see: https://bit2c.co.il/home/api#transactions
330
+ :see: https://bit2c.co.il/home/api#trades
326
331
  :param str symbol: unified symbol of the market to fetch trades for
327
332
  :param int [since]: timestamp in ms of the earliest trade to fetch
328
333
  :param int [limit]: the maximum amount of trades to fetch
@@ -358,6 +363,7 @@ class bit2c(Exchange, ImplicitAPI):
358
363
  async def fetch_trading_fees(self, params={}):
359
364
  """
360
365
  fetch the trading fees for multiple markets
366
+ :see: https://bit2c.co.il/home/api#balance
361
367
  :param dict [params]: extra parameters specific to the exchange API endpoint
362
368
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
363
369
  """
@@ -400,9 +406,10 @@ class bit2c(Exchange, ImplicitAPI):
400
406
  }
401
407
  return result
402
408
 
403
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
409
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
404
410
  """
405
411
  create a trade order
412
+ :see: https://bit2c.co.il/home/api#addo
406
413
  :param str symbol: unified symbol of the market to create an order in
407
414
  :param str type: 'market' or 'limit'
408
415
  :param str side: 'buy' or 'sell'
@@ -432,6 +439,7 @@ class bit2c(Exchange, ImplicitAPI):
432
439
  async def cancel_order(self, id: str, symbol: Str = None, params={}):
433
440
  """
434
441
  cancels an open order
442
+ :see: https://bit2c.co.il/home/api#cancelo
435
443
  :param str id: order id
436
444
  :param str symbol: Not used by bit2c cancelOrder()
437
445
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -445,6 +453,7 @@ class bit2c(Exchange, ImplicitAPI):
445
453
  async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
446
454
  """
447
455
  fetch all unfilled currently open orders
456
+ :see: https://bit2c.co.il/home/api#geto
448
457
  :param str symbol: unified market symbol
449
458
  :param int [since]: the earliest time in ms to fetch open orders for
450
459
  :param int [limit]: the maximum number of open order structures to retrieve
@@ -467,6 +476,7 @@ class bit2c(Exchange, ImplicitAPI):
467
476
  async def fetch_order(self, id: str, symbol: Str = None, params={}):
468
477
  """
469
478
  fetches information on an order made by the user
479
+ :see: https://bit2c.co.il/home/api#getoid
470
480
  :param str symbol: unified market symbol
471
481
  :param dict [params]: extra parameters specific to the exchange API endpoint
472
482
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -603,6 +613,7 @@ class bit2c(Exchange, ImplicitAPI):
603
613
  async def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
604
614
  """
605
615
  fetch all trades made by the user
616
+ :see: https://bit2c.co.il/home/api#orderh
606
617
  :param str symbol: unified market symbol
607
618
  :param int [since]: the earliest time in ms to fetch trades for
608
619
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -769,6 +780,7 @@ class bit2c(Exchange, ImplicitAPI):
769
780
  async def fetch_deposit_address(self, code: str, params={}):
770
781
  """
771
782
  fetch the deposit address for a currency associated with self account
783
+ :see: https://bit2c.co.il/home/api#addc
772
784
  :param str code: unified currency code
773
785
  :param dict [params]: extra parameters specific to the exchange API endpoint
774
786
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -622,7 +622,7 @@ class bitbank(Exchange, ImplicitAPI):
622
622
  'info': order,
623
623
  }, market)
624
624
 
625
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
625
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
626
626
  """
627
627
  create a trade order
628
628
  :see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#create-new-order
@@ -761,7 +761,7 @@ class bitbank(Exchange, ImplicitAPI):
761
761
  'info': response,
762
762
  }
763
763
 
764
- async def withdraw(self, code: str, amount, address, tag=None, params={}):
764
+ async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
765
765
  """
766
766
  make a withdrawal
767
767
  :see: https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#new-withdrawal-request
@@ -564,7 +564,7 @@ class bitbns(Exchange, ImplicitAPI):
564
564
  'trades': None,
565
565
  }, market)
566
566
 
567
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
567
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
568
568
  """
569
569
  create a trade order
570
570
  :see: https://docs.bitbns.com/bitbns/rest-endpoints/order-apis/version-2/place-orders
@@ -6,7 +6,7 @@
6
6
  from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.bitfinex import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, TransferEntry, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import PermissionDenied
@@ -724,7 +724,7 @@ class bitfinex(Exchange, ImplicitAPI):
724
724
  result[code] = account
725
725
  return self.safe_balance(result)
726
726
 
727
- async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
727
+ async def transfer(self, code: str, amount: float, fromAccount, toAccount, params={}) -> TransferEntry:
728
728
  """
729
729
  transfer currency internally between wallets on the same account
730
730
  :param str code: unified currency code
@@ -953,7 +953,7 @@ class bitfinex(Exchange, ImplicitAPI):
953
953
  'fee': fee,
954
954
  }, market)
955
955
 
956
- async def fetch_trades(self, symbol: str, since: Int = None, limit=50, params={}) -> List[Trade]:
956
+ async def fetch_trades(self, symbol: str, since: Int = None, limit: Int = 50, params={}) -> List[Trade]:
957
957
  """
958
958
  get the list of most recent trades for a particular symbol
959
959
  :param str symbol: unified symbol of the market to fetch trades for
@@ -1008,7 +1008,7 @@ class bitfinex(Exchange, ImplicitAPI):
1008
1008
  response = await self.privatePostMytrades(self.extend(request, params))
1009
1009
  return self.parse_trades(response, market, since, limit)
1010
1010
 
1011
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
1011
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
1012
1012
  """
1013
1013
  create a trade order
1014
1014
  :param str symbol: unified symbol of the market to create an order in
@@ -1441,7 +1441,7 @@ class bitfinex(Exchange, ImplicitAPI):
1441
1441
  }
1442
1442
  return self.safe_string(statuses, status, status)
1443
1443
 
1444
- async def withdraw(self, code: str, amount, address, tag=None, params={}):
1444
+ async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
1445
1445
  """
1446
1446
  make a withdrawal
1447
1447
  :param str code: unified currency code
@@ -6,7 +6,7 @@
6
6
  from ccxt.async_support.base.exchange import Exchange
7
7
  from ccxt.abstract.bitfinex2 import ImplicitAPI
8
8
  import hashlib
9
- from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
9
+ from ccxt.base.types import Balances, Currency, Int, Market, Order, TransferEntry, OrderBook, OrderRequest, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction
10
10
  from typing import List
11
11
  from ccxt.base.errors import ExchangeError
12
12
  from ccxt.base.errors import PermissionDenied
@@ -853,7 +853,7 @@ class bitfinex2(Exchange, ImplicitAPI):
853
853
  result[code] = account
854
854
  return self.safe_balance(result)
855
855
 
856
- async def transfer(self, code: str, amount, fromAccount, toAccount, params={}):
856
+ async def transfer(self, code: str, amount: float, fromAccount, toAccount, params={}) -> TransferEntry:
857
857
  """
858
858
  transfer currency internally between wallets on the same account
859
859
  :see: https://docs.bitfinex.com/reference/rest-auth-transfer
@@ -1302,7 +1302,7 @@ class bitfinex2(Exchange, ImplicitAPI):
1302
1302
  trades = self.sort_by(response, 1)
1303
1303
  return self.parse_trades(trades, market, None, limit)
1304
1304
 
1305
- async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit=100, params={}) -> List[list]:
1305
+ async def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = 100, params={}) -> List[list]:
1306
1306
  """
1307
1307
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1308
1308
  :see: https://docs.bitfinex.com/reference/rest-public-candles
@@ -1462,7 +1462,7 @@ class bitfinex2(Exchange, ImplicitAPI):
1462
1462
  'trades': None,
1463
1463
  }, market)
1464
1464
 
1465
- def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
1465
+ def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
1466
1466
  """
1467
1467
  * @ignore
1468
1468
  helper function to build an order request
@@ -1531,7 +1531,7 @@ class bitfinex2(Exchange, ImplicitAPI):
1531
1531
  params = self.omit(params, ['triggerPrice', 'stopPrice', 'timeInForce', 'postOnly', 'reduceOnly', 'trailingAmount', 'clientOrderId'])
1532
1532
  return self.extend(request, params)
1533
1533
 
1534
- async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount, price=None, params={}):
1534
+ async def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: float = None, params={}):
1535
1535
  """
1536
1536
  create an order on the exchange
1537
1537
  :see: https://docs.bitfinex.com/reference/rest-auth-submit-order
@@ -2392,7 +2392,7 @@ class bitfinex2(Exchange, ImplicitAPI):
2392
2392
  #
2393
2393
  return self.parse_transactions(response, currency, since, limit)
2394
2394
 
2395
- async def withdraw(self, code: str, amount, address, tag=None, params={}):
2395
+ async def withdraw(self, code: str, amount: float, address, tag=None, params={}):
2396
2396
  """
2397
2397
  make a withdrawal
2398
2398
  :see: https://docs.bitfinex.com/reference/rest-auth-withdraw