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.
Files changed (268) hide show
  1. ccxt/__init__.py +1 -1
  2. ccxt/ace.py +36 -12
  3. ccxt/alpaca.py +62 -22
  4. ccxt/ascendex.py +65 -30
  5. ccxt/async_support/__init__.py +1 -1
  6. ccxt/async_support/ace.py +36 -12
  7. ccxt/async_support/alpaca.py +62 -22
  8. ccxt/async_support/ascendex.py +65 -30
  9. ccxt/async_support/base/exchange.py +3 -3
  10. ccxt/async_support/base/ws/aiohttp_client.py +25 -3
  11. ccxt/async_support/bigone.py +71 -27
  12. ccxt/async_support/binance.py +555 -323
  13. ccxt/async_support/bingx.py +208 -108
  14. ccxt/async_support/bit2c.py +34 -12
  15. ccxt/async_support/bitbank.py +42 -14
  16. ccxt/async_support/bitbns.py +17 -9
  17. ccxt/async_support/bitfinex.py +68 -24
  18. ccxt/async_support/bitfinex2.py +116 -44
  19. ccxt/async_support/bitflyer.py +54 -18
  20. ccxt/async_support/bitget.py +277 -145
  21. ccxt/async_support/bithumb.py +39 -14
  22. ccxt/async_support/bitmart.py +145 -79
  23. ccxt/async_support/bitmex.py +90 -30
  24. ccxt/async_support/bitopro.py +66 -22
  25. ccxt/async_support/bitrue.py +109 -57
  26. ccxt/async_support/bitso.py +55 -19
  27. ccxt/async_support/bitstamp.py +84 -36
  28. ccxt/async_support/bitteam.py +51 -17
  29. ccxt/async_support/bitvavo.py +57 -22
  30. ccxt/async_support/bl3p.py +26 -10
  31. ccxt/async_support/blockchaincom.py +63 -21
  32. ccxt/async_support/blofin.py +95 -38
  33. ccxt/async_support/btcalpha.py +48 -16
  34. ccxt/async_support/btcbox.py +27 -9
  35. ccxt/async_support/btcmarkets.py +57 -19
  36. ccxt/async_support/btcturk.py +36 -12
  37. ccxt/async_support/bybit.py +251 -95
  38. ccxt/async_support/cex.py +65 -22
  39. ccxt/async_support/coinbase.py +138 -56
  40. ccxt/async_support/coinbaseexchange.py +76 -28
  41. ccxt/async_support/coinbaseinternational.py +75 -27
  42. ccxt/async_support/coincatch.py +191 -97
  43. ccxt/async_support/coincheck.py +33 -11
  44. ccxt/async_support/coinex.py +212 -101
  45. ccxt/async_support/coinlist.py +87 -30
  46. ccxt/async_support/coinmate.py +55 -24
  47. ccxt/async_support/coinmetro.py +52 -18
  48. ccxt/async_support/coinone.py +27 -10
  49. ccxt/async_support/coinsph.py +73 -27
  50. ccxt/async_support/coinspot.py +25 -9
  51. ccxt/async_support/cryptocom.py +103 -38
  52. ccxt/async_support/currencycom.py +70 -23
  53. ccxt/async_support/delta.py +90 -30
  54. ccxt/async_support/deribit.py +131 -50
  55. ccxt/async_support/digifinex.py +114 -51
  56. ccxt/async_support/exmo.py +104 -45
  57. ccxt/async_support/gate.py +313 -157
  58. ccxt/async_support/gemini.py +57 -20
  59. ccxt/async_support/hashkey.py +151 -66
  60. ccxt/async_support/hitbtc.py +157 -74
  61. ccxt/async_support/hollaex.py +76 -25
  62. ccxt/async_support/htx.py +297 -240
  63. ccxt/async_support/huobijp.py +1 -0
  64. ccxt/async_support/hyperliquid.py +94 -38
  65. ccxt/async_support/idex.py +73 -24
  66. ccxt/async_support/independentreserve.py +12 -5
  67. ccxt/async_support/indodax.py +54 -17
  68. ccxt/async_support/kraken.py +108 -36
  69. ccxt/async_support/krakenfutures.py +88 -34
  70. ccxt/async_support/kucoin.py +214 -110
  71. ccxt/async_support/kucoinfutures.py +209 -64
  72. ccxt/async_support/kuna.py +80 -39
  73. ccxt/async_support/latoken.py +70 -33
  74. ccxt/async_support/lbank.py +89 -38
  75. ccxt/async_support/luno.py +54 -19
  76. ccxt/async_support/lykke.py +54 -19
  77. ccxt/async_support/mercado.py +1 -0
  78. ccxt/async_support/mexc.py +226 -108
  79. ccxt/async_support/ndax.py +58 -19
  80. ccxt/async_support/novadax.py +67 -22
  81. ccxt/async_support/oceanex.py +58 -19
  82. ccxt/async_support/okcoin.py +81 -38
  83. ccxt/async_support/okx.py +270 -109
  84. ccxt/async_support/onetrading.py +3 -1
  85. ccxt/async_support/oxfun.py +95 -36
  86. ccxt/async_support/p2b.py +49 -23
  87. ccxt/async_support/paradex.py +75 -27
  88. ccxt/async_support/paymium.py +31 -11
  89. ccxt/async_support/phemex.py +108 -56
  90. ccxt/async_support/poloniex.py +80 -30
  91. ccxt/async_support/poloniexfutures.py +72 -30
  92. ccxt/async_support/probit.py +64 -22
  93. ccxt/async_support/timex.py +58 -19
  94. ccxt/async_support/tokocrypto.py +63 -22
  95. ccxt/async_support/tradeogre.py +7 -2
  96. ccxt/async_support/upbit.py +72 -25
  97. ccxt/async_support/vertex.py +74 -28
  98. ccxt/async_support/wavesexchange.py +32 -8
  99. ccxt/async_support/wazirx.py +51 -17
  100. ccxt/async_support/whitebit.py +105 -41
  101. ccxt/async_support/woo.py +162 -65
  102. ccxt/async_support/woofipro.py +119 -50
  103. ccxt/async_support/xt.py +150 -73
  104. ccxt/async_support/yobit.py +49 -16
  105. ccxt/async_support/zaif.py +30 -10
  106. ccxt/async_support/zonda.py +46 -16
  107. ccxt/base/exchange.py +47 -35
  108. ccxt/base/types.py +1 -0
  109. ccxt/bigone.py +71 -27
  110. ccxt/binance.py +555 -323
  111. ccxt/bingx.py +208 -108
  112. ccxt/bit2c.py +34 -12
  113. ccxt/bitbank.py +42 -14
  114. ccxt/bitbns.py +17 -9
  115. ccxt/bitfinex.py +68 -24
  116. ccxt/bitfinex2.py +116 -44
  117. ccxt/bitflyer.py +54 -18
  118. ccxt/bitget.py +277 -145
  119. ccxt/bithumb.py +39 -14
  120. ccxt/bitmart.py +145 -79
  121. ccxt/bitmex.py +90 -30
  122. ccxt/bitopro.py +66 -22
  123. ccxt/bitrue.py +109 -57
  124. ccxt/bitso.py +55 -19
  125. ccxt/bitstamp.py +84 -36
  126. ccxt/bitteam.py +51 -17
  127. ccxt/bitvavo.py +57 -22
  128. ccxt/bl3p.py +26 -10
  129. ccxt/blockchaincom.py +63 -21
  130. ccxt/blofin.py +95 -38
  131. ccxt/btcalpha.py +48 -16
  132. ccxt/btcbox.py +27 -9
  133. ccxt/btcmarkets.py +57 -19
  134. ccxt/btcturk.py +36 -12
  135. ccxt/bybit.py +251 -95
  136. ccxt/cex.py +65 -22
  137. ccxt/coinbase.py +138 -56
  138. ccxt/coinbaseexchange.py +76 -28
  139. ccxt/coinbaseinternational.py +75 -27
  140. ccxt/coincatch.py +191 -97
  141. ccxt/coincheck.py +33 -11
  142. ccxt/coinex.py +212 -101
  143. ccxt/coinlist.py +87 -30
  144. ccxt/coinmate.py +55 -24
  145. ccxt/coinmetro.py +52 -18
  146. ccxt/coinone.py +27 -10
  147. ccxt/coinsph.py +73 -27
  148. ccxt/coinspot.py +25 -9
  149. ccxt/cryptocom.py +103 -38
  150. ccxt/currencycom.py +70 -23
  151. ccxt/delta.py +90 -30
  152. ccxt/deribit.py +131 -50
  153. ccxt/digifinex.py +114 -51
  154. ccxt/exmo.py +104 -45
  155. ccxt/gate.py +313 -157
  156. ccxt/gemini.py +57 -20
  157. ccxt/hashkey.py +151 -66
  158. ccxt/hitbtc.py +157 -74
  159. ccxt/hollaex.py +76 -25
  160. ccxt/htx.py +297 -240
  161. ccxt/huobijp.py +1 -0
  162. ccxt/hyperliquid.py +94 -38
  163. ccxt/idex.py +73 -24
  164. ccxt/independentreserve.py +12 -5
  165. ccxt/indodax.py +54 -17
  166. ccxt/kraken.py +108 -36
  167. ccxt/krakenfutures.py +88 -34
  168. ccxt/kucoin.py +214 -110
  169. ccxt/kucoinfutures.py +209 -64
  170. ccxt/kuna.py +80 -39
  171. ccxt/latoken.py +70 -33
  172. ccxt/lbank.py +89 -38
  173. ccxt/luno.py +54 -19
  174. ccxt/lykke.py +54 -19
  175. ccxt/mercado.py +1 -0
  176. ccxt/mexc.py +226 -108
  177. ccxt/ndax.py +58 -19
  178. ccxt/novadax.py +67 -22
  179. ccxt/oceanex.py +58 -19
  180. ccxt/okcoin.py +81 -38
  181. ccxt/okx.py +270 -109
  182. ccxt/onetrading.py +3 -1
  183. ccxt/oxfun.py +95 -36
  184. ccxt/p2b.py +49 -23
  185. ccxt/paradex.py +75 -27
  186. ccxt/paymium.py +31 -11
  187. ccxt/phemex.py +108 -56
  188. ccxt/poloniex.py +80 -30
  189. ccxt/poloniexfutures.py +72 -30
  190. ccxt/pro/__init__.py +1 -1
  191. ccxt/pro/alpaca.py +15 -5
  192. ccxt/pro/ascendex.py +18 -6
  193. ccxt/pro/binance.py +204 -123
  194. ccxt/pro/bingx.py +44 -24
  195. ccxt/pro/bitfinex.py +13 -5
  196. ccxt/pro/bitget.py +76 -37
  197. ccxt/pro/bithumb.py +12 -4
  198. ccxt/pro/bitmart.py +44 -20
  199. ccxt/pro/bitmex.py +42 -14
  200. ccxt/pro/bitopro.py +15 -5
  201. ccxt/pro/bitrue.py +7 -3
  202. ccxt/pro/bitvavo.py +97 -62
  203. ccxt/pro/blockchaincom.py +18 -6
  204. ccxt/pro/blofin.py +36 -12
  205. ccxt/pro/bybit.py +100 -42
  206. ccxt/pro/cex.py +48 -16
  207. ccxt/pro/coinbase.py +32 -12
  208. ccxt/pro/coinbaseexchange.py +1 -1
  209. ccxt/pro/coinbaseinternational.py +34 -14
  210. ccxt/pro/coincatch.py +54 -19
  211. ccxt/pro/coincheck.py +6 -2
  212. ccxt/pro/coinex.py +40 -20
  213. ccxt/pro/coinone.py +9 -3
  214. ccxt/pro/cryptocom.py +71 -27
  215. ccxt/pro/deribit.py +36 -12
  216. ccxt/pro/exmo.py +10 -4
  217. ccxt/pro/gate.py +65 -31
  218. ccxt/pro/gemini.py +21 -7
  219. ccxt/pro/hashkey.py +27 -9
  220. ccxt/pro/hitbtc.py +61 -37
  221. ccxt/pro/hollaex.py +15 -5
  222. ccxt/pro/htx.py +39 -21
  223. ccxt/pro/hyperliquid.py +41 -14
  224. ccxt/pro/kraken.py +49 -17
  225. ccxt/pro/krakenfutures.py +47 -24
  226. ccxt/pro/kucoin.py +60 -31
  227. ccxt/pro/kucoinfutures.py +41 -19
  228. ccxt/pro/lbank.py +27 -9
  229. ccxt/pro/luno.py +3 -1
  230. ccxt/pro/mexc.py +36 -19
  231. ccxt/pro/ndax.py +12 -4
  232. ccxt/pro/okcoin.py +18 -6
  233. ccxt/pro/okx.py +76 -28
  234. ccxt/pro/onetrading.py +21 -7
  235. ccxt/pro/oxfun.py +54 -20
  236. ccxt/pro/p2b.py +23 -11
  237. ccxt/pro/paradex.py +12 -4
  238. ccxt/pro/phemex.py +31 -19
  239. ccxt/pro/poloniex.py +50 -22
  240. ccxt/pro/poloniexfutures.py +17 -7
  241. ccxt/pro/probit.py +18 -6
  242. ccxt/pro/upbit.py +25 -9
  243. ccxt/pro/vertex.py +20 -6
  244. ccxt/pro/wazirx.py +21 -7
  245. ccxt/pro/whitebit.py +25 -9
  246. ccxt/pro/woo.py +32 -12
  247. ccxt/pro/woofipro.py +35 -13
  248. ccxt/pro/xt.py +46 -26
  249. ccxt/probit.py +64 -22
  250. ccxt/timex.py +58 -19
  251. ccxt/tokocrypto.py +63 -22
  252. ccxt/tradeogre.py +7 -2
  253. ccxt/upbit.py +72 -25
  254. ccxt/vertex.py +74 -28
  255. ccxt/wavesexchange.py +32 -8
  256. ccxt/wazirx.py +51 -17
  257. ccxt/whitebit.py +105 -41
  258. ccxt/woo.py +162 -65
  259. ccxt/woofipro.py +119 -50
  260. ccxt/xt.py +150 -73
  261. ccxt/yobit.py +49 -16
  262. ccxt/zaif.py +30 -10
  263. ccxt/zonda.py +46 -16
  264. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/METADATA +11 -5
  265. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/RECORD +268 -268
  266. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/LICENSE.txt +0 -0
  267. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/WHEEL +0 -0
  268. {ccxt-4.4.30.dist-info → ccxt-4.4.32.dist-info}/top_level.txt +0 -0
