Bugfix/persist intraday market data only if market state is open (#3509)
* Persist INTRADAY data only if market state is open * Update changelog
This commit is contained in:
parent
c4499df74c
commit
8cda43bb63
@ -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
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user