ccxt 4.1.75 → 4.1.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.js +287 -235
- package/dist/ccxt.browser.min.js +5 -5
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +2 -0
- package/dist/cjs/src/alpaca.js +2 -0
- package/dist/cjs/src/base/Exchange.js +8 -0
- package/dist/cjs/src/base/errors.js +7 -7
- package/dist/cjs/src/base/ws/Client.js +2 -0
- package/dist/cjs/src/binance.js +4 -0
- package/dist/cjs/src/binanceus.js +2 -0
- package/dist/cjs/src/bingx.js +80 -23
- package/dist/cjs/src/bit2c.js +2 -0
- package/dist/cjs/src/bitbank.js +2 -0
- package/dist/cjs/src/bithumb.js +2 -0
- package/dist/cjs/src/bitmex.js +6 -0
- package/dist/cjs/src/bitopro.js +2 -0
- package/dist/cjs/src/bitpanda.js +2 -0
- package/dist/cjs/src/bitrue.js +27 -1
- package/dist/cjs/src/bitso.js +2 -0
- package/dist/cjs/src/bitstamp.js +5 -2
- package/dist/cjs/src/bittrex.js +2 -0
- package/dist/cjs/src/bitvavo.js +2 -0
- package/dist/cjs/src/bl3p.js +2 -0
- package/dist/cjs/src/btcalpha.js +2 -0
- package/dist/cjs/src/btcbox.js +2 -0
- package/dist/cjs/src/btcmarkets.js +2 -0
- package/dist/cjs/src/btcturk.js +2 -0
- package/dist/cjs/src/bybit.js +2 -0
- package/dist/cjs/src/coinbase.js +37 -6
- package/dist/cjs/src/coincheck.js +2 -0
- package/dist/cjs/src/coinlist.js +2 -0
- package/dist/cjs/src/coinmate.js +2 -0
- package/dist/cjs/src/coinone.js +2 -0
- package/dist/cjs/src/coinsph.js +2 -0
- package/dist/cjs/src/coinspot.js +2 -0
- package/dist/cjs/src/cryptocom.js +2 -185
- package/dist/cjs/src/gate.js +1 -0
- package/dist/cjs/src/gemini.js +2 -0
- package/dist/cjs/src/idex.js +2 -0
- package/dist/cjs/src/independentreserve.js +2 -0
- package/dist/cjs/src/indodax.js +2 -0
- package/dist/cjs/src/kucoin.js +2 -0
- package/dist/cjs/src/kuna.js +2 -0
- package/dist/cjs/src/latoken.js +2 -0
- package/dist/cjs/src/luno.js +2 -0
- package/dist/cjs/src/mercado.js +2 -0
- package/dist/cjs/src/mexc.js +2 -0
- package/dist/cjs/src/ndax.js +2 -0
- package/dist/cjs/src/novadax.js +2 -0
- package/dist/cjs/src/okx.js +25 -10
- package/dist/cjs/src/p2b.js +2 -0
- package/dist/cjs/src/static_dependencies/proxies/http-proxy-agent/index.js +8 -11
- package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/index.js +5 -8
- package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +5 -12
- package/dist/cjs/src/wavesexchange.js +2 -0
- package/dist/cjs/src/wazirx.js +2 -0
- package/dist/cjs/src/woo.js +2 -0
- package/dist/cjs/src/yobit.js +2 -0
- package/dist/cjs/src/zonda.js +2 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/binance.d.ts +2 -0
- package/js/src/abstract/binancecoinm.d.ts +2 -0
- package/js/src/abstract/binanceus.d.ts +2 -0
- package/js/src/abstract/binanceusdm.d.ts +2 -0
- package/js/src/abstract/okx.d.ts +14 -0
- package/js/src/ace.js +2 -0
- package/js/src/alpaca.js +2 -0
- package/js/src/base/Exchange.d.ts +4 -0
- package/js/src/base/Exchange.js +8 -0
- package/js/src/base/errors.d.ts +4 -4
- package/js/src/base/errors.js +7 -7
- package/js/src/base/ws/Client.js +2 -0
- package/js/src/binance.js +4 -0
- package/js/src/binanceus.js +2 -0
- package/js/src/bingx.d.ts +4 -3
- package/js/src/bingx.js +80 -23
- package/js/src/bit2c.js +2 -0
- package/js/src/bitbank.js +2 -0
- package/js/src/bithumb.js +2 -0
- package/js/src/bitmex.d.ts +1 -1
- package/js/src/bitmex.js +6 -0
- package/js/src/bitopro.js +2 -0
- package/js/src/bitpanda.js +2 -0
- package/js/src/bitrue.d.ts +1 -0
- package/js/src/bitrue.js +27 -1
- package/js/src/bitso.js +2 -0
- package/js/src/bitstamp.js +5 -2
- package/js/src/bittrex.js +2 -0
- package/js/src/bitvavo.js +2 -0
- package/js/src/bl3p.js +2 -0
- package/js/src/btcalpha.js +2 -0
- package/js/src/btcbox.js +2 -0
- package/js/src/btcmarkets.js +2 -0
- package/js/src/btcturk.js +2 -0
- package/js/src/bybit.js +2 -0
- package/js/src/coinbase.d.ts +1 -0
- package/js/src/coinbase.js +37 -6
- package/js/src/coincheck.js +2 -0
- package/js/src/coinlist.js +2 -0
- package/js/src/coinmate.js +2 -0
- package/js/src/coinone.js +2 -0
- package/js/src/coinsph.js +2 -0
- package/js/src/coinspot.js +2 -0
- package/js/src/cryptocom.d.ts +0 -24
- package/js/src/cryptocom.js +2 -185
- package/js/src/gate.js +1 -0
- package/js/src/gemini.js +2 -0
- package/js/src/idex.js +2 -0
- package/js/src/independentreserve.js +2 -0
- package/js/src/indodax.js +2 -0
- package/js/src/kucoin.js +2 -0
- package/js/src/kuna.js +2 -0
- package/js/src/latoken.js +2 -0
- package/js/src/luno.js +2 -0
- package/js/src/mercado.js +2 -0
- package/js/src/mexc.js +2 -0
- package/js/src/ndax.js +2 -0
- package/js/src/novadax.js +2 -0
- package/js/src/okx.js +25 -10
- package/js/src/p2b.js +2 -0
- package/js/src/static_dependencies/proxies/http-proxy-agent/index.js +9 -8
- package/js/src/static_dependencies/proxies/https-proxy-agent/index.js +5 -7
- package/js/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +5 -7
- package/js/src/wavesexchange.js +2 -0
- package/js/src/wazirx.js +2 -0
- package/js/src/woo.js +2 -0
- package/js/src/yobit.js +2 -0
- package/js/src/zonda.js +2 -0
- package/package.json +1 -1
package/js/src/latoken.js
CHANGED
|
@@ -31,6 +31,8 @@ export default class latoken extends Exchange {
|
|
|
31
31
|
'option': false,
|
|
32
32
|
'cancelAllOrders': true,
|
|
33
33
|
'cancelOrder': true,
|
|
34
|
+
'closeAllPositions': false,
|
|
35
|
+
'closePosition': false,
|
|
34
36
|
'createOrder': true,
|
|
35
37
|
'createPostOnlyOrder': false,
|
|
36
38
|
'createStopLimitOrder': true,
|
package/js/src/luno.js
CHANGED
package/js/src/mercado.js
CHANGED
|
@@ -31,6 +31,8 @@ export default class mercado extends Exchange {
|
|
|
31
31
|
'option': false,
|
|
32
32
|
'addMargin': false,
|
|
33
33
|
'cancelOrder': true,
|
|
34
|
+
'closeAllPositions': false,
|
|
35
|
+
'closePosition': false,
|
|
34
36
|
'createMarketOrder': true,
|
|
35
37
|
'createOrder': true,
|
|
36
38
|
'createReduceOnlyOrder': false,
|
package/js/src/mexc.js
CHANGED
|
@@ -37,6 +37,8 @@ export default class mexc extends Exchange {
|
|
|
37
37
|
'cancelAllOrders': true,
|
|
38
38
|
'cancelOrder': true,
|
|
39
39
|
'cancelOrders': undefined,
|
|
40
|
+
'closeAllPositions': false,
|
|
41
|
+
'closePosition': false,
|
|
40
42
|
'createDepositAddress': true,
|
|
41
43
|
'createOrder': true,
|
|
42
44
|
'createOrders': true,
|
package/js/src/ndax.js
CHANGED
|
@@ -34,6 +34,8 @@ export default class ndax extends Exchange {
|
|
|
34
34
|
'addMargin': false,
|
|
35
35
|
'cancelAllOrders': true,
|
|
36
36
|
'cancelOrder': true,
|
|
37
|
+
'closeAllPositions': false,
|
|
38
|
+
'closePosition': false,
|
|
37
39
|
'createDepositAddress': true,
|
|
38
40
|
'createOrder': true,
|
|
39
41
|
'createReduceOnlyOrder': false,
|
package/js/src/novadax.js
CHANGED
|
@@ -35,6 +35,8 @@ export default class novadax extends Exchange {
|
|
|
35
35
|
'option': false,
|
|
36
36
|
'addMargin': false,
|
|
37
37
|
'cancelOrder': true,
|
|
38
|
+
'closeAllPositions': false,
|
|
39
|
+
'closePosition': false,
|
|
38
40
|
'createOrder': true,
|
|
39
41
|
'createReduceOnlyOrder': false,
|
|
40
42
|
'createStopLimitOrder': true,
|
package/js/src/okx.js
CHANGED
|
@@ -22,7 +22,7 @@ export default class okx extends Exchange {
|
|
|
22
22
|
'name': 'OKX',
|
|
23
23
|
'countries': ['CN', 'US'],
|
|
24
24
|
'version': 'v5',
|
|
25
|
-
'rateLimit': 100,
|
|
25
|
+
'rateLimit': 100 * 1.03,
|
|
26
26
|
'pro': true,
|
|
27
27
|
'certified': true,
|
|
28
28
|
'has': {
|
|
@@ -238,6 +238,13 @@ export default class okx extends Exchange {
|
|
|
238
238
|
'finance/savings/lending-rate-history': 5 / 3,
|
|
239
239
|
// public broker
|
|
240
240
|
'finance/sfp/dcd/products': 2 / 3,
|
|
241
|
+
// copytrading
|
|
242
|
+
'copytrading/public-lead-traders': 4,
|
|
243
|
+
'copytrading/public-weekly-pnl': 4,
|
|
244
|
+
'copytrading/public-stats': 4,
|
|
245
|
+
'copytrading/public-preference-currency': 4,
|
|
246
|
+
'copytrading/public-current-subpositions': 4,
|
|
247
|
+
'copytrading/public-subpositions-history': 4,
|
|
241
248
|
},
|
|
242
249
|
},
|
|
243
250
|
'private': {
|
|
@@ -347,12 +354,16 @@ export default class okx extends Exchange {
|
|
|
347
354
|
'finance/staking-defi/eth/balance': 5 / 3,
|
|
348
355
|
'finance/staking-defi/eth/purchase-redeem-history': 5 / 3,
|
|
349
356
|
// copytrading
|
|
350
|
-
'copytrading/current-subpositions':
|
|
351
|
-
'copytrading/subpositions-history':
|
|
352
|
-
'copytrading/instruments':
|
|
353
|
-
'copytrading/profit-sharing-details':
|
|
354
|
-
'copytrading/total-profit-sharing':
|
|
355
|
-
'copytrading/unrealized-profit-sharing-details':
|
|
357
|
+
'copytrading/current-subpositions': 1,
|
|
358
|
+
'copytrading/subpositions-history': 1,
|
|
359
|
+
'copytrading/instruments': 4,
|
|
360
|
+
'copytrading/profit-sharing-details': 4,
|
|
361
|
+
'copytrading/total-profit-sharing': 4,
|
|
362
|
+
'copytrading/unrealized-profit-sharing-details': 4,
|
|
363
|
+
'copytrading/copy-settings': 4,
|
|
364
|
+
'copytrading/batch-leverage-info': 4,
|
|
365
|
+
'copytrading/current-lead-traders': 4,
|
|
366
|
+
'copytrading/lead-traders-history': 4,
|
|
356
367
|
// broker
|
|
357
368
|
'broker/nd/info': 10,
|
|
358
369
|
'broker/nd/subaccount-info': 10,
|
|
@@ -457,9 +468,13 @@ export default class okx extends Exchange {
|
|
|
457
468
|
'finance/staking-defi/eth/purchase': 5,
|
|
458
469
|
'finance/staking-defi/eth/redeem': 5,
|
|
459
470
|
// copytrading
|
|
460
|
-
'copytrading/algo-order':
|
|
461
|
-
'copytrading/close-subposition':
|
|
462
|
-
'copytrading/set-instruments':
|
|
471
|
+
'copytrading/algo-order': 1,
|
|
472
|
+
'copytrading/close-subposition': 1,
|
|
473
|
+
'copytrading/set-instruments': 4,
|
|
474
|
+
'copytrading/first-copy-settings': 4,
|
|
475
|
+
'copytrading/amend-copy-settings': 4,
|
|
476
|
+
'copytrading/stop-copy-trading': 4,
|
|
477
|
+
'copytrading/batch-set-leverage': 4,
|
|
463
478
|
// broker
|
|
464
479
|
'broker/nd/create-subaccount': 0.25,
|
|
465
480
|
'broker/nd/delete-subaccount': 1,
|
package/js/src/p2b.js
CHANGED
|
@@ -33,6 +33,8 @@ export default class p2b extends Exchange {
|
|
|
33
33
|
'cancelAllOrders': false,
|
|
34
34
|
'cancelOrder': true,
|
|
35
35
|
'cancelOrders': false,
|
|
36
|
+
'closeAllPositions': false,
|
|
37
|
+
'closePosition': false,
|
|
36
38
|
'createDepositAddress': false,
|
|
37
39
|
'createMarketOrder': false,
|
|
38
40
|
'createOrder': true,
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as net from 'net';
|
|
8
8
|
import * as tls from 'tls';
|
|
9
|
-
import createDebug from 'debug';
|
|
9
|
+
// import createDebug from 'debug';
|
|
10
10
|
import { once } from 'events';
|
|
11
11
|
import { Agent } from './../agent-base/index.js';
|
|
12
|
-
const debug = createDebug('http-proxy-agent');
|
|
13
12
|
function isHTTPS(protocol) {
|
|
14
13
|
return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false;
|
|
15
14
|
}
|
|
@@ -22,7 +21,7 @@ export class HttpProxyAgent extends Agent {
|
|
|
22
21
|
super(opts);
|
|
23
22
|
this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
|
|
24
23
|
this.proxyHeaders = opts?.headers ?? {};
|
|
25
|
-
debug('Creating new HttpProxyAgent instance: %o', this.proxy.href);
|
|
24
|
+
// debug('Creating new HttpProxyAgent instance: %o', this.proxy.href);
|
|
26
25
|
// Trim off the brackets from IPv6 addresses
|
|
27
26
|
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, '');
|
|
28
27
|
const port = this.proxy.port
|
|
@@ -74,11 +73,11 @@ export class HttpProxyAgent extends Agent {
|
|
|
74
73
|
// Create a socket connection to the proxy server.
|
|
75
74
|
let socket;
|
|
76
75
|
if (this.secureProxy) {
|
|
77
|
-
debug('Creating `tls.Socket`: %o', this.connectOpts);
|
|
76
|
+
// debug('Creating `tls.Socket`: %o', this.connectOpts);
|
|
78
77
|
socket = tls.connect(this.connectOpts);
|
|
79
78
|
}
|
|
80
79
|
else {
|
|
81
|
-
debug('Creating `net.Socket`: %o', this.connectOpts);
|
|
80
|
+
// debug('Creating `net.Socket`: %o', this.connectOpts);
|
|
82
81
|
socket = net.connect(this.connectOpts);
|
|
83
82
|
}
|
|
84
83
|
// At this point, the http ClientRequest's internal `_header` field
|
|
@@ -86,16 +85,18 @@ export class HttpProxyAgent extends Agent {
|
|
|
86
85
|
// to re-generate the string since we just changed the `req.path`.
|
|
87
86
|
let first;
|
|
88
87
|
let endOfHeaders;
|
|
89
|
-
debug('Regenerating stored HTTP header string for request');
|
|
88
|
+
// debug('Regenerating stored HTTP header string for request');
|
|
90
89
|
req._implicitHeader();
|
|
91
90
|
if (req.outputData && req.outputData.length > 0) {
|
|
92
91
|
// Node >= 12
|
|
93
|
-
debug(
|
|
92
|
+
// debug(
|
|
93
|
+
// 'Patching connection write() output buffer with updated header'
|
|
94
|
+
// );
|
|
94
95
|
first = req.outputData[0].data;
|
|
95
96
|
endOfHeaders = first.indexOf('\r\n\r\n') + 4;
|
|
96
97
|
req.outputData[0].data =
|
|
97
98
|
req._header + first.substring(endOfHeaders);
|
|
98
|
-
debug('Output buffer: %o', req.outputData[0].data);
|
|
99
|
+
// debug('Output buffer: %o', req.outputData[0].data);
|
|
99
100
|
}
|
|
100
101
|
// Wait for the socket's `connect` event, so that this `callback()`
|
|
101
102
|
// function throws instead of the `http` request machinery. This is
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
import * as net from 'net';
|
|
8
8
|
import * as tls from 'tls';
|
|
9
9
|
import assert from 'assert';
|
|
10
|
-
import createDebug from 'debug';
|
|
11
10
|
import { Agent } from './../agent-base/index.js';
|
|
12
11
|
import { parseProxyResponse } from './parse-proxy-response.js';
|
|
13
|
-
const debug = createDebug('https-proxy-agent');
|
|
14
12
|
/**
|
|
15
13
|
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
|
16
14
|
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
|
@@ -29,7 +27,7 @@ export class HttpsProxyAgent extends Agent {
|
|
|
29
27
|
this.options = { path: undefined };
|
|
30
28
|
this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
|
|
31
29
|
this.proxyHeaders = opts?.headers ?? {};
|
|
32
|
-
debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);
|
|
30
|
+
// debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);
|
|
33
31
|
// Trim off the brackets from IPv6 addresses
|
|
34
32
|
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, '');
|
|
35
33
|
const port = this.proxy.port
|
|
@@ -60,11 +58,11 @@ export class HttpsProxyAgent extends Agent {
|
|
|
60
58
|
// Create a socket connection to the proxy server.
|
|
61
59
|
let socket;
|
|
62
60
|
if (secureProxy) {
|
|
63
|
-
debug('Creating `tls.Socket`: %o', this.connectOpts);
|
|
61
|
+
// debug('Creating `tls.Socket`: %o', this.connectOpts);
|
|
64
62
|
socket = tls.connect(this.connectOpts);
|
|
65
63
|
}
|
|
66
64
|
else {
|
|
67
|
-
debug('Creating `net.Socket`: %o', this.connectOpts);
|
|
65
|
+
// debug('Creating `net.Socket`: %o', this.connectOpts);
|
|
68
66
|
socket = net.connect(this.connectOpts);
|
|
69
67
|
}
|
|
70
68
|
const headers = typeof this.proxyHeaders === 'function'
|
|
@@ -97,7 +95,7 @@ export class HttpsProxyAgent extends Agent {
|
|
|
97
95
|
if (opts.secureEndpoint) {
|
|
98
96
|
// The proxy is connecting to a TLS server, so upgrade
|
|
99
97
|
// this socket connection to a TLS connection.
|
|
100
|
-
debug('Upgrading socket connection to TLS');
|
|
98
|
+
// debug('Upgrading socket connection to TLS');
|
|
101
99
|
const servername = opts.servername || opts.host;
|
|
102
100
|
return tls.connect({
|
|
103
101
|
...omit(opts, 'host', 'path', 'port'),
|
|
@@ -122,7 +120,7 @@ export class HttpsProxyAgent extends Agent {
|
|
|
122
120
|
fakeSocket.readable = true;
|
|
123
121
|
// Need to wait for the "socket" event to re-play the "data" events.
|
|
124
122
|
req.once('socket', (s) => {
|
|
125
|
-
debug('Replaying proxy buffer for failed request');
|
|
123
|
+
// debug('Replaying proxy buffer for failed request');
|
|
126
124
|
assert(s.listenerCount('data') > 0);
|
|
127
125
|
// Replay the "buffered" Buffer onto the fake `socket`, since at
|
|
128
126
|
// this point the HTTP module machinery has been hooked up for
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
5
|
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
6
|
|
|
7
|
-
import createDebug from 'debug';
|
|
8
|
-
const debug = createDebug('https-proxy-agent:parse-proxy-response');
|
|
9
7
|
export function parseProxyResponse(socket) {
|
|
10
8
|
return new Promise((resolve, reject) => {
|
|
11
9
|
// we need to buffer any HTTP traffic that happens with the proxy before we get
|
|
@@ -28,14 +26,14 @@ export function parseProxyResponse(socket) {
|
|
|
28
26
|
socket.removeListener('readable', read);
|
|
29
27
|
}
|
|
30
28
|
function onclose(err) {
|
|
31
|
-
debug('onclose had error %o', err);
|
|
29
|
+
// debug('onclose had error %o', err);
|
|
32
30
|
}
|
|
33
31
|
function onend() {
|
|
34
|
-
debug('onend');
|
|
32
|
+
// debug('onend');
|
|
35
33
|
}
|
|
36
34
|
function onerror(err) {
|
|
37
35
|
cleanup();
|
|
38
|
-
debug('onerror %o', err);
|
|
36
|
+
// debug('onerror %o', err);
|
|
39
37
|
reject(err);
|
|
40
38
|
}
|
|
41
39
|
function ondata(b) {
|
|
@@ -45,7 +43,7 @@ export function parseProxyResponse(socket) {
|
|
|
45
43
|
const endOfHeaders = buffered.indexOf('\r\n\r\n');
|
|
46
44
|
if (endOfHeaders === -1) {
|
|
47
45
|
// keep buffering
|
|
48
|
-
debug('have not received end of HTTP headers yet...');
|
|
46
|
+
// debug('have not received end of HTTP headers yet...');
|
|
49
47
|
read();
|
|
50
48
|
return;
|
|
51
49
|
}
|
|
@@ -78,7 +76,7 @@ export function parseProxyResponse(socket) {
|
|
|
78
76
|
headers[key] = value;
|
|
79
77
|
}
|
|
80
78
|
}
|
|
81
|
-
debug('got proxy server response: %o', firstLine);
|
|
79
|
+
// debug('got proxy server response: %o', firstLine);
|
|
82
80
|
cleanup();
|
|
83
81
|
resolve({
|
|
84
82
|
connect: {
|
package/js/src/wavesexchange.js
CHANGED
|
@@ -32,6 +32,8 @@ export default class wavesexchange extends Exchange {
|
|
|
32
32
|
'option': false,
|
|
33
33
|
'addMargin': false,
|
|
34
34
|
'cancelOrder': true,
|
|
35
|
+
'closeAllPositions': false,
|
|
36
|
+
'closePosition': false,
|
|
35
37
|
'createMarketOrder': true,
|
|
36
38
|
'createOrder': true,
|
|
37
39
|
'createReduceOnlyOrder': false,
|
package/js/src/wazirx.js
CHANGED
|
@@ -33,6 +33,8 @@ export default class wazirx extends Exchange {
|
|
|
33
33
|
'borrowMargin': false,
|
|
34
34
|
'cancelAllOrders': true,
|
|
35
35
|
'cancelOrder': true,
|
|
36
|
+
'closeAllPositions': false,
|
|
37
|
+
'closePosition': false,
|
|
36
38
|
'createOrder': true,
|
|
37
39
|
'createReduceOnlyOrder': false,
|
|
38
40
|
'createStopLimitOrder': true,
|
package/js/src/woo.js
CHANGED
|
@@ -38,6 +38,8 @@ export default class woo extends Exchange {
|
|
|
38
38
|
'cancelAllOrders': true,
|
|
39
39
|
'cancelOrder': true,
|
|
40
40
|
'cancelWithdraw': false,
|
|
41
|
+
'closeAllPositions': false,
|
|
42
|
+
'closePosition': false,
|
|
41
43
|
'createDepositAddress': false,
|
|
42
44
|
'createMarketOrder': false,
|
|
43
45
|
'createOrder': true,
|
package/js/src/yobit.js
CHANGED
package/js/src/zonda.js
CHANGED
|
@@ -33,6 +33,8 @@ export default class zonda extends Exchange {
|
|
|
33
33
|
'cancelAllOrders': false,
|
|
34
34
|
'cancelOrder': true,
|
|
35
35
|
'cancelOrders': false,
|
|
36
|
+
'closeAllPositions': false,
|
|
37
|
+
'closePosition': false,
|
|
36
38
|
'createDepositAddress': false,
|
|
37
39
|
'createOrder': true,
|
|
38
40
|
'createReduceOnlyOrder': false,
|
package/package.json
CHANGED