ccxt/deribit.py CHANGED
@@ -504,7 +504,9 @@ class deribit(Exchange, ImplicitAPI):
504
504
  def fetch_time(self, params={}):
505
505
  """
506
506
  fetches the current integer timestamp in milliseconds from the exchange server
507
- :see: https://docs.deribit.com/#public-get_time
507
+
508
+ https://docs.deribit.com/#public-get_time
509
+
508
510
  :param dict [params]: extra parameters specific to the exchange API endpoint
509
511
  :returns int: the current integer timestamp in milliseconds from the exchange server
510
512
  """
@@ -524,7 +526,9 @@ class deribit(Exchange, ImplicitAPI):
524
526
  def fetch_currencies(self, params={}) -> Currencies:
525
527
  """
526
528
  fetches all available currencies on an exchange
527
- :see: https://docs.deribit.com/#public-get_currencies
529
+
530
+ https://docs.deribit.com/#public-get_currencies
531
+
528
532
  :param dict [params]: extra parameters specific to the exchange API endpoint
529
533
  :returns dict: an associative dictionary of currencies
530
534
  """
@@ -595,7 +599,9 @@ class deribit(Exchange, ImplicitAPI):
595
599
  def fetch_status(self, params={}):
596
600
  """
597
601
  the latest known information on the availability of the exchange API
598
- :see: https://docs.deribit.com/#public-status
602
+
603
+ https://docs.deribit.com/#public-status
604
+
599
605
  :param dict [params]: extra parameters specific to the exchange API endpoint
600
606
  :returns dict: a `status structure <https://docs.ccxt.com/#/?id=exchange-status-structure>`
601
607
  """
