Browse Source

Removed special character check to allow Symbols with "-"

pull/4471/head
Prabhanshu Pandit 3 weeks ago
parent
commit
2e6c7cddee
  1. 1
      CHANGELOG.md
  2. 2
      apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts

1
CHANGELOG.md

@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed client-side dates to be sent in UTC format to ensure date consistency
- Benchmark endpoint
- Exchange rate endpoint
- Removed special character checking in the _Yahoo Finance_ service (get asset profiles)
## 2.146.0 - 2025-03-15

2
apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts

@ -170,8 +170,6 @@ export class YahooFinanceDataEnhancerService implements DataEnhancerInterface {
symbol = quotes[0].symbol;
}
} catch {}
} else if (symbol?.includes('-')) {
throw new Error(`${symbol} is not valid`);
} else {
symbol = this.convertToYahooFinanceSymbol(symbol);
}

Loading…
Cancel
Save