ccxt-ir 4.9.19 → 4.9.22

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.
@@ -172,14 +172,14 @@ class kcex extends kcex$1["default"] {
172
172
  baseId = baseId.toLowerCase();
173
173
  quoteId = quoteId.toLowerCase();
174
174
  return {
175
- 'id': id,
175
+ 'id': base + '/' + quote,
176
176
  'symbol': base + '/' + quote,
177
177
  'base': base,
178
178
  'quote': quote,
179
179
  'settle': undefined,
180
180
  'baseId': baseId,
181
181
  'quoteId': quoteId,
182
- 'settleId': undefined,
182
+ 'settleId': id,
183
183
  'type': 'spot',
184
184
  'spot': true,
185
185
  'margin': false,
@@ -243,12 +243,12 @@ class kcex extends kcex$1["default"] {
243
243
  const marketList = Object.values(this.markets);
244
244
  for (let i = 0; i < marketList.length; i++) {
245
245
  const market = marketList[i];
246
- idToMarket[market['id']] = market;
246
+ idToMarket[market['settleId']] = market;
247
247
  }
248
248
  for (let i = 0; i < tickers.length; i++) {
249
249
  const ticker = tickers[i];
250
250
  const id = this.safeString(ticker, 'id');
251
- const market = idToMarket[id];
251
+ const market = this.safeValue(idToMarket, id);
252
252
  ticker['timestamp'] = timestamp;
253
253
  if (market !== undefined) {
254
254
  const parsedTicker = this.parseTicker(ticker, market);