@@ -626,7 +632,9 @@ class deribit(Exchange, ImplicitAPI):
626
632
  def fetch_accounts(self, params={}) -> List[Account]:
627
633
  """
628
634
  fetch all the accounts associated with a profile
629
- :see: https://docs.deribit.com/#private-get_subaccounts
635
+
636
+ https://docs.deribit.com/#private-get_subaccounts
637
+
630
638
  :param dict [params]: extra parameters specific to the exchange API endpoint
631
639
  :returns dict: a dictionary of `account structures <https://docs.ccxt.com/#/?id=account-structure>` indexed by the account type
632
640
  """
@@ -694,8 +702,10 @@ class deribit(Exchange, ImplicitAPI):
694
702
  def fetch_markets(self, params={}) -> List[Market]:
695
703
  """
696
704
  retrieves data on all markets for deribit
697
- :see: https://docs.deribit.com/#public-get_currencies
698
- :see: https://docs.deribit.com/#public-get_instruments
705
+
706
+ https://docs.deribit.com/#public-get_currencies
707
+ https://docs.deribit.com/#public-get_instruments
708
+
699
709
  :param dict [params]: extra parameters specific to the exchange API endpoint
700
710
  :returns dict[]: an array of objects representing market data
701
711
  """
@@ -933,7 +943,9 @@ class deribit(Exchange, ImplicitAPI):
933
943
  def fetch_balance(self, params={}) -> Balances:
