ccxt 4.1.63 → 4.1.65

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 (293) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2769 -2653
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +13 -13
  6. package/dist/cjs/src/alpaca.js +10 -10
  7. package/dist/cjs/src/ascendex.js +33 -33
  8. package/dist/cjs/src/base/Exchange.js +6 -6
  9. package/dist/cjs/src/bigone.js +23 -23
  10. package/dist/cjs/src/binance.js +68 -68
  11. package/dist/cjs/src/binanceus.js +33 -3
  12. package/dist/cjs/src/bingx.js +33 -33
  13. package/dist/cjs/src/bit2c.js +11 -11
  14. package/dist/cjs/src/bitbank.js +14 -14
  15. package/dist/cjs/src/bitbns.js +15 -15
  16. package/dist/cjs/src/bitfinex.js +24 -24
  17. package/dist/cjs/src/bitfinex2.js +30 -30
  18. package/dist/cjs/src/bitflyer.js +17 -17
  19. package/dist/cjs/src/bitforex.js +12 -12
  20. package/dist/cjs/src/bitget.js +50 -50
  21. package/dist/cjs/src/bithumb.js +13 -13
  22. package/dist/cjs/src/bitmart.js +74 -59
  23. package/dist/cjs/src/bitmex.js +29 -28
  24. package/dist/cjs/src/bitopro.js +23 -23
  25. package/dist/cjs/src/bitpanda.js +25 -25
  26. package/dist/cjs/src/bitrue.js +26 -26
  27. package/dist/cjs/src/bitso.js +22 -22
  28. package/dist/cjs/src/bitstamp.js +24 -24
  29. package/dist/cjs/src/bittrex.js +31 -31
  30. package/dist/cjs/src/bitvavo.js +23 -23
  31. package/dist/cjs/src/bl3p.js +7 -7
  32. package/dist/cjs/src/blockchaincom.js +23 -23
  33. package/dist/cjs/src/btcalpha.js +17 -17
  34. package/dist/cjs/src/btcbox.js +9 -9
  35. package/dist/cjs/src/btcmarkets.js +19 -19
  36. package/dist/cjs/src/btcturk.js +13 -13
  37. package/dist/cjs/src/bybit.js +71 -67
  38. package/dist/cjs/src/cex.js +17 -17
  39. package/dist/cjs/src/coinbase.js +28 -28
  40. package/dist/cjs/src/coinbasepro.js +27 -27
  41. package/dist/cjs/src/coincheck.js +11 -11
  42. package/dist/cjs/src/coinex.js +42 -42
  43. package/dist/cjs/src/coinlist.js +29 -29
  44. package/dist/cjs/src/coinmate.js +14 -14
  45. package/dist/cjs/src/coinone.js +13 -13
  46. package/dist/cjs/src/coinsph.js +25 -25
  47. package/dist/cjs/src/coinspot.js +9 -9
  48. package/dist/cjs/src/cryptocom.js +33 -32
  49. package/dist/cjs/src/currencycom.js +24 -24
  50. package/dist/cjs/src/delta.js +29 -29
  51. package/dist/cjs/src/deribit.js +35 -35
  52. package/dist/cjs/src/digifinex.js +43 -43
  53. package/dist/cjs/src/exmo.js +30 -30
  54. package/dist/cjs/src/gate.js +39 -39
  55. package/dist/cjs/src/gemini.js +18 -18
  56. package/dist/cjs/src/hitbtc.js +40 -40
  57. package/dist/cjs/src/hollaex.js +26 -26
  58. package/dist/cjs/src/htx.js +48 -48
  59. package/dist/cjs/src/huobijp.js +24 -24
  60. package/dist/cjs/src/idex.js +23 -23
  61. package/dist/cjs/src/independentreserve.js +12 -12
  62. package/dist/cjs/src/indodax.js +16 -16
  63. package/dist/cjs/src/kraken.js +48 -30
  64. package/dist/cjs/src/krakenfutures.js +16 -16
  65. package/dist/cjs/src/kucoin.js +39 -39
  66. package/dist/cjs/src/kucoinfutures.js +24 -24
  67. package/dist/cjs/src/kuna.js +25 -25
  68. package/dist/cjs/src/latoken.js +20 -20
  69. package/dist/cjs/src/lbank.js +24 -24
  70. package/dist/cjs/src/luno.js +27 -28
  71. package/dist/cjs/src/lykke.js +18 -18
  72. package/dist/cjs/src/mercado.js +13 -13
  73. package/dist/cjs/src/mexc.js +47 -45
  74. package/dist/cjs/src/ndax.js +23 -23
  75. package/dist/cjs/src/novadax.js +23 -23
  76. package/dist/cjs/src/oceanex.js +19 -19
  77. package/dist/cjs/src/okcoin.js +25 -25
  78. package/dist/cjs/src/okx.js +53 -53
  79. package/dist/cjs/src/p2b.js +14 -14
  80. package/dist/cjs/src/paymium.js +10 -10
  81. package/dist/cjs/src/phemex.js +162 -123
  82. package/dist/cjs/src/poloniex.js +27 -27
  83. package/dist/cjs/src/poloniexfutures.js +21 -21
  84. package/dist/cjs/src/pro/alpaca.js +6 -6
  85. package/dist/cjs/src/pro/ascendex.js +5 -5
  86. package/dist/cjs/src/pro/binance.js +21 -21
  87. package/dist/cjs/src/pro/bingx.js +6 -6
  88. package/dist/cjs/src/pro/bitfinex.js +4 -4
  89. package/dist/cjs/src/pro/bitfinex2.js +7 -7
  90. package/dist/cjs/src/pro/bitget.js +12 -12
  91. package/dist/cjs/src/pro/bitmart.js +5 -5
  92. package/dist/cjs/src/pro/bitmex.js +8 -8
  93. package/dist/cjs/src/pro/bitopro.js +4 -4
  94. package/dist/cjs/src/pro/bitpanda.js +7 -7
  95. package/dist/cjs/src/pro/bitrue.js +2 -2
  96. package/dist/cjs/src/pro/bitstamp.js +3 -3
  97. package/dist/cjs/src/pro/bittrex.js +7 -7
  98. package/dist/cjs/src/pro/bitvavo.js +6 -6
  99. package/dist/cjs/src/pro/blockchaincom.js +6 -6
  100. package/dist/cjs/src/pro/bybit.js +12 -12
  101. package/dist/cjs/src/pro/cex.js +9 -9
  102. package/dist/cjs/src/pro/coinbase.js +6 -6
  103. package/dist/cjs/src/pro/coinbasepro.js +10 -10
  104. package/dist/cjs/src/pro/coinex.js +7 -7
  105. package/dist/cjs/src/pro/cryptocom.js +13 -13
  106. package/dist/cjs/src/pro/currencycom.js +5 -5
  107. package/dist/cjs/src/pro/deribit.js +7 -7
  108. package/dist/cjs/src/pro/exmo.js +5 -5
  109. package/dist/cjs/src/pro/gate.js +10 -10
  110. package/dist/cjs/src/pro/gemini.js +4 -4
  111. package/dist/cjs/src/pro/hitbtc.js +11 -11
  112. package/dist/cjs/src/pro/hollaex.js +5 -5
  113. package/dist/cjs/src/pro/htx.js +8 -8
  114. package/dist/cjs/src/pro/huobijp.js +4 -4
  115. package/dist/cjs/src/pro/idex.js +5 -5
  116. package/dist/cjs/src/pro/independentreserve.js +2 -2
  117. package/dist/cjs/src/pro/kraken.js +11 -11
  118. package/dist/cjs/src/pro/krakenfutures.js +12 -9
  119. package/dist/cjs/src/pro/kucoin.js +10 -10
  120. package/dist/cjs/src/pro/kucoinfutures.js +8 -8
  121. package/dist/cjs/src/pro/luno.js +4 -4
  122. package/dist/cjs/src/pro/mexc.js +7 -7
  123. package/dist/cjs/src/pro/ndax.js +4 -4
  124. package/dist/cjs/src/pro/okcoin.js +6 -6
  125. package/dist/cjs/src/pro/okx.js +16 -16
  126. package/dist/cjs/src/pro/phemex.js +7 -7
  127. package/dist/cjs/src/pro/poloniex.js +7 -7
  128. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  129. package/dist/cjs/src/pro/probit.js +6 -6
  130. package/dist/cjs/src/pro/upbit.js +3 -3
  131. package/dist/cjs/src/pro/wazirx.js +7 -7
  132. package/dist/cjs/src/pro/whitebit.js +7 -7
  133. package/dist/cjs/src/pro/woo.js +1 -1
  134. package/dist/cjs/src/probit.js +24 -24
  135. package/dist/cjs/src/tidex.js +15 -15
  136. package/dist/cjs/src/timex.js +19 -19
  137. package/dist/cjs/src/tokocrypto.js +22 -24
  138. package/dist/cjs/src/upbit.js +22 -22
  139. package/dist/cjs/src/wavesexchange.js +19 -19
  140. package/dist/cjs/src/wazirx.js +22 -16
  141. package/dist/cjs/src/whitebit.js +29 -29
  142. package/dist/cjs/src/woo.js +26 -26
  143. package/dist/cjs/src/yobit.js +17 -17
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +16 -16
  146. package/doc/manual.rst +1 -1
  147. package/doc/readme.rst +1 -1
  148. package/js/ccxt.d.ts +1 -1
  149. package/js/ccxt.js +1 -1
  150. package/js/src/abstract/mexc.d.ts +2 -0
  151. package/js/src/ace.js +13 -13
  152. package/js/src/alpaca.js +10 -10
  153. package/js/src/ascendex.js +33 -33
  154. package/js/src/base/Exchange.js +6 -6
  155. package/js/src/bigone.js +23 -23
  156. package/js/src/binance.js +68 -68
  157. package/js/src/binanceus.js +33 -3
  158. package/js/src/bingx.js +33 -33
  159. package/js/src/bit2c.js +11 -11
  160. package/js/src/bitbank.js +14 -14
  161. package/js/src/bitbns.js +15 -15
  162. package/js/src/bitfinex.js +24 -24
  163. package/js/src/bitfinex2.js +30 -30
  164. package/js/src/bitflyer.js +17 -17
  165. package/js/src/bitforex.js +12 -12
  166. package/js/src/bitget.js +50 -50
  167. package/js/src/bithumb.js +13 -13
  168. package/js/src/bitmart.js +74 -59
  169. package/js/src/bitmex.js +29 -28
  170. package/js/src/bitopro.js +23 -23
  171. package/js/src/bitpanda.js +25 -25
  172. package/js/src/bitrue.js +26 -26
  173. package/js/src/bitso.js +22 -22
  174. package/js/src/bitstamp.js +24 -24
  175. package/js/src/bittrex.js +31 -31
  176. package/js/src/bitvavo.js +23 -23
  177. package/js/src/bl3p.js +7 -7
  178. package/js/src/blockchaincom.js +23 -23
  179. package/js/src/btcalpha.js +17 -17
  180. package/js/src/btcbox.js +9 -9
  181. package/js/src/btcmarkets.js +19 -19
  182. package/js/src/btcturk.js +13 -13
  183. package/js/src/bybit.js +71 -67
  184. package/js/src/cex.js +17 -17
  185. package/js/src/coinbase.js +28 -28
  186. package/js/src/coinbasepro.js +27 -27
  187. package/js/src/coincheck.js +11 -11
  188. package/js/src/coinex.js +42 -42
  189. package/js/src/coinlist.js +29 -29
  190. package/js/src/coinmate.js +14 -14
  191. package/js/src/coinone.js +13 -13
  192. package/js/src/coinsph.js +25 -25
  193. package/js/src/coinspot.js +9 -9
  194. package/js/src/cryptocom.js +33 -32
  195. package/js/src/currencycom.js +24 -24
  196. package/js/src/delta.js +29 -29
  197. package/js/src/deribit.js +35 -35
  198. package/js/src/digifinex.js +43 -43
  199. package/js/src/exmo.js +30 -30
  200. package/js/src/gate.js +39 -39
  201. package/js/src/gemini.js +18 -18
  202. package/js/src/hitbtc.js +40 -40
  203. package/js/src/hollaex.js +26 -26
  204. package/js/src/htx.js +48 -48
  205. package/js/src/huobijp.js +24 -24
  206. package/js/src/idex.js +23 -23
  207. package/js/src/independentreserve.js +12 -12
  208. package/js/src/indodax.js +16 -16
  209. package/js/src/kraken.js +48 -30
  210. package/js/src/krakenfutures.js +16 -16
  211. package/js/src/kucoin.js +39 -39
  212. package/js/src/kucoinfutures.js +24 -24
  213. package/js/src/kuna.js +25 -25
  214. package/js/src/latoken.js +20 -20
  215. package/js/src/lbank.js +24 -24
  216. package/js/src/luno.js +27 -28
  217. package/js/src/lykke.js +18 -18
  218. package/js/src/mercado.js +13 -13
  219. package/js/src/mexc.js +47 -45
  220. package/js/src/ndax.js +23 -23
  221. package/js/src/novadax.js +23 -23
  222. package/js/src/oceanex.js +19 -19
  223. package/js/src/okcoin.js +25 -25
  224. package/js/src/okx.js +53 -53
  225. package/js/src/p2b.js +14 -14
  226. package/js/src/paymium.js +10 -10
  227. package/js/src/phemex.js +162 -123
  228. package/js/src/poloniex.js +27 -27
  229. package/js/src/poloniexfutures.js +21 -21
  230. package/js/src/pro/alpaca.js +6 -6
  231. package/js/src/pro/ascendex.js +5 -5
  232. package/js/src/pro/binance.js +21 -21
  233. package/js/src/pro/bingx.js +6 -6
  234. package/js/src/pro/bitfinex.js +4 -4
  235. package/js/src/pro/bitfinex2.js +7 -7
  236. package/js/src/pro/bitget.js +12 -12
  237. package/js/src/pro/bitmart.js +5 -5
  238. package/js/src/pro/bitmex.js +8 -8
  239. package/js/src/pro/bitopro.js +4 -4
  240. package/js/src/pro/bitpanda.js +7 -7
  241. package/js/src/pro/bitrue.js +2 -2
  242. package/js/src/pro/bitstamp.js +3 -3
  243. package/js/src/pro/bittrex.js +7 -7
  244. package/js/src/pro/bitvavo.js +6 -6
  245. package/js/src/pro/blockchaincom.js +6 -6
  246. package/js/src/pro/bybit.js +12 -12
  247. package/js/src/pro/cex.js +9 -9
  248. package/js/src/pro/coinbase.js +6 -6
  249. package/js/src/pro/coinbasepro.js +10 -10
  250. package/js/src/pro/coinex.js +7 -7
  251. package/js/src/pro/cryptocom.js +13 -13
  252. package/js/src/pro/currencycom.js +5 -5
  253. package/js/src/pro/deribit.js +7 -7
  254. package/js/src/pro/exmo.js +5 -5
  255. package/js/src/pro/gate.js +10 -10
  256. package/js/src/pro/gemini.js +4 -4
  257. package/js/src/pro/hitbtc.js +11 -11
  258. package/js/src/pro/hollaex.js +5 -5
  259. package/js/src/pro/htx.js +8 -8
  260. package/js/src/pro/huobijp.js +4 -4
  261. package/js/src/pro/idex.js +5 -5
  262. package/js/src/pro/independentreserve.js +2 -2
  263. package/js/src/pro/kraken.js +11 -11
  264. package/js/src/pro/krakenfutures.js +12 -9
  265. package/js/src/pro/kucoin.js +10 -10
  266. package/js/src/pro/kucoinfutures.js +8 -8
  267. package/js/src/pro/luno.js +4 -4
  268. package/js/src/pro/mexc.js +7 -7
  269. package/js/src/pro/ndax.js +4 -4
  270. package/js/src/pro/okcoin.js +6 -6
  271. package/js/src/pro/okx.js +16 -16
  272. package/js/src/pro/phemex.js +7 -7
  273. package/js/src/pro/poloniex.js +7 -7
  274. package/js/src/pro/poloniexfutures.js +5 -5
  275. package/js/src/pro/probit.js +6 -6
  276. package/js/src/pro/upbit.js +3 -3
  277. package/js/src/pro/wazirx.js +7 -7
  278. package/js/src/pro/whitebit.js +7 -7
  279. package/js/src/pro/woo.js +1 -1
  280. package/js/src/probit.js +24 -24
  281. package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
  282. package/js/src/tidex.js +15 -15
  283. package/js/src/timex.js +19 -19
  284. package/js/src/tokocrypto.js +22 -24
  285. package/js/src/upbit.js +22 -22
  286. package/js/src/wavesexchange.js +19 -19
  287. package/js/src/wazirx.js +22 -16
  288. package/js/src/whitebit.js +29 -29
  289. package/js/src/woo.js +26 -26
  290. package/js/src/yobit.js +17 -17
  291. package/js/src/zaif.js +10 -10
  292. package/js/src/zonda.js +16 -16
  293. package/package.json +1 -1
