ccxt-ir 4.9.15 → 4.9.16
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 +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/abantether.js +2 -2
- package/dist/cjs/src/hamtapay.js +4 -1
- package/dist/cjs/src/sarmayex.js +367 -366
- package/dist/cjs/src/toobit.js +436 -382
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abantether.js +2 -2
- package/js/src/abstract/toobit.d.ts +10 -9
- package/js/src/hamtapay.js +4 -1
- package/js/src/sarmayex.js +370 -369
- package/js/src/toobit.js +439 -385
- package/package.json +1 -1
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, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, 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, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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.9.
|
|
7
|
+
declare const version = "4.9.16";
|
|
8
8
|
import abantether from './src/abantether.js';
|
|
9
9
|
import afratether from './src/afratether.js';
|
|
10
10
|
import alpaca from './src/alpaca.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, RestrictedLocation, 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.9.
|
|
41
|
+
const version = '4.9.16';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import abantether from './src/abantether.js';
|
package/js/src/abantether.js
CHANGED
|
@@ -192,8 +192,8 @@ export default class abantether extends Exchange {
|
|
|
192
192
|
'baseId': baseId,
|
|
193
193
|
'quoteId': quoteId,
|
|
194
194
|
'settleId': undefined,
|
|
195
|
-
'type': '
|
|
196
|
-
'spot':
|
|
195
|
+
'type': 'otc',
|
|
196
|
+
'spot': false,
|
|
197
197
|
'margin': false,
|
|
198
198
|
'swap': false,
|
|
199
199
|
'future': false,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { implicitReturnType } from '../base/types.js';
|
|
2
|
-
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
-
interface Exchange {
|
|
4
|
-
publicGetQuoteV1Ticker24hr(params?: {}): Promise<implicitReturnType>;
|
|
5
|
-
publicGetQuoteV1Klines(params?: {}): Promise<implicitReturnType>;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetQuoteV1Ticker24hr(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetQuoteV1Klines(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetApiV1ExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
}
|
|
8
|
+
declare abstract class Exchange extends _Exchange {
|
|
9
|
+
}
|
|
10
|
+
export default Exchange;
|
package/js/src/hamtapay.js
CHANGED
|
@@ -294,7 +294,10 @@ export default class hamtapay extends Exchange {
|
|
|
294
294
|
}
|
|
295
295
|
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
296
296
|
const url = this.urls['api']['public'] + '/' + path;
|
|
297
|
-
headers = {
|
|
297
|
+
headers = {
|
|
298
|
+
'Content-Type': 'application/json',
|
|
299
|
+
'Origin': 'https://hamtapay.net',
|
|
300
|
+
};
|
|
298
301
|
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
|
|
299
302
|
}
|
|
300
303
|
}
|