934
944
  """
935
945
  query for balance and get the amount of funds available for trading or funds locked in orders
936
- :see: https://docs.deribit.com/#private-get_account_summary
946
+
947
+ https://docs.deribit.com/#private-get_account_summary
948
+
937
949
  :param dict [params]: extra parameters specific to the exchange API endpoint
938
950
  :returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
939
951
  """
@@ -992,7 +1004,9 @@ class deribit(Exchange, ImplicitAPI):
992
1004
  def create_deposit_address(self, code: str, params={}):
993
1005
  """
994
1006
  create a currency deposit address
995
- :see: https://docs.deribit.com/#private-create_deposit_address
1007
+
1008
+ https://docs.deribit.com/#private-create_deposit_address
1009
+
996
1010
  :param str code: unified currency code of the currency for the deposit address
997
1011
  :param dict [params]: extra parameters specific to the exchange API endpoint
998
1012
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1028,7 +1042,9 @@ class deribit(Exchange, ImplicitAPI):
1028
1042
  def fetch_deposit_address(self, code: str, params={}) -> DepositAddress:
1029
1043
  """
1030
1044
  fetch the deposit address for a currency associated with self account
1031
- :see: https://docs.deribit.com/#private-get_current_deposit_address
1045
+
1046
+ https://docs.deribit.com/#private-get_current_deposit_address
1047
+
1032
1048
  :param str code: unified currency code
1033
1049
  :param dict [params]: extra parameters specific to the exchange API endpoint
1034
1050
  :returns dict: an `address structure <https://docs.ccxt.com/#/?id=address-structure>`
@@ -1147,7 +1163,9 @@ class deribit(Exchange, ImplicitAPI):
1147
1163
  def fetch_ticker(self, symbol: str, params={}) -> Ticker:
1148
1164
  """
1149
1165
  fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1150
- :see: https://docs.deribit.com/#public-ticker
1166
+
1167
+ https://docs.deribit.com/#public-ticker
1168
+
1151
1169
  :param str symbol: unified symbol of the market to fetch the ticker for
1152
1170
  :param dict [params]: extra parameters specific to the exchange API endpoint
1153
1171
  :returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
@@ -1192,7 +1210,9 @@ class deribit(Exchange, ImplicitAPI):
1192
1210
  def fetch_tickers(self, symbols: Strings = None, params={}) -> Tickers:
1193
1211
  """
