From 1b67295ef15e39cbb8d14324c2872f78d7d7e26e Mon Sep 17 00:00:00 2001 From: amir hossein faghan joyandeh Date: Tue, 10 Feb 2026 11:27:49 +0330 Subject: [PATCH] fix : fix python package build --- dist/cjs/package.json | 2 +- js/src/base/Exchange.d.ts | 4 +- js/src/coinbaseexchange.d.ts | 2 +- js/src/protobuf/mexc/compiled.d.cts | 6 +++ .../static_dependencies/fflake/browser.d.ts | 10 ++-- .../jsencrypt/lib/jsbn/jsbn.d.ts | 2 +- js/src/static_dependencies/qs/formats.d.cts | 6 +++ js/src/static_dependencies/qs/index.d.cts | 6 +++ js/src/static_dependencies/qs/parse.d.cts | 6 +++ js/src/static_dependencies/qs/stringify.d.cts | 6 +++ js/src/static_dependencies/qs/utils.d.cts | 6 +++ .../starknet/utils/calldata/parser/index.d.ts | 2 +- python/ccxt_ir.egg-info/PKG-INFO | 2 +- wiki/examples/js/README.md | 38 +++++++-------- wiki/examples/php/README.md | 20 ++++---- wiki/examples/py/README.md | 46 +++++++++---------- wiki/examples/ts/README.md | 4 +- wiki/exchanges/binance.md | 6 +-- wiki/exchanges/ellipx.md | 18 +------- wiki/exchanges/kucoinfutures.md | 8 +--- wiki/exchanges/paradex().md | 3 +- 21 files changed, 108 insertions(+), 95 deletions(-) diff --git a/dist/cjs/package.json b/dist/cjs/package.json index a3c15a7a6312b..c1be168b424b5 100644 --- a/dist/cjs/package.json +++ b/dist/cjs/package.json @@ -1 +1 @@ -{ "type": "commonjs" } +'{ "type": "commonjs" }' diff --git a/js/src/base/Exchange.d.ts b/js/src/base/Exchange.d.ts index 8513d9cc9638c..eac1489884be5 100644 --- a/js/src/base/Exchange.d.ts +++ b/js/src/base/Exchange.d.ts @@ -252,7 +252,7 @@ export default class Exchange { outputLen: number; blockLen: number; create(): import("../static_dependencies/noble-hashes/utils.js").Hash>; - }, digest?: "binary" | "hex" | "base64") => any; + }, digest?: "hex" | "base64" | "binary") => any; arrayConcat: (a: any[], b: any[]) => any[]; encode: (str: string) => Uint8Array; urlencode: (object: object, sort?: boolean) => string; @@ -261,7 +261,7 @@ export default class Exchange { outputLen: number; blockLen: number; create(): import("../static_dependencies/noble-hashes/utils.js").Hash>; - }, digest?: "binary" | "hex" | "base64") => any; + }, digest?: "hex" | "base64" | "binary") => any; numberToString: typeof functions.numberToString; parseTimeframe: (timeframe: string) => number; safeInteger2: (o: any, k1: IndexType, k2: IndexType, $default?: number) => number; diff --git a/js/src/coinbaseexchange.d.ts b/js/src/coinbaseexchange.d.ts index 13fd131c4c9e2..15821295e078d 100644 --- a/js/src/coinbaseexchange.d.ts +++ b/js/src/coinbaseexchange.d.ts @@ -311,7 +311,7 @@ export default class coinbaseexchange extends Exchange { * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure} */ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise; - parseTransactionStatus(transaction: any): "pending" | "ok" | "failed" | "canceled"; + parseTransactionStatus(transaction: any): "canceled" | "pending" | "ok" | "failed"; parseTransaction(transaction: Dict, currency?: Currency): Transaction; /** * @method diff --git a/js/src/protobuf/mexc/compiled.d.cts b/js/src/protobuf/mexc/compiled.d.cts index 7f27095a87649..7f19463111a91 100644 --- a/js/src/protobuf/mexc/compiled.d.cts +++ b/js/src/protobuf/mexc/compiled.d.cts @@ -1,2 +1,8 @@ +// ---------------------------------------------------------------------------- + +// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: +// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code +// EDIT THE CORRESPONDENT .ts FILE INSTEAD + export = $root; declare var $root: {}; diff --git a/js/src/static_dependencies/fflake/browser.d.ts b/js/src/static_dependencies/fflake/browser.d.ts index ce13995f23160..51a503d3aeb9b 100644 --- a/js/src/static_dependencies/fflake/browser.d.ts +++ b/js/src/static_dependencies/fflake/browser.d.ts @@ -5,7 +5,7 @@ export function deflate(data: any, opts: any, cb: any): () => void; * @param opts The compression options * @returns The deflated version of the data */ -export function deflateSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array; +export function deflateSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array; export function inflate(data: any, opts: any, cb: any): () => void; /** * Expands DEFLATE data with no wrapper @@ -21,7 +21,7 @@ export function gzip(data: any, opts: any, cb: any): () => void; * @param opts The compression options * @returns The gzipped version of the data */ -export function gzipSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array; +export function gzipSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array; export function gunzip(data: any, opts: any, cb: any): () => void; /** * Expands GZIP data @@ -37,7 +37,7 @@ export function zlib(data: any, opts: any, cb: any): () => void; * @param opts The compression options * @returns The zlib-compressed version of the data */ -export function zlibSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array; +export function zlibSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array; export function unzlib(data: any, opts: any, cb: any): () => void; /** * Expands Zlib data @@ -61,7 +61,7 @@ export function decompressSync(data: any, out: any): any; * not need to be true unless decoding a binary string. * @returns The string encoded in UTF-8/Latin-1 binary */ -export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint16Array; +export function strToU8(str: any, latin1: any): Uint8Array | Uint16Array | Uint32Array; /** * Converts a Uint8Array to a string * @param dat The data to decode to string @@ -69,7 +69,7 @@ export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint1 * not need to be true unless encoding to binary string. * @returns The original UTF-8/Latin-1 string */ -export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint32Array | Uint16Array; +export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint16Array | Uint32Array; export function zip(data: any, opts: any, cb: any): () => void; /** * Synchronously creates a ZIP file. Prefer using `zip` for better performance diff --git a/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts b/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts index 61dac708ca42c..d5a41fd8d9ee8 100644 --- a/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +++ b/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts @@ -15,7 +15,7 @@ export declare class BigInteger { protected intValue(): number; protected byteValue(): number; protected shortValue(): number; - protected signum(): 1 | 0 | -1; + protected signum(): 0 | 1 | -1; toByteArray(): number[]; protected equals(a: BigInteger): boolean; protected min(a: BigInteger): BigInteger; diff --git a/js/src/static_dependencies/qs/formats.d.cts b/js/src/static_dependencies/qs/formats.d.cts index 503713bb31e75..c78c80c3eef58 100644 --- a/js/src/static_dependencies/qs/formats.d.cts +++ b/js/src/static_dependencies/qs/formats.d.cts @@ -1,3 +1,9 @@ +// ---------------------------------------------------------------------------- + +// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: +// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code +// EDIT THE CORRESPONDENT .ts FILE INSTEAD + declare const _default: string; export declare namespace formatters { function RFC1738(value: any): string; diff --git a/js/src/static_dependencies/qs/index.d.cts b/js/src/static_dependencies/qs/index.d.cts index 9d39141a62051..3aef3ce651027 100644 --- a/js/src/static_dependencies/qs/index.d.cts +++ b/js/src/static_dependencies/qs/index.d.cts @@ -1,3 +1,9 @@ +// ---------------------------------------------------------------------------- + +// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: +// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code +// EDIT THE CORRESPONDENT .ts FILE INSTEAD + import formats = require("./formats.cjs"); import parse = require("./parse.cjs"); import stringify = require("./stringify.cjs"); diff --git a/js/src/static_dependencies/qs/parse.d.cts b/js/src/static_dependencies/qs/parse.d.cts index cdbd3a8fd9b94..25898af37efc3 100644 --- a/js/src/static_dependencies/qs/parse.d.cts +++ b/js/src/static_dependencies/qs/parse.d.cts @@ -1,2 +1,8 @@ +// ---------------------------------------------------------------------------- + +// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: +// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code +// EDIT THE CORRESPONDENT .ts FILE INSTEAD + declare function _exports(str: any, opts: any): any; export = _exports; diff --git a/js/src/static_dependencies/qs/stringify.d.cts b/js/src/static_dependencies/qs/stringify.d.cts index 5611e3646b99f..b0c050ce0efae 100644 --- a/js/src/static_dependencies/qs/stringify.d.cts +++ b/js/src/static_dependencies/qs/stringify.d.cts @@ -1,2 +1,8 @@ +// ---------------------------------------------------------------------------- + +// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: +// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code +// EDIT THE CORRESPONDENT .ts FILE INSTEAD + declare function _exports(object: any, opts: any): string; export = _exports; diff --git a/js/src/static_dependencies/qs/utils.d.cts b/js/src/static_dependencies/qs/utils.d.cts index a1b478a032698..6fbbea28bd033 100644 --- a/js/src/static_dependencies/qs/utils.d.cts +++ b/js/src/static_dependencies/qs/utils.d.cts @@ -1,3 +1,9 @@ +// ---------------------------------------------------------------------------- + +// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: +// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code +// EDIT THE CORRESPONDENT .ts FILE INSTEAD + export function arrayToObject(source: any, options: any): any; export function assign(target: any, source: any): any; export function combine(a: any, b: any): any[]; diff --git a/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts b/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts index 422ac39d3f603..efe4659348d4c 100644 --- a/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +++ b/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts @@ -1,5 +1,5 @@ import { Abi, FunctionAbi, RawArgs } from '../../../types/index.js'; import { AbiParserInterface } from './interface.js'; export declare function createAbiParser(abi: Abi): AbiParserInterface; -export declare function getAbiVersion(abi: Abi): 1 | 0 | 2; +export declare function getAbiVersion(abi: Abi): 0 | 1 | 2; export declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean; diff --git a/python/ccxt_ir.egg-info/PKG-INFO b/python/ccxt_ir.egg-info/PKG-INFO index 118932d12ec82..6640d50025160 100644 --- a/python/ccxt_ir.egg-info/PKG-INFO +++ b/python/ccxt_ir.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: ccxt-ir -Version: 4.9.27 +Version: 4.9.28 Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges Home-page: https://ccxt.com Author: Igor Kroitor diff --git a/wiki/examples/js/README.md b/wiki/examples/js/README.md index ceace53c5ad99..f36ca081444fa 100644 --- a/wiki/examples/js/README.md +++ b/wiki/examples/js/README.md @@ -2,23 +2,6 @@ # [<-](Examples?id=javascript) -# CCXT JavaScript Examples - -These examples might require the following super-useful high-quality Node.js modules by [xpl](https://github.com/xpl): - -- [ansicolor](https://github.com/xpl/ansicolor): A quality JavaScript library for the ANSI color/style management ([ansicolor @ npm](https://npmjs.com/package/ansicolor)) -- [as-table](https://github.com/xpl/as-table): A simple function that prints objects as ASCII tables ([as-table @ npm](https://npmjs.com/package/as-table)) -- [ololog](https://github.com/xpl/ololog): Platform-agnostic logging with blackjack and hookers ([ololog @ npm](https://npmjs.com/package/ololog)) - -All of the modules above are installed with the ccxt library devDependencies by npm automatically. - -To run the ccxt JavaScript examples from any folder type in console: - -```shell -node path/to/example.js # substitute for actual filename here -``` - - - [Advanced Error Handling](./examples/js/advanced-error-handling.md) - [Aggregate Orderbook](./examples/js/aggregate-orderbook.md) @@ -249,6 +232,23 @@ node path/to/example.js # substitute for actual filename here - [Proxy Usage](./examples/js/proxy-usage.md) +# CCXT JavaScript Examples + +These examples might require the following super-useful high-quality Node.js modules by [xpl](https://github.com/xpl): + +- [ansicolor](https://github.com/xpl/ansicolor): A quality JavaScript library for the ANSI color/style management ([ansicolor @ npm](https://npmjs.com/package/ansicolor)) +- [as-table](https://github.com/xpl/as-table): A simple function that prints objects as ASCII tables ([as-table @ npm](https://npmjs.com/package/as-table)) +- [ololog](https://github.com/xpl/ololog): Platform-agnostic logging with blackjack and hookers ([ololog @ npm](https://npmjs.com/package/ololog)) + +All of the modules above are installed with the ccxt library devDependencies by npm automatically. + +To run the ccxt JavaScript examples from any folder type in console: + +```shell +node path/to/example.js # substitute for actual filename here +``` + + - [Sample Local Proxy Server With Cors](./examples/js/sample-local-proxy-server-with-cors.md) - [Search All Exchanges](./examples/js/search-all-exchanges.md) @@ -271,10 +271,10 @@ node path/to/example.js # substitute for actual filename here - [Watch Orderbook For Symbols](./examples/js/watch-OrderBook-For-Symbols.md) -- [Watch Trades For Symbols](./examples/js/watch-Trades-For-Symbols.md) - - [Watch Tickers](./examples/js/watch-tickers.md) +- [Watch Trades For Symbols](./examples/js/watch-Trades-For-Symbols.md) + - [Watchohlcvforsymbols](./examples/js/watchOHLCVForSymbols.md) - [Watchorderbookforsymbols](./examples/js/watchOrderBookForSymbols.md) diff --git a/wiki/examples/php/README.md b/wiki/examples/php/README.md index 9ae0ce88e7533..d4015ad140bd9 100644 --- a/wiki/examples/php/README.md +++ b/wiki/examples/php/README.md @@ -2,14 +2,6 @@ # [<-](Examples?id=php) -# CCXT PHP Examples - -To run PHP examples from any folder type in console: - -```shell -php -f path/to/example.php # substitute for actual filename here -``` - - [Arbitrage Pairs](./examples/php/arbitrage-pairs.md) - [Async Await Fetch Multiple](./examples/php/async-await-fetch-multiple.md) @@ -128,6 +120,14 @@ php -f path/to/example.php # substitute for actual filename here - [React Eventloop With Rate Limiting](./examples/php/react-eventloop-with-rate-limiting.md) +# CCXT PHP Examples + +To run PHP examples from any folder type in console: + +```shell +php -f path/to/example.php # substitute for actual filename here +``` + - [Sample Local Proxy Server With Cors](./examples/php/sample-local-proxy-server-with-cors.md) - [Shared Markets](./examples/php/shared-markets.md) @@ -142,10 +142,10 @@ php -f path/to/example.php # substitute for actual filename here - [Watch Orderbook For Symbols](./examples/php/watch-OrderBook-For-Symbols.md) -- [Watch Trades For Symbols](./examples/php/watch-Trades-For-Symbols.md) - - [Watch Tickers](./examples/php/watch-tickers.md) +- [Watch Trades For Symbols](./examples/php/watch-Trades-For-Symbols.md) + - [Watchohlcvforsymbols](./examples/php/watchOHLCVForSymbols.md) - [Watchorderbookforsymbols](./examples/php/watchOrderBookForSymbols.md) diff --git a/wiki/examples/py/README.md b/wiki/examples/py/README.md index b8686e62c4aa9..43b92f95e6e6c 100644 --- a/wiki/examples/py/README.md +++ b/wiki/examples/py/README.md @@ -2,23 +2,6 @@ # [<-](Examples?id=python) -# CCXT Python Examples - -To run Python examples from any folder, type in console: - -```shell -python path/to/example.py # substitute for actual filename here -``` - -Example files starting with `async-` require Python 3.6 with `async`/`await` and async generators support. - -![basic-chart](https://user-images.githubusercontent.com/1294454/29979754-6d62354c-8f4f-11e7-9e0a-22e87b4a093b.jpg) - -## See Also - -[co3k-crypto-currency-note](https://github.com/co3k/co3k-crypto-currency-note/blob/master/Untitled.ipynb) – an example of using ccxt to fetch OHLCV candles from Kraken and charting them with matplotlib in a Jupyter Notebook, made by [co3k](https://github.com/co3k). - - - [Aiohttp Custom Session Connector](./examples/py/aiohttp-custom-session-connector.md) - [All Exchanges](./examples/py/all-exchanges.md) @@ -57,10 +40,10 @@ Example files starting with `async-` require Python 3.6 with `async`/`await` and - [Async Binance Fetch Margin Balance With Params](./examples/py/async-binance-fetch-margin-balance-with-params.md) -- [Async Binance Fetch Option Ohlcv](./examples/py/async-binance-fetch-option-OHLCV.md) - - [Async Binance Fetch Option Details](./examples/py/async-binance-fetch-option-details.md) +- [Async Binance Fetch Option Ohlcv](./examples/py/async-binance-fetch-option-OHLCV.md) + - [Async Binance Fetch Option Order](./examples/py/async-binance-fetch-option-order.md) - [Async Binance Fetch Option Orderbook](./examples/py/async-binance-fetch-option-orderbook.md) @@ -243,8 +226,6 @@ Example files starting with `async-` require Python 3.6 with `async`/`await` and - [Builtin Rate Limiting Long Poller](./examples/py/builtin-rate-limiting-long-poller.md) -- [Bybit Usdc Create Option Order](./examples/py/bybit-USDC-create-option-order.md) - - [Bybit Conditional Orders](./examples/py/bybit-conditional-orders.md) - [Bybit Positions](./examples/py/bybit-positions.md) @@ -253,6 +234,8 @@ Example files starting with `async-` require Python 3.6 with `async`/`await` and - [Bybit Updated](./examples/py/bybit-updated.md) +- [Bybit Usdc Create Option Order](./examples/py/bybit-USDC-create-option-order.md) + - [Cli](./examples/py/cli.md) - [Coinbase Cancel Order](./examples/py/coinbase-cancel-order.md) @@ -439,6 +422,23 @@ Example files starting with `async-` require Python 3.6 with `async`/`await` and - [Proxy Usage](./examples/py/proxy-usage.md) +# CCXT Python Examples + +To run Python examples from any folder, type in console: + +```shell +python path/to/example.py # substitute for actual filename here +``` + +Example files starting with `async-` require Python 3.6 with `async`/`await` and async generators support. + +![basic-chart](https://user-images.githubusercontent.com/1294454/29979754-6d62354c-8f4f-11e7-9e0a-22e87b4a093b.jpg) + +## See Also + +[co3k-crypto-currency-note](https://github.com/co3k/co3k-crypto-currency-note/blob/master/Untitled.ipynb) – an example of using ccxt to fetch OHLCV candles from Kraken and charting them with matplotlib in a Jupyter Notebook, made by [co3k](https://github.com/co3k). + + - [Rsi](./examples/py/rsi.md) - [Rtt](./examples/py/rtt.md) @@ -465,10 +465,10 @@ Example files starting with `async-` require Python 3.6 with `async`/`await` and - [Watch Orderbook For Symbols](./examples/py/watch-OrderBook-For-Symbols.md) -- [Watch Trades For Symbols](./examples/py/watch-Trades-For-Symbols.md) - - [Watch Tickers](./examples/py/watch-tickers.md) +- [Watch Trades For Symbols](./examples/py/watch-Trades-For-Symbols.md) + - [Watchohlcvforsymbols](./examples/py/watchOHLCVForSymbols.md) - [Watchorderbookforsymbols](./examples/py/watchOrderBookForSymbols.md) diff --git a/wiki/examples/ts/README.md b/wiki/examples/ts/README.md index fbadcfd68e6d0..4eb00a86ff9f4 100644 --- a/wiki/examples/ts/README.md +++ b/wiki/examples/ts/README.md @@ -52,10 +52,10 @@ - [Watch Orderbook For Symbols](./examples/ts/watch-OrderBook-For-Symbols.md) -- [Watch Trades For Symbols](./examples/ts/watch-Trades-For-Symbols.md) - - [Watch Tickers](./examples/ts/watch-tickers.md) +- [Watch Trades For Symbols](./examples/ts/watch-Trades-For-Symbols.md) + - [Watchpositions Many Exchanges Continuosly](./examples/ts/watchPositions-many-exchanges-continuosly.md) - [Watchpositions](./examples/ts/watchPositions.md) diff --git a/wiki/exchanges/binance.md b/wiki/exchanges/binance.md index d75012af32aa7..9d3b2c29cd070 100644 --- a/wiki/exchanges/binance.md +++ b/wiki/exchanges/binance.md @@ -508,8 +508,7 @@ binance.fetchOHLCV (symbol, timeframe[, since, limit, params]) ### fetchTrades{docsify-ignore} -get the list of most recent trades for a particular symbol -Default fetchTradesMethod +get the list of most recent trades for a particular symbol Default fetchTradesMethod **Kind**: instance method of [binance](#binance) **Returns**: Array<Trade> - a list of [trade structures](https://docs.ccxt.com/#/?id=public-trades) @@ -519,8 +518,7 @@ Default fetchTradesMethod - https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list // publicGetAggTrades (spot) - https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // fapiPublicGetAggTrades (swap) - https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future) -- https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List // eapiPublicGetTrades (option) -Other fetchTradesMethod +- https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List // eapiPublicGetTrades (option) Other fetchTradesMethod - https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list // publicGetTrades (spot) - https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List // fapiPublicGetTrades (swap) - https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List // dapiPublicGetTrades (future) diff --git a/wiki/exchanges/ellipx.md b/wiki/exchanges/ellipx.md index 4062d3e25b5c0..eeaa74372da31 100644 --- a/wiki/exchanges/ellipx.md +++ b/wiki/exchanges/ellipx.md @@ -349,13 +349,7 @@ ellipx.fetchOrderTrades (id, symbol[, since, limit, params]) fetches a crypto deposit address for a specific currency **Kind**: instance method of [ellipx](#ellipx) -**Returns**: object - an address structure { - 'currency': string, // unified currency code - 'address': string, // the address for deposits - 'tag': string|undefined, // tag/memo for deposits if needed - 'network': object, // network object from currency info - 'info': object // raw response from exchange -} +**Returns**: object - an address structure { 'currency': string, // unified currency code 'address': string, // the address for deposits 'tag': string|undefined, // tag/memo for deposits if needed 'network': object, // network object from currency info 'info': object // raw response from exchange } **Throws**: @@ -380,15 +374,7 @@ ellipx.fetchDepositAddress (code[, params]) Fetches the current trading fees (maker and taker) applicable to the user. **Kind**: instance method of [ellipx](#ellipx) -**Returns**: Promise.<object> - A promise resolving to a unified trading fee structure: -{ - 'info': object, // the raw response from the exchange - 'symbol': undefined, // symbol is not used for this exchange - 'maker': number, // maker fee rate in decimal form - 'taker': number, // taker fee rate in decimal form - 'percentage': true, // indicates fees are in percentage - 'tierBased': false, // indicates fees do not vary by volume tiers -} +**Returns**: Promise.<object> - A promise resolving to a unified trading fee structure: { 'info': object, // the raw response from the exchange 'symbol': undefined, // symbol is not used for this exchange 'maker': number, // maker fee rate in decimal form 'taker': number, // taker fee rate in decimal form 'percentage': true, // indicates fees are in percentage 'tierBased': false, // indicates fees do not vary by volume tiers } **See**: https://docs.google.com/document/d/1ZXzTQYffKE_EglTaKptxGQERRnunuLHEMmar7VC9syM/edit?tab=t.0#heading=h.kki5jay2c8it diff --git a/wiki/exchanges/kucoinfutures.md b/wiki/exchanges/kucoinfutures.md index acff2e3f056fc..73da3823687f0 100644 --- a/wiki/exchanges/kucoinfutures.md +++ b/wiki/exchanges/kucoinfutures.md @@ -1194,13 +1194,7 @@ kucoinfutures.watchOHLCV (symbol, timeframe[, since, limit, params]) ### watchOrderBook{docsify-ignore} -watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data - 1. After receiving the websocket Level 2 data flow, cache the data. - 2. Initiate a REST request to get the snapshot data of Level 2 order book. - 3. Playback the cached Level 2 data flow. - 4. Apply the new Level 2 data flow to the local snapshot to ensure that the sequence of the new Level 2 update lines up with the sequence of the previous Level 2 data. Discard all the message prior to that sequence, and then playback the change to snapshot. - 5. Update the level2 full data based on sequence according to the size. If the price is 0, ignore the messages and update the sequence. If the size=0, update the sequence and remove the price of which the size is 0 out of level 2. For other cases, please update the price. - 6. If the sequence of the newly pushed message does not line up to the sequence of the last message, you could pull through REST Level 2 message request to get the updated messages. Please note that the difference between the start and end parameters cannot exceed 500. +watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data 1. After receiving the websocket Level 2 data flow, cache the data. 2. Initiate a REST request to get the snapshot data of Level 2 order book. 3. Playback the cached Level 2 data flow. 4. Apply the new Level 2 data flow to the local snapshot to ensure that the sequence of the new Level 2 update lines up with the sequence of the previous Level 2 data. Discard all the message prior to that sequence, and then playback the change to snapshot. 5. Update the level2 full data based on sequence according to the size. If the price is 0, ignore the messages and update the sequence. If the size=0, update the sequence and remove the price of which the size is 0 out of level 2. For other cases, please update the price. 6. If the sequence of the newly pushed message does not line up to the sequence of the last message, you could pull through REST Level 2 message request to get the updated messages. Please note that the difference between the start and end parameters cannot exceed 500. **Kind**: instance method of [kucoinfutures](#kucoinfutures) **Returns**: object - A dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbols diff --git a/wiki/exchanges/paradex().md b/wiki/exchanges/paradex().md index bb4c6b940c513..879ddc6dd8f21 100644 --- a/wiki/exchanges/paradex().md +++ b/wiki/exchanges/paradex().md @@ -37,8 +37,7 @@ ### paradex{docsify-ignore} -Paradex is a decentralized exchange built on the StarkWare layer 2 scaling solution. To access private methods you can either use the ETH public key and private key by setting (exchange.privateKey and exchange.walletAddress) -or alternatively you can provide the startknet private key and public key by setting exchange.options['paradexAccount'] with add {"privateKey": A, "publicKey": B, "address": C} +Paradex is a decentralized exchange built on the StarkWare layer 2 scaling solution. To access private methods you can either use the ETH public key and private key by setting (exchange.privateKey and exchange.walletAddress) or alternatively you can provide the startknet private key and public key by setting exchange.options['paradexAccount'] with add {"privateKey": A, "publicKey": B, "address": C}