ccxt-ir 4.9.29 → 4.9.31
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 +2 -2
- package/dist/cjs/ccxt.js +232 -232
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/abstract/raastin.js +1 -1
- package/dist/cjs/src/binance.js +1 -0
- package/dist/cjs/src/bit24.js +14 -19
- package/dist/cjs/src/raastin.js +357 -357
- package/js/ccxt.d.ts +682 -682
- package/js/ccxt.js +497 -497
- package/js/src/abstract/bit24.d.ts +1 -1
- package/js/src/abstract/raastin.d.ts +10 -10
- package/js/src/abstract/raastin.js +5 -5
- package/js/src/base/Exchange.d.ts +926 -926
- package/js/src/binance.js +1 -0
- package/js/src/bit24.js +14 -19
- package/js/src/coinbaseexchange.d.ts +334 -334
- package/js/src/protobuf/mexc/compiled.d.cts +2 -2
- package/js/src/raastin.d.ts +22 -22
- package/js/src/raastin.js +360 -360
- package/js/src/static_dependencies/fflake/browser.d.ts +222 -222
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +101 -101
- package/js/src/static_dependencies/qs/formats.d.cts +8 -8
- package/js/src/static_dependencies/qs/index.d.cts +4 -4
- package/js/src/static_dependencies/qs/parse.d.cts +2 -2
- package/js/src/static_dependencies/qs/stringify.d.cts +2 -2
- package/js/src/static_dependencies/qs/utils.d.cts +9 -9
- package/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +5 -5
- package/js/test.d.ts +1 -0
- package/js/test.js +39 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import formats = require("./formats.cjs");
|
|
2
|
-
import parse = require("./parse.cjs");
|
|
3
|
-
import stringify = require("./stringify.cjs");
|
|
4
|
-
export { formats, parse, stringify };
|
|
1
|
+
import formats = require("./formats.cjs");
|
|
2
|
+
import parse = require("./parse.cjs");
|
|
3
|
+
import stringify = require("./stringify.cjs");
|
|
4
|
+
export { formats, parse, stringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function _exports(str: any, opts: any): any;
|
|
2
|
-
export = _exports;
|
|
1
|
+
declare function _exports(str: any, opts: any): any;
|
|
2
|
+
export = _exports;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function _exports(object: any, opts: any): string;
|
|
2
|
-
export = _exports;
|
|
1
|
+
declare function _exports(object: any, opts: any): string;
|
|
2
|
+
export = _exports;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function arrayToObject(source: any, options: any): any;
|
|
2
|
-
export function assign(target: any, source: any): any;
|
|
3
|
-
export function combine(a: any, b: any): any[];
|
|
4
|
-
export function compact(value: any): any;
|
|
5
|
-
export function decode(str: any, decoder: any, charset: any): any;
|
|
6
|
-
export function encode(str: any, defaultEncoder: any, charset: any): any;
|
|
7
|
-
export function isBuffer(obj: any): boolean;
|
|
8
|
-
export function isRegExp(obj: any): boolean;
|
|
9
|
-
export function merge(target: any, source: any, options: any): any;
|
|
1
|
+
export function arrayToObject(source: any, options: any): any;
|
|
2
|
+
export function assign(target: any, source: any): any;
|
|
3
|
+
export function combine(a: any, b: any): any[];
|
|
4
|
+
export function compact(value: any): any;
|
|
5
|
+
export function decode(str: any, decoder: any, charset: any): any;
|
|
6
|
+
export function encode(str: any, defaultEncoder: any, charset: any): any;
|
|
7
|
+
export function isBuffer(obj: any): boolean;
|
|
8
|
+
export function isRegExp(obj: any): boolean;
|
|
9
|
+
export function merge(target: any, source: any, options: any): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Abi, FunctionAbi, RawArgs } from '../../../types/index.js';
|
|
2
|
-
import { AbiParserInterface } from './interface.js';
|
|
3
|
-
export declare function createAbiParser(abi: Abi): AbiParserInterface;
|
|
4
|
-
export declare function getAbiVersion(abi: Abi): 1 | 0 | 2;
|
|
5
|
-
export declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
|
|
1
|
+
import { Abi, FunctionAbi, RawArgs } from '../../../types/index.js';
|
|
2
|
+
import { AbiParserInterface } from './interface.js';
|
|
3
|
+
export declare function createAbiParser(abi: Abi): AbiParserInterface;
|
|
4
|
+
export declare function getAbiVersion(abi: Abi): 1 | 0 | 2;
|
|
5
|
+
export declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
|
package/js/test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/js/test.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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 ccxt from './ccxt.js';
|
|
8
|
+
async function testBit24() {
|
|
9
|
+
const exchange = new ccxt.bit24();
|
|
10
|
+
try {
|
|
11
|
+
// Load markets first
|
|
12
|
+
await exchange.loadMarkets();
|
|
13
|
+
console.log('Markets loaded successfully.');
|
|
14
|
+
// Test fetchMarkets
|
|
15
|
+
console.log('Testing fetchMarkets...');
|
|
16
|
+
const markets = await exchange.fetchMarkets();
|
|
17
|
+
console.log('fetchMarkets result:', markets);
|
|
18
|
+
console.log('Number of markets:', Object.keys(markets).length);
|
|
19
|
+
// Test fetchTickers
|
|
20
|
+
console.log('Testing fetchTickers...');
|
|
21
|
+
const tickers = await exchange.fetchTickers();
|
|
22
|
+
console.log('fetchTickers result:', tickers);
|
|
23
|
+
console.log('Number of tickers:', Object.keys(tickers).length);
|
|
24
|
+
// Test fetchTicker for a specific symbol
|
|
25
|
+
if (Object.keys(markets).length > 0) {
|
|
26
|
+
const firstSymbol = Object.keys(markets)[0];
|
|
27
|
+
console.log('Testing fetchTicker for symbol:', firstSymbol);
|
|
28
|
+
const ticker = await exchange.fetchTicker(firstSymbol);
|
|
29
|
+
console.log('fetchTicker result:', ticker);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
console.log('No markets available to test fetchTicker.');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
console.error('Error during testing:', error);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
testBit24();
|
package/package.json
CHANGED