1194
1212
  fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1195
- :see: https://docs.deribit.com/#public-get_book_summary_by_currency
1213
+
1214
+ https://docs.deribit.com/#public-get_book_summary_by_currency
1215
+
1196
1216
  :param str[] [symbols]: unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1197
1217
  :param dict [params]: extra parameters specific to the exchange API endpoint
1198
1218
  :param str [params.code]: *required* the currency code to fetch the tickers for, eg. 'BTC', 'ETH'
@@ -1250,7 +1270,9 @@ class deribit(Exchange, ImplicitAPI):
1250
1270
  def fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}) -> List[list]:
1251
1271
  """
1252
1272
  fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1253
- :see: https://docs.deribit.com/#public-get_tradingview_chart_data
1273
+
1274
+ https://docs.deribit.com/#public-get_tradingview_chart_data
1275
+
1254
1276
  :param str symbol: unified symbol of the market to fetch OHLCV data for
1255
1277
  :param str timeframe: the length of time each candle represents
1256
1278
  :param int [since]: timestamp in ms of the earliest candle to fetch
@@ -1400,8 +1422,10 @@ class deribit(Exchange, ImplicitAPI):
1400
1422
 
1401
1423
  def fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
1402
1424
  """
1403
- :see: https://docs.deribit.com/#public-get_last_trades_by_instrument
1404
- :see: https://docs.deribit.com/#public-get_last_trades_by_instrument_and_time
1425
+
1426
+ https://docs.deribit.com/#public-get_last_trades_by_instrument
1427
+ https://docs.deribit.com/#public-get_last_trades_by_instrument_and_time
1428
+
1405
1429
  get the list of most recent trades for a particular symbol.
1406
1430
  :param str symbol: unified symbol of the market to fetch trades for
1407
1431
  :param int [since]: timestamp in ms of the earliest trade to fetch
@@ -1461,7 +1485,9 @@ class deribit(Exchange, ImplicitAPI):
1461
1485
  def fetch_trading_fees(self, params={}) -> TradingFees:
1462
1486
  """
1463
1487
  fetch the trading fees for multiple markets
1464
- :see: https://docs.deribit.com/#private-get_account_summary
1488
+
1489
+ https://docs.deribit.com/#private-get_account_summary
1490
+
1465
1491
  :param dict [params]: extra parameters specific to the exchange API endpoint
1466
1492
  :returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
1467
1493
  """
@@ -1572,7 +1598,9 @@ class deribit(Exchange, ImplicitAPI):
1572
1598
  def fetch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
1573
1599
  """
1574
1600
  fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
1575
- :see: https://docs.deribit.com/#public-get_order_book
1601
+
1602
+ https://docs.deribit.com/#public-get_order_book
1603
+
1576
1604
  :param str symbol: unified symbol of the market to fetch the order book for
1577
1605
  :param int [limit]: the maximum amount of order book entries to return
1578
1606
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -1754,7 +1782,10 @@ class deribit(Exchange, ImplicitAPI):
1754
1782
  def fetch_order(self, id: str, symbol: Str = None, params={}):
1755
1783
  """
1756
1784
  fetches information on an order made by the user
1757
- :see: https://docs.deribit.com/#private-get_order_state
1785
+
1786
+ https://docs.deribit.com/#private-get_order_state
1787
+
1788
+ :param str id: order id
1758
1789
  :param str symbol: unified symbol of the market the order was made in
1759
1790
  :param dict [params]: extra parameters specific to the exchange API endpoint
1760
1791
  :returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
@@ -1801,8 +1832,10 @@ class deribit(Exchange, ImplicitAPI):
1801
1832
  def create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1802
1833
  """
1803
1834
  create a trade order
1804
- :see: https://docs.deribit.com/#private-buy
1805
- :see: https://docs.deribit.com/#private-sell
1835
+
1836
+ https://docs.deribit.com/#private-buy
1837
+ https://docs.deribit.com/#private-sell
1838
+
1806
1839
  :param str symbol: unified symbol of the market to create an order in
1807
1840
  :param str type: 'market' or 'limit'
1808
1841
  :param str side: 'buy' or 'sell'
@@ -1958,7 +1991,9 @@ class deribit(Exchange, ImplicitAPI):
1958
1991
  def edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={}):
1959
1992
  """
1960
1993
  edit a trade order
1961
- :see: https://docs.deribit.com/#private-edit
1994
+
1995
+ https://docs.deribit.com/#private-edit
1996
+
1962
1997
  :param str id: edit order id
1963
1998
  :param str [symbol]: unified symbol of the market to edit an order in
1964
1999
  :param str [type]: 'market' or 'limit'
@@ -1998,7 +2033,9 @@ class deribit(Exchange, ImplicitAPI):
1998
2033
  def cancel_order(self, id: str, symbol: Str = None, params={}):
