ccxt-ir 4.20.0 → 4.20.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
@@ -260,7 +260,7 @@ var xt$1 = require('./src/pro/xt.js');
260
260
 
261
261
  //-----------------------------------------------------------------------------
262
262
  // this is updated by vss.js when building
263
- const version = '4.20.0';
263
+ const version = '4.20.1';
264
264
  Exchange["default"].ccxtVersion = version;
265
265
  const exchanges = {
266
266
  'abantether': abantether["default"],
@@ -51,7 +51,7 @@ class gerami extends Exchange["default"] {
51
51
  });
52
52
  }
53
53
  async fetchMarkets(params = {}) {
54
- const marketIds = ['XAU750g_IRT', 'XAG999g_IRT'];
54
+ const marketIds = ['XAU750g_IRT', 'XAG999g_IRT', 'XCU9999g_IRT'];
55
55
  const result = [];
56
56
  for (let i = 0; i < marketIds.length; i++) {
57
57
  const response = await this.publicGetPairsPair(this.extend({
@@ -69,6 +69,9 @@ class gerami extends Exchange["default"] {
69
69
  if (baseId === 'XAU750g') {
70
70
  base = 'XAU18';
71
71
  }
72
+ if (baseId === 'XCU9999g') {
73
+ base = 'XCU-1G';
74
+ }
72
75
  return {
73
76
  'id': this.safeString(data, 'market'),
74
77
  'symbol': base + '/' + quoteId,
@@ -123,7 +126,7 @@ class gerami extends Exchange["default"] {
123
126
  if (symbols !== undefined) {
124
127
  symbols = this.marketSymbols(symbols);
125
128
  }
126
- const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT'];
129
+ const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT', 'XCU-1G/IRT'];
127
130
  const result = {};
128
131
  for (let i = 0; i < marketSymbols.length; i++) {
129
132
  const market = this.market(marketSymbols[i]);
@@ -55,7 +55,7 @@ class melligold extends Exchange["default"] {
55
55
  });
56
56
  }
57
57
  async fetchMarkets(params = {}) {
58
- const symbols = ['XAU18', 'XAG'];
58
+ const symbols = ['XAU18', 'XAG', 'XCU'];
59
59
  const result = [];
60
60
  for (let i = 0; i < symbols.length; i++) {
61
61
  const response = await this.requestWithCookie(this.extend({
@@ -107,6 +107,9 @@ class melligold extends Exchange["default"] {
107
107
  if (base === 'XAG') {
108
108
  base = 'XAG-1G';
109
109
  }
110
+ if (base === 'XCU') {
111
+ base = 'XCU-1G';
112
+ }
110
113
  const quote = 'IRT';
111
114
  return {
112
115
  'id': base + quote,
@@ -164,7 +167,7 @@ class melligold extends Exchange["default"] {
164
167
  symbols = this.marketSymbols(symbols);
165
168
  }
166
169
  const result = {};
167
- const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT'];
170
+ const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT', 'XCU-1G/IRT'];
168
171
  for (let i = 0; i < marketSymbols.length; i++) {
169
172
  const market = this.market(marketSymbols[i]);
170
173
  const response = await this.requestWithCookie(this.extend({
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.20.0";
7
+ declare const version = "4.20.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.20.0';
41
+ const version = '4.20.1';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import abantether from './src/abantether.js';
package/js/src/gerami.js CHANGED
@@ -52,7 +52,7 @@ export default class gerami extends Exchange {
52
52
  });
53
53
  }
54
54
  async fetchMarkets(params = {}) {
55
- const marketIds = ['XAU750g_IRT', 'XAG999g_IRT'];
55
+ const marketIds = ['XAU750g_IRT', 'XAG999g_IRT', 'XCU9999g_IRT'];
56
56
  const result = [];
57
57
  for (let i = 0; i < marketIds.length; i++) {
58
58
  const response = await this.publicGetPairsPair(this.extend({
@@ -70,6 +70,9 @@ export default class gerami extends Exchange {
70
70
  if (baseId === 'XAU750g') {
71
71
  base = 'XAU18';
72
72
  }
73
+ if (baseId === 'XCU9999g') {
74
+ base = 'XCU-1G';
75
+ }
73
76
  return {
74
77
  'id': this.safeString(data, 'market'),
75
78
  'symbol': base + '/' + quoteId,
@@ -124,7 +127,7 @@ export default class gerami extends Exchange {
124
127
  if (symbols !== undefined) {
125
128
  symbols = this.marketSymbols(symbols);
126
129
  }
127
- const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT'];
130
+ const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT', 'XCU-1G/IRT'];
128
131
  const result = {};
129
132
  for (let i = 0; i < marketSymbols.length; i++) {
130
133
  const market = this.market(marketSymbols[i]);
@@ -56,7 +56,7 @@ export default class melligold extends Exchange {
56
56
  });
57
57
  }
58
58
  async fetchMarkets(params = {}) {
59
- const symbols = ['XAU18', 'XAG'];
59
+ const symbols = ['XAU18', 'XAG', 'XCU'];
60
60
  const result = [];
61
61
  for (let i = 0; i < symbols.length; i++) {
62
62
  const response = await this.requestWithCookie(this.extend({
@@ -108,6 +108,9 @@ export default class melligold extends Exchange {
108
108
  if (base === 'XAG') {
109
109
  base = 'XAG-1G';
110
110
  }
111
+ if (base === 'XCU') {
112
+ base = 'XCU-1G';
113
+ }
111
114
  const quote = 'IRT';
112
115
  return {
113
116
  'id': base + quote,
@@ -165,7 +168,7 @@ export default class melligold extends Exchange {
165
168
  symbols = this.marketSymbols(symbols);
166
169
  }
167
170
  const result = {};
168
- const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT'];
171
+ const marketSymbols = ['XAU18/IRT', 'XAG-1G/IRT', 'XCU-1G/IRT'];
169
172
  for (let i = 0; i < marketSymbols.length; i++) {
170
173
  const market = this.market(marketSymbols[i]);
171
174
  const response = await this.requestWithCookie(this.extend({
package/js/test.js CHANGED
@@ -4,7 +4,8 @@
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 ramzinex from './src/ramzinex.js';
7
+ import gerami from './src/gerami.js';
8
+ import melligold from './src/melligold.js';
8
9
  const exchanges = [
9
10
  // { 'id': 'technogold', 'Exchange': technogold },
10
11
  // { 'id': 'baazar', 'Exchange': baazar },
@@ -14,12 +15,12 @@ const exchanges = [
14
15
  // { 'id': 'zarafza', 'Exchange': zarafza },
15
16
  // { 'id': 'daric', 'Exchange': daric },
16
17
  // { 'id': 'digikalagold', 'Exchange': digikalagold },
17
- // { 'id': 'gerami', 'Exchange': gerami },
18
+ { 'id': 'gerami', 'Exchange': gerami },
18
19
  // { 'id': 'goldika', 'Exchange': goldika },
19
20
  // { 'id': 'goldis', 'Exchange': goldis },
20
- // { 'id': 'melligold', 'Exchange': melligold },
21
+ { 'id': 'melligold', 'Exchange': melligold },
21
22
  // { 'id': 'milligold', 'Exchange': milligold },
22
- { 'id': 'ramzinex', 'Exchange': ramzinex },
23
+ // { 'id': 'ramzinex', 'Exchange': ramzinex },
23
24
  // { 'id': 'wallgold', 'Exchange': wallgold },
24
25
  // { 'id': 'talapp', 'Exchange': talapp },
25
26
  // { 'id': 'talaavan', 'Exchange': talaavan },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt-ir",
3
- "version": "4.20.0",
3
+ "version": "4.20.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",