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
parent
commit
8cda43bb63
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      CHANGELOG.md
  2. 3
      apps/api/src/services/data-provider/data-provider.service.ts

6
CHANGELOG.md

@ -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/), 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). 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 ## 2.90.0 - 2024-06-22
### Added ### Added

3
apps/api/src/services/data-provider/data-provider.service.ts

@ -516,7 +516,8 @@ export class DataProviderService {
.filter((symbol) => { .filter((symbol) => {
return ( return (
isNumber(response[symbol].marketPrice) && isNumber(response[symbol].marketPrice) &&
response[symbol].marketPrice > 0 response[symbol].marketPrice > 0 &&
response[symbol].marketState === 'open'
); );
}) })
.map((symbol) => { .map((symbol) => {

Loading…
Cancel
Save