1999
2034
  """
2000
2035
  cancels an open order
2001
- :see: https://docs.deribit.com/#private-cancel
2036
+
2037
+ https://docs.deribit.com/#private-cancel
2038
+
2002
2039
  :param str id: order id
2003
2040
  :param str symbol: not used by deribit cancelOrder()
2004
2041
  :param dict [params]: extra parameters specific to the exchange API endpoint
@@ -2015,8 +2052,10 @@ class deribit(Exchange, ImplicitAPI):
2015
2052
  def cancel_all_orders(self, symbol: Str = None, params={}):
2016
2053
  """
2017
2054
  cancel all open orders
2018
- :see: https://docs.deribit.com/#private-cancel_all
2019
- :see: https://docs.deribit.com/#private-cancel_all_by_instrument
2055
+
2056
+ https://docs.deribit.com/#private-cancel_all
2057
+ https://docs.deribit.com/#private-cancel_all_by_instrument
2058
+
2020
2059
  :param str symbol: unified market symbol, only orders in the market of self symbol are cancelled when symbol is not None
2021
2060
  :param dict [params]: extra parameters specific to the exchange API endpoint
2022
2061
  :returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
@@ -2049,8 +2088,10 @@ class deribit(Exchange, ImplicitAPI):
2049
2088
  def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2050
2089
  """
2051
2090
  fetch all unfilled currently open orders
2052
- :see: https://docs.deribit.com/#private-get_open_orders_by_currency
2053
- :see: https://docs.deribit.com/#private-get_open_orders_by_instrument
2091
+
2092
+ https://docs.deribit.com/#private-get_open_orders_by_currency
2093
+ https://docs.deribit.com/#private-get_open_orders_by_instrument
2094
+
2054
2095
  :param str symbol: unified market symbol
2055
2096
  :param int [since]: the earliest time in ms to fetch open orders for
2056
2097
  :param int [limit]: the maximum number of open orders structures to retrieve
@@ -2076,8 +2117,10 @@ class deribit(Exchange, ImplicitAPI):
2076
2117
  def fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
2077
2118
  """
2078
2119
  fetches information on multiple closed orders made by the user
2079
- :see: https://docs.deribit.com/#private-get_order_history_by_currency
2080
- :see: https://docs.deribit.com/#private-get_order_history_by_instrument
2120
+
2121
+ https://docs.deribit.com/#private-get_order_history_by_currency
2122
+ https://docs.deribit.com/#private-get_order_history_by_instrument
2123
+
2081
2124
  :param str symbol: unified market symbol of the market orders were made in
2082
2125
  :param int [since]: the earliest time in ms to fetch orders for
2083
2126
  :param int [limit]: the maximum number of order structures to retrieve
