ccxt 4.3.93 → 4.3.94
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 +1 -1
- package/dist/cjs/src/bingx.js +4 -2
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/bingx.js +5 -3
- package/package.json +2 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -196,7 +196,7 @@ var xt$1 = require('./src/pro/xt.js');
|
|
|
196
196
|
|
|
197
197
|
//-----------------------------------------------------------------------------
|
|
198
198
|
// this is updated by vss.js when building
|
|
199
|
-
const version = '4.3.
|
|
199
|
+
const version = '4.3.94';
|
|
200
200
|
Exchange["default"].ccxtVersion = version;
|
|
201
201
|
const exchanges = {
|
|
202
202
|
'ace': ace,
|
package/dist/cjs/src/bingx.js
CHANGED
|
@@ -457,7 +457,8 @@ class bingx extends bingx$1 {
|
|
|
457
457
|
'100414': errors.AccountSuspended,
|
|
458
458
|
'100419': errors.PermissionDenied,
|
|
459
459
|
'100437': errors.BadRequest,
|
|
460
|
-
'101204': errors.InsufficientFunds,
|
|
460
|
+
'101204': errors.InsufficientFunds,
|
|
461
|
+
'110425': errors.InvalidOrder, // {"code":110425,"msg":"Please ensure that the minimum nominal value of the order placed must be greater than 2u","data":{}}
|
|
461
462
|
},
|
|
462
463
|
'broad': {},
|
|
463
464
|
},
|
|
@@ -2556,6 +2557,7 @@ class bingx extends bingx$1 {
|
|
|
2556
2557
|
let positionSide = undefined;
|
|
2557
2558
|
const hedged = this.safeBool(params, 'hedged', false);
|
|
2558
2559
|
if (hedged) {
|
|
2560
|
+
params = this.omit(params, 'reduceOnly');
|
|
2559
2561
|
if (reduceOnly) {
|
|
2560
2562
|
positionSide = (side === 'buy') ? 'SHORT' : 'LONG';
|
|
2561
2563
|
}
|
|
@@ -2569,7 +2571,7 @@ class bingx extends bingx$1 {
|
|
|
2569
2571
|
request['positionSide'] = positionSide;
|
|
2570
2572
|
request['quantity'] = (market['inverse']) ? amount : this.parseToNumeric(this.amountToPrecision(symbol, amount)); // precision not available for inverse contracts
|
|
2571
2573
|
}
|
|
2572
|
-
params = this.omit(params, ['hedged', '
|
|
2574
|
+
params = this.omit(params, ['hedged', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingPercent', 'trailingType', 'takeProfit', 'stopLoss', 'clientOrderId']);
|
|
2573
2575
|
return this.extend(request, params);
|
|
2574
2576
|
}
|
|
2575
2577
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.93";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.94';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/js/src/bingx.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
import Exchange from './abstract/bingx.js';
|
|
9
|
-
import { AuthenticationError, PermissionDenied, AccountSuspended, ExchangeError, InsufficientFunds, BadRequest, OrderNotFound, DDoSProtection, BadSymbol, ArgumentsRequired, NotSupported, OperationFailed } from './base/errors.js';
|
|
9
|
+
import { AuthenticationError, PermissionDenied, AccountSuspended, ExchangeError, InsufficientFunds, BadRequest, OrderNotFound, DDoSProtection, BadSymbol, ArgumentsRequired, NotSupported, OperationFailed, InvalidOrder } from './base/errors.js';
|
|
10
10
|
import { Precise } from './base/Precise.js';
|
|
11
11
|
import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
|
|
12
12
|
import { TICK_SIZE } from './base/functions/number.js';
|
|
@@ -460,7 +460,8 @@ export default class bingx extends Exchange {
|
|
|
460
460
|
'100414': AccountSuspended,
|
|
461
461
|
'100419': PermissionDenied,
|
|
462
462
|
'100437': BadRequest,
|
|
463
|
-
'101204': InsufficientFunds,
|
|
463
|
+
'101204': InsufficientFunds,
|
|
464
|
+
'110425': InvalidOrder, // {"code":110425,"msg":"Please ensure that the minimum nominal value of the order placed must be greater than 2u","data":{}}
|
|
464
465
|
},
|
|
465
466
|
'broad': {},
|
|
466
467
|
},
|
|
@@ -2559,6 +2560,7 @@ export default class bingx extends Exchange {
|
|
|
2559
2560
|
let positionSide = undefined;
|
|
2560
2561
|
const hedged = this.safeBool(params, 'hedged', false);
|
|
2561
2562
|
if (hedged) {
|
|
2563
|
+
params = this.omit(params, 'reduceOnly');
|
|
2562
2564
|
if (reduceOnly) {
|
|
2563
2565
|
positionSide = (side === 'buy') ? 'SHORT' : 'LONG';
|
|
2564
2566
|
}
|
|
@@ -2572,7 +2574,7 @@ export default class bingx extends Exchange {
|
|
|
2572
2574
|
request['positionSide'] = positionSide;
|
|
2573
2575
|
request['quantity'] = (market['inverse']) ? amount : this.parseToNumeric(this.amountToPrecision(symbol, amount)); // precision not available for inverse contracts
|
|
2574
2576
|
}
|
|
2575
|
-
params = this.omit(params, ['hedged', '
|
|
2577
|
+
params = this.omit(params, ['hedged', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingPercent', 'trailingType', 'takeProfit', 'stopLoss', 'clientOrderId']);
|
|
2576
2578
|
return this.extend(request, params);
|
|
2577
2579
|
}
|
|
2578
2580
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccxt",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.94",
|
|
4
4
|
"description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
|
|
5
5
|
"unpkg": "dist/ccxt.browser.min.js",
|
|
6
6
|
"type": "module",
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"response-php-sync": "npm run ti-php -- --responseTests --sync",
|
|
128
128
|
"response-php": "npm run response-php-sync && npm run response-php-async",
|
|
129
129
|
"response-tests": "npm run response-js && npm run response-py && npm run response-php && npm run response-cs",
|
|
130
|
+
"static-data-updater": "tsx ./utils/update-static-json",
|
|
130
131
|
"id-tests-js": "npm run ti-js -- --idTests",
|
|
131
132
|
"id-tests-py": "npm run ti-py -- --idTests",
|
|
132
133
|
"id-tests-php": "npm run ti-php -- --idTests",
|