package/js/src/okx.js CHANGED
@@ -1167,7 +1167,7 @@ export default class okx extends Exchange {
1167
1167
  * @name okx#fetchStatus
1168
1168
  * @description the latest known information on the availability of the exchange API
1169
1169
  * @see https://www.okx.com/docs-v5/en/#status-get-status
1170
- * @param {object} [params] extra parameters specific to the okx api endpoint
1170
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1171
1171
  * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
1172
1172
  */
1173
1173
  const response = await this.publicGetSystemStatus(params);
@@ -1216,7 +1216,7 @@ export default class okx extends Exchange {
1216
1216
  * @name okx#fetchTime
1217
1217
  * @description fetches the current integer timestamp in milliseconds from the exchange server
1218
1218
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-system-time
1219
- * @param {object} [params] extra parameters specific to the okx api endpoint
1219
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1220
1220
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
1221
1221
  */
1222
1222
  const response = await this.publicGetPublicTime(params);
@@ -1239,7 +1239,7 @@ export default class okx extends Exchange {
1239
1239
  * @name okx#fetchAccounts
1240
1240
  * @description fetch all the accounts associated with a profile
1241
1241
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-account-configuration
1242
- * @param {object} [params] extra parameters specific to the okx api endpoint
1242
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1243
1243
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1244
1244
  */
1245
1245
  const response = await this.privateGetAccountConfig(params);
@@ -1284,7 +1284,7 @@ export default class okx extends Exchange {
1284
1284
  * @name okx#fetchMarkets
1285
1285
  * @description retrieves data on all markets for okx
1286
1286
  * @see https://www.okx.com/docs-v5/en/#rest-api-public-data-get-instruments
1287
- * @param {object} [params] extra parameters specific to the exchange api endpoint
1287
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1288
1288
  * @returns {object[]} an array of objects representing market data
1289
1289
  */
1290
1290
  const types = this.safeValue(this.options, 'fetchMarkets');
@@ -1517,7 +1517,7 @@ export default class okx extends Exchange {
1517
1517
  * @name okx#fetchCurrencies
1518
1518
  * @description fetches all available currencies on an exchange
1519
1519
  * @see https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies
1520
- * @param {object} [params] extra parameters specific to the okx api endpoint
1520
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1521
1521
  * @returns {object} an associative dictionary of currencies
1522
1522
  */
1523
1523
  // this endpoint requires authentication
@@ -1660,7 +1660,7 @@ export default class okx extends Exchange {
1660
1660
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-order-book
1661
1661
  * @param {string} symbol unified symbol of the market to fetch the order book for
1662
1662
  * @param {int} [limit] the maximum amount of order book entries to return
1663
- * @param {object} [params] extra parameters specific to the okx api endpoint
1663
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1664
1664
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1665
1665
  */
1666
1666
  await this.loadMarkets();
@@ -1761,7 +1761,7 @@ export default class okx extends Exchange {
1761
1761
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1762
1762
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-ticker
1763
1763
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1764
- * @param {object} [params] extra parameters specific to the okx api endpoint
1764
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1765
1765
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1766
1766
  */
1767
1767
  await this.loadMarkets();
@@ -1849,10 +1849,10 @@ export default class okx extends Exchange {
1849
1849
  /**
1850
1850
  * @method
1851
1851
  * @name okx#fetchTickers
1852
- * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1852
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1853
1853
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-tickers
1854
1854
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1855
- * @param {object} [params] extra parameters specific to the okx api endpoint
1855
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1856
1856
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1857
1857
  */
1858
1858
  await this.loadMarkets();
@@ -1968,7 +1968,7 @@ export default class okx extends Exchange {
1968
1968
  * @param {string} symbol unified symbol of the market to fetch trades for
1969
1969
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1970
1970
  * @param {int} [limit] the maximum amount of trades to fetch
1971
- * @param {object} [params] extra parameters specific to the okx api endpoint
1971
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1972
1972
  * @param {boolean} [params.paginate] *only applies to publicGetMarketHistoryTrades* default false, when true will automatically paginate by calling this endpoint multiple times
1973
1973
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1974
1974
  */
@@ -2077,7 +2077,7 @@ export default class okx extends Exchange {
2077
2077
  * @param {string} timeframe the length of time each candle represents
2078
2078
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
2079
2079
  * @param {int} [limit] the maximum amount of candles to fetch
2080
- * @param {object} [params] extra parameters specific to the okx api endpoint
2080
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2081
2081
  * @param {string} [params.price] "mark" or "index" for mark price and index price candles
2082
2082
  * @param {int} [params.until] timestamp in ms of the latest candle to fetch
2083
2083
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
@@ -2180,7 +2180,7 @@ export default class okx extends Exchange {
2180
2180
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
2181
2181
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2182
2182
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
2183
- * @param {object} [params] extra parameters specific to the okx api endpoint
2183
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2184
2184
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2185
2185
  * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
2186
2186
  */
@@ -2323,7 +2323,7 @@ export default class okx extends Exchange {
2323
2323
  * @description fetch the trading fees for a market
2324
2324
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-fee-rates
2325
2325
  * @param {string} symbol unified market symbol
2326
- * @param {object} [params] extra parameters specific to the okx api endpoint
2326
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2327
2327
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
2328
2328
  */
2329
2329
  await this.loadMarkets();
@@ -2373,7 +2373,7 @@ export default class okx extends Exchange {
2373
2373
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
2374
2374
  * @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-balance
2375
2375
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-balance
2376
- * @param {object} [params] extra parameters specific to the okx api endpoint
2376
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2377
2377
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
2378
2378
  */
2379
2379
  await this.loadMarkets();
@@ -2757,7 +2757,7 @@ export default class okx extends Exchange {
2757
2757
  * @param {string} side 'buy' or 'sell'
2758
2758
  * @param {float} amount how much of currency you want to trade in units of base currency
2759
2759
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2760
- * @param {object} [params] extra parameters specific to the okx api endpoint
2760
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2761
2761
  * @param {bool} [params.reduceOnly] a mark to reduce the position size for margin, swap and future orders
2762
2762
  * @param {bool} [params.postOnly] true to place a post only order
2763
2763
  * @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
@@ -2923,7 +2923,7 @@ export default class okx extends Exchange {
2923
2923
  * @param {string} side 'buy' or 'sell'
2924
2924
  * @param {float} amount how much of the currency you want to trade in units of the base currency
2925
2925
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2926
- * @param {object} [params] extra parameters specific to the okx api endpoint
2926
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2927
2927
  * @param {string} [params.clientOrderId] client order id, uses id if not passed
2928
2928
  * @param {float} [params.stopLossPrice] stop loss trigger price
2929
2929
  * @param {float} [params.newSlOrdPx] the stop loss order price, set to stopLossPrice if the type is market
@@ -2975,7 +2975,7 @@ export default class okx extends Exchange {
2975
2975
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-cancel-order
2976
2976
  * @param {string} id order id
2977
2977
  * @param {string} symbol unified symbol of the market the order was made in
2978
- * @param {object} [params] extra parameters specific to the okx api endpoint
2978
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2979
2979
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2980
2980
  */
2981
2981
  if (symbol === undefined) {
@@ -3031,7 +3031,7 @@ export default class okx extends Exchange {
3031
3031
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-post-cancel-algo-order
3032
3032
  * @param {string[]} ids order ids
3033
3033
  * @param {string} symbol unified market symbol
3034
- * @param {object} [params] extra parameters specific to the okx api endpoint
3034
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3035
3035
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3036
3036
  */
3037
3037
  // TODO : the original endpoint signature differs, according to that you can skip individual symbol and assign ids in batch. At this moment, `params` is not being used too.
@@ -3494,7 +3494,7 @@ export default class okx extends Exchange {
3494
3494
  * @param {string} symbol unified market symbol
3495
3495
  * @param {int} [since] the earliest time in ms to fetch open orders for
3496
3496
  * @param {int} [limit] the maximum number of open orders structures to retrieve
3497
- * @param {object} [params] extra parameters specific to the okx api endpoint
3497
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3498
3498
  * @param {int} [params.till] Timestamp in ms of the latest time to retrieve orders for
3499
3499
  * @param {bool} [params.stop] True if fetching trigger or conditional orders
3500
3500
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
@@ -3650,7 +3650,7 @@ export default class okx extends Exchange {
3650
3650
  * @param {string} symbol unified market symbol of the market orders were made in
3651
3651
  * @param {int} [since] timestamp in ms of the earliest order, default is undefined
3652
3652
  * @param {int} [limit] max number of orders to return, default is undefined
3653
- * @param {object} [params] extra parameters specific to the okx api endpoint
3653
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3654
3654
  * @param {bool} [params.stop] True if fetching trigger or conditional orders
3655
3655
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3656
3656
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
@@ -3826,7 +3826,7 @@ export default class okx extends Exchange {
3826
3826
  * @param {string} symbol unified market symbol of the market orders were made in
3827
3827
  * @param {int} [since] the earliest time in ms to fetch orders for
3828
3828
  * @param {int} [limit] the maximum number of orde structures to retrieve
3829
- * @param {object} [params] extra parameters specific to the okx api endpoint
3829
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3830
3830
  * @param {bool} [params.stop] True if fetching trigger or conditional orders
3831
3831
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
3832
3832
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
@@ -3998,7 +3998,7 @@ export default class okx extends Exchange {
3998
3998
  * @param {string} symbol unified market symbol
3999
3999
  * @param {int} [since] the earliest time in ms to fetch trades for
4000
4000
  * @param {int} [limit] the maximum number of trades structures to retrieve
4001
- * @param {object} [params] extra parameters specific to the okx api endpoint
4001
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4002
4002
  * @param {int} [params.until] Timestamp in ms of the latest time to retrieve trades for
4003
4003
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4004
4004
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
@@ -4068,7 +4068,7 @@ export default class okx extends Exchange {
4068
4068
  * @param {string} symbol unified market symbol
4069
4069
  * @param {int} [since] the earliest time in ms to fetch trades for
4070
4070
  * @param {int} [limit] the maximum number of trades to retrieve
4071
- * @param {object} [params] extra parameters specific to the okx api endpoint
4071
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4072
4072
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4073
4073
  */
4074
4074
  const request = {
@@ -4091,7 +4091,7 @@ export default class okx extends Exchange {
4091
4091
  * @param {string} code unified currency code, default is undefined
4092
4092
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
4093
4093
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
4094
- * @param {object} [params] extra parameters specific to the okx api endpoint
4094
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4095
4095
  * @param {string} [params.marginMode] 'cross' or 'isolated'
4096
4096
  * @param {int} [params.until] the latest time in ms to fetch entries for
4097
4097
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
@@ -4392,7 +4392,7 @@ export default class okx extends Exchange {
4392
4392
  * @description fetch a dictionary of addresses for a currency, indexed by network
4393
4393
  * @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
4394
4394
  * @param {string} code unified currency code of the currency for the deposit address
4395
- * @param {object} [params] extra parameters specific to the okx api endpoint
4395
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4396
4396
  * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
4397
4397
  */
4398
4398
  await this.loadMarkets();
@@ -4434,7 +4434,7 @@ export default class okx extends Exchange {
4434
4434
  * @description fetch the deposit address for a currency associated with this account
4435
4435
  * @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
4436
4436
  * @param {string} code unified currency code
4437
- * @param {object} [params] extra parameters specific to the okx api endpoint
4437
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4438
4438
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
4439
4439
  */
4440
4440
  const rawNetwork = this.safeStringUpper(params, 'network');
@@ -4478,7 +4478,7 @@ export default class okx extends Exchange {
4478
4478
  * @param {float} amount the amount to withdraw
4479
4479
  * @param {string} address the address to withdraw to
4480
4480
  * @param {string} tag
4481
- * @param {object} [params] extra parameters specific to the okx api endpoint
4481
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4482
4482
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4483
4483
  */
4484
4484
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
@@ -4556,7 +4556,7 @@ export default class okx extends Exchange {
4556
4556
  * @param {string} code unified currency code
4557
4557
  * @param {int} [since] the earliest time in ms to fetch deposits for
4558
4558
  * @param {int} [limit] the maximum number of deposits structures to retrieve
4559
- * @param {object} [params] extra parameters specific to the okx api endpoint
4559
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4560
4560
  * @param {int} [params.until] the latest time in ms to fetch entries for
4561
4561
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4562
4562
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
@@ -4636,7 +4636,7 @@ export default class okx extends Exchange {
4636
4636
  * @see https://www.okx.com/docs-v5/en/#rest-api-funding-get-deposit-history
4637
4637
  * @param {string} id deposit id
4638
4638
  * @param {string} code filter by currency code
4639
- * @param {object} [params] extra parameters specific to the okx api endpoint
4639
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4640
4640
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4641
4641
  */
4642
4642
  await this.loadMarkets();
@@ -4662,7 +4662,7 @@ export default class okx extends Exchange {
4662
4662
  * @param {string} code unified currency code
4663
4663
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
4664
4664
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
4665
- * @param {object} [params] extra parameters specific to the okx api endpoint
4665
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4666
4666
  * @param {int} [params.until] the latest time in ms to fetch entries for
4667
4667
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
4668
4668
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
@@ -4734,7 +4734,7 @@ export default class okx extends Exchange {
4734
4734
  * @see https://www.okx.com/docs-v5/en/#rest-api-funding-get-withdrawal-history
4735
4735
  * @param {string} id withdrawal id
4736
4736
  * @param {string} code unified currency code of the currency withdrawn, default is undefined
4737
- * @param {object} [params] extra parameters specific to the okx api endpoint
4737
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4738
4738
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4739
4739
  */
4740
4740
  await this.loadMarkets();
@@ -4913,7 +4913,7 @@ export default class okx extends Exchange {
4913
4913
  * @description fetch the set leverage for a market
4914
4914
  * @see https://www.okx.com/docs-v5/en/#rest-api-account-get-leverage
4915
4915
  * @param {string} symbol unified market symbol
4916
- * @param {object} [params] extra parameters specific to the okx api endpoint
4916
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4917
4917
  * @param {string} [params.marginMode] 'cross' or 'isolated'
4918
4918
  * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
4919
4919
  */
@@ -4955,7 +4955,7 @@ export default class okx extends Exchange {
4955
4955
  * @description fetch data on a single open contract trade position
4956
4956
  * @see https://www.okx.com/docs-v5/en/#rest-api-account-get-positions
4957
4957
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
4958
- * @param {object} [params] extra parameters specific to the okx api endpoint
4958
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4959
4959
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
4960
4960
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
4961
4961
  */
@@ -5031,7 +5031,7 @@ export default class okx extends Exchange {
5031
5031
  * @see https://www.okx.com/docs-v5/en/#rest-api-account-get-positions
5032
5032
  * @description fetch all open positions
5033
5033
  * @param {string[]|undefined} symbols list of unified market symbols
5034
- * @param {object} [params] extra parameters specific to the okx api endpoint
5034
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5035
5035
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
5036
5036
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
5037
5037
  */
@@ -5116,7 +5116,7 @@ export default class okx extends Exchange {
5116
5116
  * @see https://www.okx.com/docs-v5/en/#rest-api-account-get-positions
5117
5117
  * @description fetch all open positions for specific symbol
5118
5118
  * @param {string} symbol unified market symbol
5119
- * @param {object} [params] extra parameters specific to the okx api endpoint
5119
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5120
5120
  * @param {string} [params.instType] MARGIN (if needed)
5121
5121
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
5122
5122
  */
@@ -5279,7 +5279,7 @@ export default class okx extends Exchange {
5279
5279
  * @param {float} amount amount to transfer
5280
5280
  * @param {string} fromAccount account to transfer from
5281
5281
  * @param {string} toAccount account to transfer to
5282
- * @param {object} [params] extra parameters specific to the okx api endpoint
5282
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5283
5283
  * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5284
5284
  */
5285
5285
  await this.loadMarkets();
@@ -5453,7 +5453,7 @@ export default class okx extends Exchange {
5453
5453
  * @param {string} code unified currency code of the currency transferred
5454
5454
  * @param {int} [since] the earliest time in ms to fetch transfers for
5455
5455
  * @param {int} [limit] the maximum number of transfers structures to retrieve
5456
- * @param {object} [params] extra parameters specific to the okx api endpoint
5456
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5457
5457
  * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5458
5458
  */
5459
5459
  await this.loadMarkets();
@@ -5618,7 +5618,7 @@ export default class okx extends Exchange {
5618
5618
  * @description fetch the current funding rate
5619
5619
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
5620
5620
  * @param {string} symbol unified market symbol
5621
- * @param {object} [params] extra parameters specific to the okx api endpoint
5621
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5622
5622
  * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
5623
5623
  */
5624
5624
  await this.loadMarkets();
@@ -5659,7 +5659,7 @@ export default class okx extends Exchange {
5659
5659
  * @param {string} symbol unified market symbol
5660
5660
  * @param {int} [since] the earliest time in ms to fetch funding history for
5661
5661
  * @param {int} [limit] the maximum number of funding history structures to retrieve
5662
- * @param {object} [params] extra parameters specific to the okx api endpoint
5662
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5663
5663
  * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
5664
5664
  */
5665
5665
  await this.loadMarkets();
@@ -5817,7 +5817,7 @@ export default class okx extends Exchange {
5817
5817
  * @see https://www.okx.com/docs-v5/en/#rest-api-account-set-leverage
5818
5818
  * @param {float} leverage the rate of leverage
5819
5819
  * @param {string} symbol unified market symbol
5820
- * @param {object} [params] extra parameters specific to the okx api endpoint
5820
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5821
5821
  * @param {string} [params.marginMode] 'cross' or 'isolated'
5822
5822
  * @param {string} [params.posSide] 'long' or 'short' for isolated margin long/short mode on futures and swap markets
5823
5823
  * @returns {object} response from the exchange
@@ -5879,7 +5879,7 @@ export default class okx extends Exchange {
5879
5879
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-set-position-mode
5880
5880
  * @param {bool} hedged set to true to use long_short_mode, false for net_mode
5881
5881
  * @param {string} symbol not used by okx setPositionMode
5882
- * @param {object} [params] extra parameters specific to the okx api endpoint
5882
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5883
5883
  * @returns {object} response from the exchange
5884
5884
  */
5885
5885
  let hedgeMode = undefined;
@@ -5914,7 +5914,7 @@ export default class okx extends Exchange {
5914
5914
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-set-leverage
5915
5915
  * @param {string} marginMode 'cross' or 'isolated'
5916
5916
  * @param {string} symbol unified market symbol
5917
- * @param {object} [params] extra parameters specific to the okx api endpoint
5917
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5918
5918
  * @param {int} [params.leverage] leverage
5919
5919
  * @returns {object} response from the exchange
5920
5920
  */
@@ -5962,7 +5962,7 @@ export default class okx extends Exchange {
5962
5962
  * @name okx#fetchCrossBorrowRates
5963
5963
  * @description fetch the borrow interest rates of all currencies
5964
5964
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
5965
- * @param {object} [params] extra parameters specific to the okx api endpoint
5965
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5966
5966
  * @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
5967
5967
  */
5968
5968
  await this.loadMarkets();
@@ -5993,7 +5993,7 @@ export default class okx extends Exchange {
5993
5993
  * @description fetch the rate of interest to borrow a currency for margin trading
5994
5994
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
5995
5995
  * @param {string} code unified currency code
5996
- * @param {object} [params] extra parameters specific to the okx api endpoint
5996
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
5997
5997
  * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
5998
5998
  */
5999
5999
  await this.loadMarkets();
@@ -6089,7 +6089,7 @@ export default class okx extends Exchange {
6089
6089
  * @param {string[]|undefined} codes list of unified currency codes, default is undefined
6090
6090
  * @param {int} [since] timestamp in ms of the earliest borrowRate, default is undefined
6091
6091
  * @param {int} [limit] max number of borrow rate prices to return, default is undefined
6092
- * @param {object} [params] extra parameters specific to the okx api endpoint
6092
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6093
6093
  * @returns {object} a dictionary of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} indexed by the market symbol
6094
6094
  */
6095
6095
  await this.loadMarkets();
@@ -6132,7 +6132,7 @@ export default class okx extends Exchange {
6132
6132
  * @param {string} code unified currency code
6133
6133
  * @param {int} [since] timestamp for the earliest borrow rate
6134
6134
  * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
6135
- * @param {object} [params] extra parameters specific to the exchange api endpoint
6135
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6136
6136
  * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
6137
6137
  */
6138
6138
  await this.loadMarkets();
@@ -6223,7 +6223,7 @@ export default class okx extends Exchange {
6223
6223
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-increase-decrease-margin
6224
6224
  * @param {string} symbol unified market symbol
6225
6225
  * @param {float} amount the amount of margin to remove
6226
- * @param {object} [params] extra parameters specific to the okx api endpoint
6226
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6227
6227
  * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
6228
6228
  */
6229
6229
  return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
@@ -6236,7 +6236,7 @@ export default class okx extends Exchange {
6236
6236
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-increase-decrease-margin
6237
6237
  * @param {string} symbol unified market symbol
6238
6238
  * @param {float} amount amount of margin to add
6239
- * @param {object} [params] extra parameters specific to the okx api endpoint
6239
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6240
6240
  * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
6241
6241
  */
6242
6242
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
@@ -6248,7 +6248,7 @@ export default class okx extends Exchange {
6248
6248
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
6249
6249
  * @see https://www.okx.com/docs-v5/en/#rest-api-public-data-get-position-tiers
6250
6250
  * @param {string} symbol unified market symbol
6251
- * @param {object} [params] extra parameters specific to the okx api endpoint
6251
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6252
6252
  * @param {string} [params.marginMode] 'cross' or 'isolated'
6253
6253
  * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
6254
6254
  */
@@ -6428,7 +6428,7 @@ export default class okx extends Exchange {
6428
6428
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-vip-loans-borrow-and-repay
6429
6429
  * @param {string} code unified currency code of the currency to borrow
6430
6430
  * @param {float} amount the amount to borrow
6431
- * @param {object} [params] extra parameters specific to the okx api endpoint
6431
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6432
6432
  * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
6433
6433
  */
6434
6434
  await this.loadMarkets();
@@ -6466,7 +6466,7 @@ export default class okx extends Exchange {
6466
6466
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-vip-loans-borrow-and-repay
6467
6467
  * @param {string} code unified currency code of the currency to repay
6468
6468
  * @param {float} amount the amount to repay
6469
- * @param {object} [params] extra parameters specific to the okx api endpoint
6469
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6470
6470
  * @param {string} [params.id] the order ID of borrowing, it is necessary while repaying
6471
6471
  * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
6472
6472
  */
@@ -6710,7 +6710,7 @@ export default class okx extends Exchange {
6710
6710
  * @description fetch deposit and withdraw fees
6711
6711
  * @see https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies
6712
6712
  * @param {string[]|undefined} codes list of unified currency codes
6713
- * @param {object} [params] extra parameters specific to the okx api endpoint
6713
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6714
6714
  * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
6715
6715
  */
6716
6716
  await this.loadMarkets();
@@ -6968,7 +6968,7 @@ export default class okx extends Exchange {
6968
6968
  * @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
6969
6969
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-option-market-data
6970
6970
  * @param {string} symbol unified symbol of the market to fetch greeks for
6971
- * @param {object} [params] extra parameters specific to the okx api endpoint
6971
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
6972
6972
  * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
6973
6973
  */
6974
6974
  await this.loadMarkets();
package/js/src/p2b.js CHANGED
@@ -234,7 +234,7 @@ export default class p2b extends Exchange {
234
234
  * @name p2b#fetchMarkets
235
235
  * @description retrieves data on all markets for bigone
236
236
  * @see https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#markets
237
- * @param {object} [params] extra parameters specific to the exchange api endpoint
237
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
238
238
  * @returns {object[]} an array of objects representing market data
239
239
  */
240
240
  const response = await this.publicGetMarkets(params);
@@ -333,10 +333,10 @@ export default class p2b extends Exchange {
333
333
  /**
334
334
  * @method
335
335
  * @name p2b#fetchTickers
336
- * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
336
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
337
337
  * @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
338
338
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
339
- * @param {object} [params] extra parameters specific to the p2b api endpoint
339
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
340
340
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
341
341
  */
342
342
  await this.loadMarkets();
@@ -376,7 +376,7 @@ export default class p2b extends Exchange {
376
376
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
377
377
  * @see https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#ticker
378
378
  * @param {string} symbol unified symbol of the market to fetch the ticker for
379
- * @param {object} [params] extra parameters specific to the p2b api endpoint
379
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
380
380
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
381
381
  */
382
382
  await this.loadMarkets();
@@ -477,7 +477,7 @@ export default class p2b extends Exchange {
477
477
  * @see https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#depth-result
478
478
  * @param {string} symbol unified symbol of the market to fetch the order book for
479
479
  * @param {int} [limit] the maximum amount of order book entries to return
480
- * @param {object} [params] extra parameters specific to the p2bfutures api endpoint
480
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
481
481
  *
482
482
  * EXCHANGE SPECIFIC PARAMETERS
483
483
  * @param {string} [params.interval] 0 (default), 0.00000001, 0.0000001, 0.000001, 0.00001, 0.0001, 0.001, 0.01, 0.1, 1
@@ -530,7 +530,7 @@ export default class p2b extends Exchange {
530
530
  * @param {string} symbol unified symbol of the market to fetch trades for
531
531
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
532
532
  * @param {int} [limit] 1-100, default=50
533
- * @param {object} [params] extra parameters specific to the p2b api endpoint
533
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
534
534
  *
535
535
  * @param {int} params.lastId order id
536
536
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
@@ -649,7 +649,7 @@ export default class p2b extends Exchange {
649
649
  * @param {string} timeframe 1m, 1h, or 1d
650
650
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
651
651
  * @param {int} [limit] 1-500, default=50
652
- * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
652
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
653
653
  *
654
654
  * @param {int} [params.offset] default=0, with this value the last candles are returned
655
655
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
@@ -717,7 +717,7 @@ export default class p2b extends Exchange {
717
717
  * @name p2b#fetchBalance
718
718
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
719
719
  * @see https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#all-balances
720
- * @param {object} [params] extra parameters specific to the p2b api endpoint
720
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
721
721
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
722
722
  */
723
723
  await this.loadMarkets();
@@ -784,7 +784,7 @@ export default class p2b extends Exchange {
784
784
  * @param {string} side 'buy' or 'sell'
785
785
  * @param {float} amount how much of currency you want to trade in units of base currency
786
786
  * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency
787
- * @param {object} [params] extra parameters specific to the p2b api endpoint
787
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
788
788
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
789
789
  */
790
790
  await this.loadMarkets();
@@ -832,7 +832,7 @@ export default class p2b extends Exchange {
832
832
  * @see https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#cancel-order
833
833
  * @param {string} id order id
834
834
  * @param {string} symbol unified symbol of the market the order was made in
835
- * @param {object} [params] extra parameters specific to the p2b api endpoint
835
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
836
836
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
837
837
  */
838
838
  if (symbol === undefined) {
@@ -879,7 +879,7 @@ export default class p2b extends Exchange {
879
879
  * @param {string} symbol unified market symbol of the market orders were made in
880
880
  * @param {int} [since] the earliest time in ms to fetch orders for
881
881
  * @param {int} [limit] the maximum number of order structures to retrieve
882
- * @param {object} [params] extra parameters specific to the p2b api endpoint
882
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
883
883
  *
884
884
  * EXCHANGE SPECIFIC PARAMETERS
885
885
  * @param {int} [params.offset] 0-10000, default=0
@@ -935,7 +935,7 @@ export default class p2b extends Exchange {
935
935
  * @param {string} symbol unified market symbol
936
936
  * @param {int} [since] the earliest time in ms to fetch trades for
937
937
  * @param {int} [limit] 1-100, default=50
938
- * @param {object} [params] extra parameters specific to the p2b api endpoint
938
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
939
939
  *
940
940
  * EXCHANGE SPECIFIC PARAMETERS
941
941
  * @param {int} [params.offset] 0-10000, default=0
@@ -986,7 +986,7 @@ export default class p2b extends Exchange {
986
986
  * @param {string} symbol unified market symbol of the market orders were made in
987
987
  * @param {int} [since] the earliest time in ms to fetch orders for, default = params["until"] - 86400000
988
988
  * @param {int} [limit] 1-100, default=50
989
- * @param {object} [params] extra parameters specific to the p2b api endpoint
989
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
990
990
  * @param {int} [params.until] the latest time in ms to fetch orders for, default = current timestamp or since + 86400000
991
991
  *
992
992
  * EXCHANGE SPECIFIC PARAMETERS
@@ -1062,7 +1062,7 @@ export default class p2b extends Exchange {
1062
1062
  * @param {string} symbol unified market symbol of the market orders were made in
1063
1063
  * @param {int} [since] the earliest time in ms to fetch orders for, default = params["until"] - 86400000
1064
1064
  * @param {int} [limit] 1-100, default=50
1065
- * @param {object} [params] extra parameters specific to the p2b api endpoint
1065
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1066
1066
  * @param {int} [params.until] the latest time in ms to fetch orders for, default = current timestamp or since + 86400000
1067
1067
  *
1068
1068
  * EXCHANGE SPECIFIC PARAMETERS