@@ -2103,7 +2146,9 @@ class deribit(Exchange, ImplicitAPI):
2103
2146
  def fetch_order_trades(self, id: str, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2104
2147
  """
2105
2148
  fetch all the trades made from a single order
2106
- :see: https://docs.deribit.com/#private-get_user_trades_by_order
2149
+
2150
+ https://docs.deribit.com/#private-get_user_trades_by_order
2151
+
2107
2152
  :param str id: order id
2108
2153
  :param str symbol: unified market symbol
2109
2154
  :param int [since]: the earliest time in ms to fetch trades for
@@ -2155,10 +2200,12 @@ class deribit(Exchange, ImplicitAPI):
2155
2200
  def fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2156
2201
  """
2157
2202
  fetch all trades made by the user
2158
- :see: https://docs.deribit.com/#private-get_user_trades_by_currency
2159
- :see: https://docs.deribit.com/#private-get_user_trades_by_currency_and_time
2160
- :see: https://docs.deribit.com/#private-get_user_trades_by_instrument
2161
- :see: https://docs.deribit.com/#private-get_user_trades_by_instrument_and_time
2203
+
2204
+ https://docs.deribit.com/#private-get_user_trades_by_currency
2205
+ https://docs.deribit.com/#private-get_user_trades_by_currency_and_time
2206
+ https://docs.deribit.com/#private-get_user_trades_by_instrument
2207
+ https://docs.deribit.com/#private-get_user_trades_by_instrument_and_time
2208
+
2162
2209
  :param str symbol: unified market symbol
2163
2210
  :param int [since]: the earliest time in ms to fetch trades for
2164
2211
  :param int [limit]: the maximum number of trades structures to retrieve
@@ -2230,7 +2277,9 @@ class deribit(Exchange, ImplicitAPI):
2230
2277
  def fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2231
2278
  """
2232
2279
  fetch all deposits made to an account
2233
- :see: https://docs.deribit.com/#private-get_deposits
2280
+
2281
+ https://docs.deribit.com/#private-get_deposits
2282
+
2234
2283
  :param str code: unified currency code
2235
2284
  :param int [since]: the earliest time in ms to fetch deposits for
2236
2285
  :param int [limit]: the maximum number of deposits structures to retrieve
@@ -2274,7 +2323,9 @@ class deribit(Exchange, ImplicitAPI):
2274
2323
  def fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Transaction]:
2275
2324
  """
2276
2325
  fetch all withdrawals made from an account
2277
- :see: https://docs.deribit.com/#private-get_withdrawals
2326
+
2327
+ https://docs.deribit.com/#private-get_withdrawals
2328
+
2278
2329
  :param str code: unified currency code
2279
2330
  :param int [since]: the earliest time in ms to fetch withdrawals for
2280
2331
  :param int [limit]: the maximum number of withdrawals structures to retrieve
@@ -2463,7 +2514,9 @@ class deribit(Exchange, ImplicitAPI):
2463
2514
  def fetch_position(self, symbol: str, params={}):
2464
2515
  """
2465
2516
  fetch data on a single open contract trade position
2466
- :see: https://docs.deribit.com/#private-get_position
2517
+
2518
+ https://docs.deribit.com/#private-get_position
2519
+
2467
2520
  :param str symbol: unified market symbol of the market the position is held in, default is None
2468
2521
  :param dict [params]: extra parameters specific to the exchange API endpoint
2469
2522
  :returns dict: a `position structure <https://docs.ccxt.com/#/?id=position-structure>`
@@ -2506,7 +2559,9 @@ class deribit(Exchange, ImplicitAPI):
2506
2559
  def fetch_positions(self, symbols: Strings = None, params={}):
2507
2560
  """
2508
2561
  fetch all open positions
2509
- :see: https://docs.deribit.com/#private-get_positions
2562
+
2563
+ https://docs.deribit.com/#private-get_positions
2564
+
2510
2565
  :param str[]|None symbols: list of unified market symbols
2511
2566
  :param dict [params]: extra parameters specific to the exchange API endpoint
2512
2567
  :param str [params.kind]: market type filter for positions 'future', 'option', 'spot', 'future_combo' or 'option_combo'
@@ -2571,7 +2626,9 @@ class deribit(Exchange, ImplicitAPI):
2571
2626
  def fetch_volatility_history(self, code: str, params={}):
2572
2627
  """
2573
2628
  fetch the historical volatility of an option market based on an underlying asset
2574
- :see: https://docs.deribit.com/#public-get_historical_volatility
2629
+
2630
+ https://docs.deribit.com/#public-get_historical_volatility
2631
+
2575
2632
  :param str code: unified currency code
2576
2633
  :param dict [params]: extra parameters specific to the exchange API endpoint
2577
2634
  :returns dict[]: a list of `volatility history objects <https://docs.ccxt.com/#/?id=volatility-structure>`
@@ -2629,7 +2686,9 @@ class deribit(Exchange, ImplicitAPI):
2629
2686
  def fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[TransferEntry]:
2630
2687
  """
2631
2688
  fetch a history of internal transfers made on an account
2632
- :see: https://docs.deribit.com/#private-get_transfers
2689
+
2690
+ https://docs.deribit.com/#private-get_transfers
2691
+
2633
2692
  :param str code: unified currency code of the currency transferred
2634
2693
  :param int [since]: the earliest time in ms to fetch transfers for
2635
2694
  :param int [limit]: the maximum number of transfers structures to retrieve
@@ -2686,8 +2745,10 @@ class deribit(Exchange, ImplicitAPI):
2686
2745
  def transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={}) -> TransferEntry:
2687
2746
  """
2688
2747
  transfer currency internally between wallets on the same account
2689
- :see: https://docs.deribit.com/#private-submit_transfer_to_user
2690
- :see: https://docs.deribit.com/#private-submit_transfer_to_subaccount
2748
+
2749
+ https://docs.deribit.com/#private-submit_transfer_to_user
2750
+ https://docs.deribit.com/#private-submit_transfer_to_subaccount
2751
+
2691
2752
  :param str code: unified currency code
2692
2753
  :param float amount: amount to transfer
2693
2754
  :param str fromAccount: account to transfer from
@@ -2775,7 +2836,9 @@ class deribit(Exchange, ImplicitAPI):
2775
2836
  def withdraw(self, code: str, amount: float, address: str, tag=None, params={}) -> Transaction:
2776
2837
  """
2777
2838
  make a withdrawal
2778
- :see: https://docs.deribit.com/#private-withdraw
2839
+
2840
+ https://docs.deribit.com/#private-withdraw
2841
+
2779
2842
  :param str code: unified currency code
2780
2843
  :param float amount: the amount to withdraw
2781
2844
  :param str address: the address to withdraw to
@@ -2828,7 +2891,9 @@ class deribit(Exchange, ImplicitAPI):
2828
2891
  def fetch_deposit_withdraw_fees(self, codes: Strings = None, params={}):
2829
2892
  """
2830
2893
  fetch deposit and withdraw fees
2831
- :see: https://docs.deribit.com/#public-get_currencies
2894
+
2895
+ https://docs.deribit.com/#public-get_currencies
2896
+
2832
2897
  :param str[]|None codes: list of unified currency codes
2833
2898
  :param dict [params]: extra parameters specific to the exchange API endpoint
2834
2899
  :returns dict: a list of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>`
@@ -2863,7 +2928,9 @@ class deribit(Exchange, ImplicitAPI):
2863
2928
  def fetch_funding_rate(self, symbol: str, params={}) -> FundingRate:
2864
2929
  """
