ccxt-ir 4.12.0 → 4.12.2
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/ourbit.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ourbit.js +1 -1
- package/js/test.js +14 -18
- package/package.json +1 -1
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.
|
|
242
|
+
const version = '4.12.2';
|
|
243
243
|
Exchange["default"].ccxtVersion = version;
|
|
244
244
|
const exchanges = {
|
|
245
245
|
'abantether': abantether["default"],
|
package/dist/cjs/src/ourbit.js
CHANGED
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.
|
|
7
|
+
declare const version = "4.12.2";
|
|
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.
|
|
41
|
+
const version = '4.12.2';
|
|
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':
|
|
147
|
+
'active': true,
|
|
148
148
|
'contract': false,
|
|
149
149
|
'linear': undefined,
|
|
150
150
|
'inverse': undefined,
|
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
|
|
8
|
-
async function
|
|
9
|
-
const exchange = new
|
|
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
|
-
|
|
15
|
-
const
|
|
16
|
-
console.log('
|
|
17
|
-
console.log('
|
|
18
|
-
|
|
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('
|
|
20
|
+
console.error('Test failed:', error);
|
|
21
|
+
process.exitCode = 1;
|
|
22
|
+
}
|
|
23
|
+
finally {
|
|
24
|
+
await exchange.close();
|
|
29
25
|
}
|
|
30
26
|
}
|
|
31
|
-
|
|
27
|
+
void main();
|
package/package.json
CHANGED