ccxt 4.4.73 → 4.4.75
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 +4 -4
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -11
- package/dist/cjs/src/ace.js +9 -6
- package/dist/cjs/src/alpaca.js +3 -0
- package/dist/cjs/src/ascendex.js +6 -0
- package/dist/cjs/src/base/Exchange.js +36 -14
- package/dist/cjs/src/bequant.js +1 -0
- package/dist/cjs/src/binanceusdm.js +1 -1
- package/dist/cjs/src/bit2c.js +30 -4
- package/dist/cjs/src/bitbank.js +32 -0
- package/dist/cjs/src/bitbns.js +1 -1
- package/dist/cjs/src/bitflyer.js +1 -0
- package/dist/cjs/src/bithumb.js +34 -0
- package/dist/cjs/src/bitmart.js +74 -7
- package/dist/cjs/src/bitopro.js +37 -0
- package/dist/cjs/src/blofin.js +1 -1
- package/dist/cjs/src/bybit.js +14 -1
- package/dist/cjs/src/coinlist.js +87 -11
- package/dist/cjs/src/deribit.js +29 -1
- package/dist/cjs/src/gate.js +12 -7
- package/dist/cjs/src/hitbtc.js +7 -1
- package/dist/cjs/src/okx.js +29 -25
- package/dist/cjs/src/pro/ascendex.js +1 -1
- package/dist/cjs/src/pro/bingx.js +10 -1
- package/dist/cjs/src/pro/bitget.js +10 -1
- package/dist/cjs/src/pro/bitmart.js +10 -1
- package/dist/cjs/src/pro/bitopro.js +5 -4
- package/dist/cjs/src/pro/onetrading.js +7 -7
- package/js/ccxt.d.ts +2 -14
- package/js/ccxt.js +2 -10
- package/js/src/abstract/bitmart.d.ts +2 -0
- package/js/src/abstract/coinlist.d.ts +3 -0
- package/js/src/ace.js +9 -6
- package/js/src/alpaca.js +3 -0
- package/js/src/ascendex.js +6 -0
- package/js/src/base/Exchange.d.ts +1 -0
- package/js/src/base/Exchange.js +36 -14
- package/js/src/bequant.js +1 -0
- package/js/src/binanceusdm.js +1 -1
- package/js/src/bit2c.js +30 -4
- package/js/src/bitbank.js +32 -0
- package/js/src/bitbns.js +1 -1
- package/js/src/bitflyer.js +1 -0
- package/js/src/bithumb.js +34 -0
- package/js/src/bitmart.d.ts +24 -0
- package/js/src/bitmart.js +74 -7
- package/js/src/bitopro.js +37 -0
- package/js/src/blofin.js +1 -1
- package/js/src/bybit.js +14 -1
- package/js/src/coinlist.js +87 -11
- package/js/src/deribit.js +29 -1
- package/js/src/gate.js +12 -7
- package/js/src/hitbtc.js +7 -1
- package/js/src/okx.js +29 -25
- package/js/src/pro/ascendex.js +1 -1
- package/js/src/pro/bingx.js +10 -1
- package/js/src/pro/bitget.js +10 -1
- package/js/src/pro/bitmart.js +10 -1
- package/js/src/pro/bitopro.js +5 -4
- package/js/src/pro/onetrading.d.ts +7 -7
- package/js/src/pro/onetrading.js +7 -7
- 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 -11
- 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
package/js/src/pro/bitcoincom.js
DELETED
|
@@ -1,34 +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
|
-
// ---------------------------------------------------------------------------
|
|
8
|
-
import hitbtc from './hitbtc.js';
|
|
9
|
-
import hitbtcRest from '../hitbtc.js';
|
|
10
|
-
import bitcoincomRest from '../bitcoincom.js';
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
|
-
export default class bitcoincom extends hitbtc {
|
|
13
|
-
describe() {
|
|
14
|
-
// eslint-disable-next-line new-cap
|
|
15
|
-
const describeExtended = this.getDescribeForExtendedWsExchange(new bitcoincomRest(), new hitbtcRest(), super.describe());
|
|
16
|
-
return this.deepExtend(describeExtended, {
|
|
17
|
-
'id': 'bitcoincom',
|
|
18
|
-
'name': 'bitcoin.com',
|
|
19
|
-
'countries': ['KN'],
|
|
20
|
-
'urls': {
|
|
21
|
-
'logo': 'https://user-images.githubusercontent.com/1294454/97296144-514fa300-1861-11eb-952b-3d55d492200b.jpg',
|
|
22
|
-
'api': {
|
|
23
|
-
'ws': 'wss://api.fmfw.io/api/2/ws',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
'fees': {
|
|
27
|
-
'trading': {
|
|
28
|
-
'maker': this.parseNumber('0.0015'),
|
|
29
|
-
'taker': this.parseNumber('0.002'),
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
package/js/src/pro/bitpanda.d.ts
DELETED
package/js/src/pro/bitpanda.js
DELETED
|
@@ -1,17 +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
|
-
// ---------------------------------------------------------------------------
|
|
8
|
-
import onetrading from './onetrading.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
export default class bitpanda extends onetrading {
|
|
11
|
-
describe() {
|
|
12
|
-
return this.deepExtend(super.describe(), {
|
|
13
|
-
'alias': true,
|
|
14
|
-
'id': 'bitpanda',
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import poloniexfuturesRest from '../poloniexfutures.js';
|
|
2
|
-
import type { Int, Str, OrderBook, Order, Trade, Ticker, Balances } from '../base/types.js';
|
|
3
|
-
import Client from '../base/ws/Client.js';
|
|
4
|
-
export default class poloniexfutures extends poloniexfuturesRest {
|
|
5
|
-
describe(): any;
|
|
6
|
-
negotiate(privateChannel: any, params?: {}): Promise<any>;
|
|
7
|
-
negotiateHelper(privateChannel: any, params?: {}): Promise<string>;
|
|
8
|
-
requestId(): any;
|
|
9
|
-
/**
|
|
10
|
-
* @ignore
|
|
11
|
-
* @method
|
|
12
|
-
* @description Connects to a websocket channel
|
|
13
|
-
* @param {string} name name of the channel and suscriptionHash
|
|
14
|
-
* @param {bool} isPrivate true for the authenticated url, false for the public url
|
|
15
|
-
* @param {string} symbol is required for all public channels, not required for private channels (except position)
|
|
16
|
-
* @param {object} subscription subscription parameters
|
|
17
|
-
* @param {object} [params] extra parameters specific to the poloniex api
|
|
18
|
-
* @returns {object} data from the websocket stream
|
|
19
|
-
*/
|
|
20
|
-
subscribe(name: string, isPrivate: boolean, symbol?: Str, subscription?: any, params?: {}): Promise<any>;
|
|
21
|
-
onClose(client: any, error: any): void;
|
|
22
|
-
stream(url: any, subscriptionHash: any): Promise<string>;
|
|
23
|
-
handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
|
|
24
|
-
handleSubscriptionStatus(client: Client, message: any): any;
|
|
25
|
-
handleNewStream(client: Client, message: any, subscription: any): void;
|
|
26
|
-
/**
|
|
27
|
-
* @method
|
|
28
|
-
* @name poloniexfutures#watchTicker
|
|
29
|
-
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
30
|
-
* @see https://api-docs.poloniex.com/futures/websocket/public#get-real-time-symbol-ticker
|
|
31
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
32
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
33
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
34
|
-
*/
|
|
35
|
-
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
36
|
-
/**
|
|
37
|
-
* @method
|
|
38
|
-
* @name poloniexfutures#watchTrades
|
|
39
|
-
* @description get the list of most recent trades for a particular symbol
|
|
40
|
-
* @see https://api-docs.poloniex.com/futures/websocket/public#full-matching-engine-datalevel-3
|
|
41
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
42
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
43
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
44
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
46
|
-
*/
|
|
47
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
48
|
-
/**
|
|
49
|
-
* @method
|
|
50
|
-
* @name poloniexfutures#watchOrderBook
|
|
51
|
-
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
52
|
-
* @see https://api-docs.poloniex.com/futures/websocket/public#level-2-market-data
|
|
53
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
54
|
-
* @param {int} [limit] not used by poloniexfutures watchOrderBook
|
|
55
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
56
|
-
* @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
|
|
57
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
58
|
-
*/
|
|
59
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
60
|
-
/**
|
|
61
|
-
* @method
|
|
62
|
-
* @name poloniexfutures#watchOrders
|
|
63
|
-
* @description watches information on multiple orders made by the user
|
|
64
|
-
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#private-messages
|
|
65
|
-
* @param {string} symbol filter by unified market symbol of the market orders were made in
|
|
66
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
67
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
68
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
69
|
-
* @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
|
70
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
71
|
-
*/
|
|
72
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
73
|
-
/**
|
|
74
|
-
* @method
|
|
75
|
-
* @name poloniexfutures#watchBalance
|
|
76
|
-
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
77
|
-
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#account-balance-events
|
|
78
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
79
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
80
|
-
*/
|
|
81
|
-
watchBalance(params?: {}): Promise<Balances>;
|
|
82
|
-
handleTrade(client: Client, message: any): any;
|
|
83
|
-
parseWsTrade(trade: any, market?: any): Trade;
|
|
84
|
-
parseWsOrderTrade(trade: any, market?: any): Trade;
|
|
85
|
-
handleOrder(client: Client, message: any): any;
|
|
86
|
-
parseOrderStatus(status: string, type: string): string;
|
|
87
|
-
parseWsOrder(order: any, market?: any): Order;
|
|
88
|
-
handleTicker(client: Client, message: any): any;
|
|
89
|
-
handleL3OrderBook(client: Client, message: any): void;
|
|
90
|
-
handleLevel2(client: Client, message: any): void;
|
|
91
|
-
handleL2OrderBook(client: Client, message: any): void;
|
|
92
|
-
handeL2Snapshot(client: Client, message: any): void;
|
|
93
|
-
getSymbolFromTopic(topic: string): string;
|
|
94
|
-
getCacheIndex(orderbook: any, cache: any): any;
|
|
95
|
-
handleDelta(orderbook: any, delta: any): void;
|
|
96
|
-
handleBalance(client: Client, message: any): any;
|
|
97
|
-
parseWsBalance(response: any): Balances;
|
|
98
|
-
handleSystemStatus(client: Client, message: any): any;
|
|
99
|
-
handleSubject(client: Client, message: any): void;
|
|
100
|
-
ping(client: Client): {
|
|
101
|
-
id: any;
|
|
102
|
-
type: string;
|
|
103
|
-
};
|
|
104
|
-
handlePong(client: Client, message: any): any;
|
|
105
|
-
handleErrorMessage(client: Client, message: any): void;
|
|
106
|
-
handleMessage(client: Client, message: any): void;
|
|
107
|
-
handleAuthenticate(client: any, message: any): any;
|
|
108
|
-
}
|