2865
2930
  fetch the current funding rate
2866
- :see: https://docs.deribit.com/#public-get_funding_rate_value
2931
+
2932
+ https://docs.deribit.com/#public-get_funding_rate_value
2933
+
2867
2934
  :param str symbol: unified market symbol
2868
2935
  :param dict [params]: extra parameters specific to the exchange API endpoint
2869
2936
  :param int [params.start_timestamp]: fetch funding rate starting from self timestamp
@@ -2894,8 +2961,12 @@ class deribit(Exchange, ImplicitAPI):
2894
2961
  def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
2895
2962
  """
2896
2963
  fetch the current funding rate
2897
- :see: https://docs.deribit.com/#public-get_funding_rate_history
2964
+
2965
+ https://docs.deribit.com/#public-get_funding_rate_history
2966
+
2898
2967
  :param str symbol: unified market symbol
2968
+ :param int [since]: the earliest time in ms to fetch funding rate history for
2969
+ :param int [limit]: the maximum number of entries to retrieve
2899
2970
  :param dict [params]: extra parameters specific to the exchange API endpoint
2900
2971
  :param int [params.end_timestamp]: fetch funding rate ending at self timestamp
2901
2972
  :param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
@@ -2986,7 +3057,9 @@ class deribit(Exchange, ImplicitAPI):
2986
3057
  def fetch_liquidations(self, symbol: str, since: Int = None, limit: Int = None, params={}):
2987
3058
  """
2988
3059
  retrieves the public liquidations of a trading pair
2989
- :see: https://docs.deribit.com/#public-get_last_settlements_by_currency
3060
+
3061
+ https://docs.deribit.com/#public-get_last_settlements_by_currency
3062
+
2990
3063
  :param str symbol: unified CCXT market symbol
2991
3064
  :param int [since]: the earliest time in ms to fetch liquidations for
2992
3065
  :param int [limit]: the maximum number of liquidation structures to retrieve
@@ -3056,7 +3129,9 @@ class deribit(Exchange, ImplicitAPI):
3056
3129
  def fetch_my_liquidations(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3057
3130
  """
3058
3131
  retrieves the users liquidated positions
3059
- :see: https://docs.deribit.com/#private-get_settlement_history_by_instrument
3132
+
3133
+ https://docs.deribit.com/#private-get_settlement_history_by_instrument
3134
+
3060
3135
  :param str symbol: unified CCXT market symbol
3061
3136
  :param int [since]: the earliest time in ms to fetch liquidations for
3062
3137
  :param int [limit]: the maximum number of liquidation structures to retrieve
@@ -3135,7 +3210,9 @@ class deribit(Exchange, ImplicitAPI):
3135
3210
  def fetch_greeks(self, symbol: str, params={}) -> Greeks:
3136
3211
  """
3137
3212
  fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
3138
- :see: https://docs.deribit.com/#public-ticker
3213
+
3214
+ https://docs.deribit.com/#public-ticker
3215
+
3139
3216
  :param str symbol: unified symbol of the market to fetch greeks for
3140
3217
  :param dict [params]: extra parameters specific to the exchange API endpoint
3141
3218
  :returns dict: a `greeks structure <https://docs.ccxt.com/#/?id=greeks-structure>`
@@ -3264,7 +3341,9 @@ class deribit(Exchange, ImplicitAPI):
3264
3341
  def fetch_option(self, symbol: str, params={}) -> Option:
3265
3342
  """
3266
3343
  fetches option data that is commonly found in an option chain
3267
- :see: https://docs.deribit.com/#public-get_book_summary_by_instrument
3344
+
3345
+ https://docs.deribit.com/#public-get_book_summary_by_instrument
3346
+
3268
3347
  :param str symbol: unified market symbol
3269
3348
  :param dict [params]: extra parameters specific to the exchange API endpoint
3270
3349
  :returns dict: an `option chain structure <https://docs.ccxt.com/#/?id=option-chain-structure>`
@@ -3314,8 +3393,10 @@ class deribit(Exchange, ImplicitAPI):
3314
3393
  def fetch_option_chain(self, code: str, params={}) -> OptionChain:
3315
3394
  """
3316
3395
  fetches data for an underlying asset that is commonly found in an option chain
3317
- :see: https://docs.deribit.com/#public-get_book_summary_by_currency
3318
- :param str currency: base currency to fetch an option chain for
3396
+
3397
+ https://docs.deribit.com/#public-get_book_summary_by_currency
3398
+
3399
+ :param str code: base currency to fetch an option chain for
3319
3400
  :param dict [params]: extra parameters specific to the exchange API endpoint
3320
3401
  :returns dict: a list of `option chain structures <https://docs.ccxt.com/#/?id=option-chain-structure>`
3321
3402
  """