ccxt-ir 4.14.0 → 4.14.1

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/dist/cjs/ccxt.js CHANGED
@@ -241,7 +241,7 @@ var xt$1 = require('./src/pro/xt.js');
241
241
 
242
242
  //-----------------------------------------------------------------------------
243
243
  // this is updated by vss.js when building
244
- const version = '4.14.0';
244
+ const version = '4.14.1';
245
245
  Exchange["default"].ccxtVersion = version;
246
246
  const exchanges = {
247
247
  'abantether': abantether["default"],
@@ -101,7 +101,7 @@ class saraf extends Exchange["default"] {
101
101
  'api': {
102
102
  'public': {
103
103
  'get': {
104
- 'v3/prices/crypto': 1,
104
+ 'v1/prices/listed': 1,
105
105
  },
106
106
  },
107
107
  },
@@ -179,7 +179,7 @@ class saraf extends Exchange["default"] {
179
179
  * @param {object} [params] extra parameters specific to the exchange API endpoint
180
180
  * @returns {object[]} an array of objects representing market data
181
181
  */
182
- const response = await this.publicGetV3PricesCrypto(params);
182
+ const response = await this.publicGetV1PricesListed(params);
183
183
  const price = this.safeDict(response, 'price', {});
184
184
  const items = this.safeDict(price, 'Items', {});
185
185
  const lastUpdateTime = this.safeInteger(price, 'lastUpdateTime');
@@ -210,7 +210,7 @@ class saraf extends Exchange["default"] {
210
210
  if (symbols !== undefined) {
211
211
  symbols = this.marketSymbols(symbols);
212
212
  }
213
- const response = await this.publicGetV3PricesCrypto(params);
213
+ const response = await this.publicGetV1PricesListed(params);
214
214
  const price = this.safeDict(response, 'price', {});
215
215
  const items = this.safeDict(price, 'Items', {});
216
216
  const lastUpdateTime = this.safeInteger(price, 'lastUpdateTime');
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.14.0";
7
+ declare const version = "4.14.1";
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.14.0';
41
+ const version = '4.14.1';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import abantether from './src/abantether.js';
@@ -1,7 +1,7 @@
1
1
  import { implicitReturnType } from '../base/types.js';
2
2
  import { Exchange as _Exchange } from '../base/Exchange.js';
3
3
  interface Exchange {
4
- publicGetV3PricesCrypto(params?: {}): Promise<implicitReturnType>;
4
+ publicGetV1PricesListed(params?: {}): Promise<implicitReturnType>;
5
5
  }
6
6
  declare abstract class Exchange extends _Exchange {
7
7
  }
package/js/src/saraf.js CHANGED
@@ -102,7 +102,7 @@ export default class saraf extends Exchange {
102
102
  'api': {
103
103
  'public': {
104
104
  'get': {
105
- 'v3/prices/crypto': 1,
105
+ 'v1/prices/listed': 1,
106
106
  },
107
107
  },
108
108
  },
@@ -180,7 +180,7 @@ export default class saraf extends Exchange {
180
180
  * @param {object} [params] extra parameters specific to the exchange API endpoint
181
181
  * @returns {object[]} an array of objects representing market data
182
182
  */
183
- const response = await this.publicGetV3PricesCrypto(params);
183
+ const response = await this.publicGetV1PricesListed(params);
184
184
  const price = this.safeDict(response, 'price', {});
185
185
  const items = this.safeDict(price, 'Items', {});
186
186
  const lastUpdateTime = this.safeInteger(price, 'lastUpdateTime');
@@ -211,7 +211,7 @@ export default class saraf extends Exchange {
211
211
  if (symbols !== undefined) {
212
212
  symbols = this.marketSymbols(symbols);
213
213
  }
214
- const response = await this.publicGetV3PricesCrypto(params);
214
+ const response = await this.publicGetV1PricesListed(params);
215
215
  const price = this.safeDict(response, 'price', {});
216
216
  const items = this.safeDict(price, 'Items', {});
217
217
  const lastUpdateTime = this.safeInteger(price, 'lastUpdateTime');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt-ir",
3
- "version": "4.14.0",
3
+ "version": "4.14.1",
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",