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.
- package/README.md +3 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +16 -9
- package/dist/cjs/src/binance.js +43 -219
- package/dist/cjs/src/bitget.js +1 -1
- package/dist/cjs/src/bitopro.js +37 -0
- package/dist/cjs/src/bitrue.js +48 -0
- package/dist/cjs/src/coinex.js +3 -0
- package/dist/cjs/src/coinlist.js +90 -1
- package/dist/cjs/src/okx.js +47 -33
- package/dist/cjs/src/paradex.js +3 -12
- package/dist/cjs/src/pro/hyperliquid.js +1 -1
- package/dist/cjs/src/upbit.js +64 -46
- package/dist/cjs/src/xt.js +122 -4
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/coinlist.d.ts +3 -0
- package/js/src/abstract/myokx.d.ts +4 -0
- package/js/src/abstract/okx.d.ts +4 -0
- package/js/src/abstract/upbit.d.ts +15 -1
- package/js/src/abstract/xt.d.ts +3 -0
- package/js/src/base/Exchange.d.ts +1 -0
- package/js/src/base/Exchange.js +16 -9
- package/js/src/binance.d.ts +2 -0
- package/js/src/binance.js +43 -219
- package/js/src/bitget.js +1 -1
- package/js/src/bitopro.js +37 -0
- package/js/src/bitrue.js +48 -0
- package/js/src/coinex.js +3 -0
- package/js/src/coinlist.d.ts +12 -1
- package/js/src/coinlist.js +90 -1
- package/js/src/okx.js +47 -33
- package/js/src/paradex.js +3 -12
- package/js/src/pro/hyperliquid.js +1 -1
- package/js/src/upbit.js +64 -46
- package/js/src/xt.d.ts +19 -0
- package/js/src/xt.js +122 -4
- package/package.json +1 -1
- package/js/src/abstract/bitcoincom.d.ts +0 -118
- package/js/src/abstract/bitcoincom.js +0 -11
- package/js/src/abstract/bitfinex1.d.ts +0 -72
- package/js/src/abstract/bitfinex1.js +0 -11
- package/js/src/abstract/bitpanda.d.ts +0 -26
- package/js/src/abstract/bitpanda.js +0 -5
- package/js/src/abstract/poloniexfutures.d.ts +0 -51
- package/js/src/abstract/poloniexfutures.js +0 -11
- package/js/src/abstract/wazirx.d.ts +0 -33
- package/js/src/abstract/wazirx.js +0 -11
- package/js/src/bitcoincom.d.ts +0 -4
- package/js/src/bitcoincom.js +0 -18
- package/js/src/bitpanda.d.ts +0 -4
- package/js/src/bitpanda.js +0 -17
- package/js/src/poloniexfutures.d.ts +0 -321
- package/js/src/poloniexfutures.js +0 -1941
- package/js/src/pro/bitcoincom.d.ts +0 -4
- package/js/src/pro/bitcoincom.js +0 -34
- package/js/src/pro/bitpanda.d.ts +0 -4
- package/js/src/pro/bitpanda.js +0 -17
- package/js/src/pro/poloniexfutures.d.ts +0 -108
- package/js/src/pro/poloniexfutures.js +0 -1042
- package/js/src/pro/wazirx.d.ts +0 -102
- package/js/src/pro/wazirx.js +0 -784
- package/js/src/static_dependencies/starknet/utils/json.d.ts +0 -24
- 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;
|