removed unified exchange

This commit is contained in:
Boki 2025-06-18 11:32:40 -04:00
parent 265e10a658
commit f69c7b034b
3 changed files with 4 additions and 49 deletions

View file

@ -355,19 +355,6 @@ export class ExchangeService {
break;
}
case 'unified': {
const unifiedExchanges = await db.collection('exchanges').find({}).toArray();
providerExchanges = unifiedExchanges
.filter(exchange => !mappedCodes.has(exchange.sourceCode || exchange.code))
.map(exchange => ({
provider_exchange_code: exchange.sourceCode || exchange.code,
provider_exchange_name: exchange.sourceName || exchange.name,
country_code: null,
currency: null,
symbol_count: null,
}));
break;
}
default:
throw new Error(`Unknown provider: ${provider}`);