ccxt 4.4.74 → 4.4.77

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 (65) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/base/Exchange.js +16 -9
  5. package/dist/cjs/src/binance.js +43 -219
  6. package/dist/cjs/src/bitget.js +1 -1
  7. package/dist/cjs/src/bitopro.js +37 -0
  8. package/dist/cjs/src/bitrue.js +48 -0
  9. package/dist/cjs/src/coinex.js +3 -0
  10. package/dist/cjs/src/coinlist.js +90 -1
  11. package/dist/cjs/src/okx.js +47 -33
  12. package/dist/cjs/src/paradex.js +3 -12
  13. package/dist/cjs/src/pro/hyperliquid.js +1 -1
  14. package/dist/cjs/src/upbit.js +64 -46
  15. package/dist/cjs/src/xt.js +122 -4
  16. package/js/ccxt.d.ts +1 -1
  17. package/js/ccxt.js +1 -1
  18. package/js/src/abstract/coinlist.d.ts +3 -0
  19. package/js/src/abstract/myokx.d.ts +4 -0
  20. package/js/src/abstract/okx.d.ts +4 -0
  21. package/js/src/abstract/upbit.d.ts +15 -1
  22. package/js/src/abstract/xt.d.ts +3 -0
  23. package/js/src/base/Exchange.d.ts +1 -0
  24. package/js/src/base/Exchange.js +16 -9
  25. package/js/src/binance.d.ts +2 -0
  26. package/js/src/binance.js +43 -219
  27. package/js/src/bitget.js +1 -1
  28. package/js/src/bitopro.js +37 -0
  29. package/js/src/bitrue.js +48 -0
  30. package/js/src/coinex.js +3 -0
  31. package/js/src/coinlist.d.ts +12 -1
  32. package/js/src/coinlist.js +90 -1
  33. package/js/src/okx.js +47 -33
  34. package/js/src/paradex.js +3 -12
  35. package/js/src/pro/hyperliquid.js +1 -1
  36. package/js/src/upbit.js +64 -46
  37. package/js/src/xt.d.ts +19 -0
  38. package/js/src/xt.js +122 -4
  39. package/package.json +1 -1
  40. package/js/src/abstract/bitcoincom.d.ts +0 -118
  41. package/js/src/abstract/bitcoincom.js +0 -11
  42. package/js/src/abstract/bitfinex1.d.ts +0 -72
  43. package/js/src/abstract/bitfinex1.js +0 -11
  44. package/js/src/abstract/bitpanda.d.ts +0 -26
  45. package/js/src/abstract/bitpanda.js +0 -5
  46. package/js/src/abstract/poloniexfutures.d.ts +0 -51
  47. package/js/src/abstract/poloniexfutures.js +0 -11
  48. package/js/src/abstract/wazirx.d.ts +0 -33
  49. package/js/src/abstract/wazirx.js +0 -11
  50. package/js/src/bitcoincom.d.ts +0 -4
  51. package/js/src/bitcoincom.js +0 -18
  52. package/js/src/bitpanda.d.ts +0 -4
  53. package/js/src/bitpanda.js +0 -17
  54. package/js/src/poloniexfutures.d.ts +0 -321
  55. package/js/src/poloniexfutures.js +0 -1941
  56. package/js/src/pro/bitcoincom.d.ts +0 -4
  57. package/js/src/pro/bitcoincom.js +0 -34
  58. package/js/src/pro/bitpanda.d.ts +0 -4
  59. package/js/src/pro/bitpanda.js +0 -17
  60. package/js/src/pro/poloniexfutures.d.ts +0 -108
  61. package/js/src/pro/poloniexfutures.js +0 -1042
  62. package/js/src/pro/wazirx.d.ts +0 -102
  63. package/js/src/pro/wazirx.js +0 -784
  64. package/js/src/static_dependencies/starknet/utils/json.d.ts +0 -24
  65. package/js/src/static_dependencies/starknet/utils/json.js +0 -43
@@ -1,24 +0,0 @@
1
- /**
2
- * Convert JSON string to JSON object
3
- *
4
- * NOTE: the String() wrapping is used so the behavior conforms to JSON.parse()
5
- * which can accept simple data types but is not represented in the default typing
6
- * @param x JSON string
7
- */
8
- export declare const parse: (x: string) => any;
9
- /**
10
- * Convert JSON string to JSON object with all numbers as bigint
11
- * @param x JSON string
12
- */
13
- export declare const parseAlwaysAsBig: (x: string) => any;
14
- /**
15
- * Convert JSON object to JSON string
16
- *
17
- * NOTE: the not-null assertion is used so the return type conforms to JSON.stringify()
18
- * which can also return undefined but is not represented in the default typing
19
- * json.NumberStringifier[]
20
- * @returns JSON string
21
- */
22
- export declare const stringify: (value: unknown, replacer?: any, space?: string | number | undefined, numberStringifiers?: any[] | undefined) => string;
23
- /** @deprecated equivalent to 'stringify', alias will be removed */
24
- export declare const stringifyAlwaysAsBig: (value: unknown, replacer?: any, space?: string | number | undefined, numberStringifiers?: any[] | undefined) => string;
@@ -1,43 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // import * as json from 'lossless-json';
8
- const json = global.JSON;
9
- /**
10
- * Convert string to number or bigint based on size
11
- */
12
- const parseIntAsNumberOrBigInt = (x) => {
13
- // if (!json.isInteger(x)) return parseFloat(x);
14
- const v = parseInt(x, 10);
15
- return Number.isSafeInteger(v) ? v : BigInt(x);
16
- };
17
- /**
18
- * Convert JSON string to JSON object
19
- *
20
- * NOTE: the String() wrapping is used so the behavior conforms to JSON.parse()
21
- * which can accept simple data types but is not represented in the default typing
22
- * @param x JSON string
23
- */
24
- // export const parse = (x: string): any => json.parse(String(x), undefined, parseIntAsNumberOrBigInt);
25
- export const parse = (x) => json.parse(String(x), undefined);
26
- /**
27
- * Convert JSON string to JSON object with all numbers as bigint
28
- * @param x JSON string
29
- */
30
- // json.parse(String(x), undefined, json.parseNumberAndBigInt);
31
- export const parseAlwaysAsBig = (x) => json.parse(String(x), undefined);
32
- /**
33
- * Convert JSON object to JSON string
34
- *
35
- * NOTE: the not-null assertion is used so the return type conforms to JSON.stringify()
36
- * which can also return undefined but is not represented in the default typing
37
- * json.NumberStringifier[]
38
- * @returns JSON string
39
- */
40
- // json.stringify(value, replacer, space, numberStringifiers)!;
41
- export const stringify = (value, replacer, space, numberStringifiers) => json.stringify(value, replacer, space);
42
- /** @deprecated equivalent to 'stringify', alias will be removed */
43
- export const stringifyAlwaysAsBig = stringify;