ccxt-ir 4.12.0 → 4.12.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
@@ -239,7 +239,7 @@ var xt$1 = require('./src/pro/xt.js');
239
239
 
240
240
  //-----------------------------------------------------------------------------
241
241
  // this is updated by vss.js when building
242
- const version = '4.12.0';
242
+ const version = '4.12.1';
243
243
  Exchange["default"].ccxtVersion = version;
244
244
  const exchanges = {
245
245
  'abantether': abantether["default"],
@@ -1 +1 @@
1
- { "type": "commonjs" }
1
+ '{ "type": "commonjs" }'
@@ -143,7 +143,7 @@ class ourbit extends Exchange["default"] {
143
143
  'swap': false,
144
144
  'future': false,
145
145
  'option': false,
146
- 'active': this.safeInteger(market, 'sts') === 1,
146
+ 'active': true,
147
147
  'contract': false,
148
148
  'linear': undefined,
149
149
  'inverse': undefined,
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.12.0";
7
+ declare const version = "4.12.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.12.0';
41
+ const version = '4.12.1';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import abantether from './src/abantether.js';
package/js/src/ourbit.js CHANGED
@@ -144,7 +144,7 @@ export default class ourbit extends Exchange {
144
144
  'swap': false,
145
145
  'future': false,
146
146
  'option': false,
147
- 'active': this.safeInteger(market, 'sts') === 1,
147
+ 'active': true,
148
148
  'contract': false,
149
149
  'linear': undefined,
150
150
  'inverse': undefined,
@@ -15,7 +15,7 @@ export declare class BigInteger {
15
15
  protected intValue(): number;
16
16
  protected byteValue(): number;
17
17
  protected shortValue(): number;
18
- protected signum(): 0 | 1 | -1;
18
+ protected signum(): 1 | 0 | -1;
19
19
  toByteArray(): number[];
20
20
  protected equals(a: BigInteger): boolean;
21
21
  protected min(a: BigInteger): BigInteger;
@@ -1,5 +1,5 @@
1
1
  import { Abi, FunctionAbi, RawArgs } from '../../../types/index.js';
2
2
  import { AbiParserInterface } from './interface.js';
3
3
  export declare function createAbiParser(abi: Abi): AbiParserInterface;
4
- export declare function getAbiVersion(abi: Abi): 0 | 1 | 2;
4
+ export declare function getAbiVersion(abi: Abi): 1 | 0 | 2;
5
5
  export declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
package/js/test.js CHANGED
@@ -4,28 +4,24 @@
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 ccxt from './ccxt';
8
- async function testChangefa() {
9
- const exchange = new ccxt.changefa({
7
+ import { ourbit } from './ccxt.js';
8
+ async function main() {
9
+ const exchange = new ourbit({
10
10
  enableRateLimit: true,
11
- timeout: 20000,
12
11
  });
13
12
  try {
14
- console.log('Loading markets...');
15
- const markets = await exchange.fetchMarkets();
16
- console.log('fetchMarkets returned', markets.length, 'markets');
17
- console.log('Testing fetchTickers...');
18
- const tickers = await exchange.fetchTickers();
19
- console.log('fetchTickers returned', Object.keys(tickers).length, 'markets');
20
- const firstMarket = markets.length > 0 ? markets[0] : undefined;
21
- if (firstMarket !== undefined) {
22
- console.log('Testing fetchTicker for symbol:', firstMarket['symbol']);
23
- const ticker = await exchange.fetchTicker(firstMarket['symbol']);
24
- console.log('fetchTicker result:', ticker);
25
- }
13
+ const markets = await exchange.fetchMarkets({ type: 'spot' });
14
+ const firstSpotMarket = markets[0];
15
+ console.log('Exchange:', exchange.id);
16
+ console.log('Spot markets count:', markets.length);
17
+ console.log('First spot market:', firstSpotMarket);
26
18
  }
27
19
  catch (error) {
28
- console.error('Error during testing changefa:', error);
20
+ console.error('Test failed:', error);
21
+ process.exitCode = 1;
22
+ }
23
+ finally {
24
+ await exchange.close();
29
25
  }
30
26
  }
31
- testChangefa();
27
+ void main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt-ir",
3
- "version": "4.12.0",
3
+ "version": "4.12.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",