Browse Source
Bugfix/persist intraday market data only if market state is open (#3509)
* Persist INTRADAY data only if market state is open
* Update changelog
pull/3514/head
Thomas Kaul
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-provider/data-provider.service.ts
|
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. |
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Changed the mechanism of the `INTRADAY` data gathering to persist data only if the market state is `OPEN` |
|
|
|
|
|
|
|
## 2.90.0 - 2024-06-22 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -516,7 +516,8 @@ export class DataProviderService { |
|
|
|
.filter((symbol) => { |
|
|
|
return ( |
|
|
|
isNumber(response[symbol].marketPrice) && |
|
|
|
response[symbol].marketPrice > 0 |
|
|
|
response[symbol].marketPrice > 0 && |
|
|
|
response[symbol].marketState === 'open' |
|
|
|
); |
|
|
|
}) |
|
|
|
.map((symbol) => { |
|
|
|