Release v24.004 (from 8ab257ed)

Fixes tradingview/charting_library#7519
Fixes tradingview/charting_library#7578
This commit is contained in:
jenkins
2023-04-24 19:30:07 +00:00
parent 4a9c60da7b
commit 73b47eba77
15 changed files with 1072 additions and 256 deletions

File diff suppressed because one or more lines are too long

View File

@@ -62,9 +62,19 @@ export class HistoryProvider {
lastResultLength = followupResult.bars.length;
// merge result with results collected so far
if (this._limitedServerResponse.expectedOrder === 'earliestFirst') {
if (followupResult.bars[0].time === result.bars[result.bars.length - 1].time) {
// Datafeed shouldn't include a value exactly matching the `to` timestamp but in case it does
// we will remove the duplicate.
followupResult.bars.shift();
}
result.bars.push(...followupResult.bars);
}
else {
if (followupResult.bars[followupResult.bars.length - 1].time === result.bars[0].time) {
// Datafeed shouldn't include a value exactly matching the `to` timestamp but in case it does
// we will remove the duplicate.
followupResult.bars.pop();
}
result.bars.unshift(...followupResult.bars);
}
}

View File

@@ -161,8 +161,18 @@ export class HistoryProvider {
lastResultLength = followupResult.bars.length;
// merge result with results collected so far
if (this._limitedServerResponse.expectedOrder === 'earliestFirst') {
if (followupResult.bars[0].time === result.bars[result.bars.length - 1].time) {
// Datafeed shouldn't include a value exactly matching the `to` timestamp but in case it does
// we will remove the duplicate.
followupResult.bars.shift();
}
result.bars.push(...followupResult.bars);
} else {
if (followupResult.bars[followupResult.bars.length - 1].time === result.bars[0].time) {
// Datafeed shouldn't include a value exactly matching the `to` timestamp but in case it does
// we will remove the duplicate.
followupResult.bars.pop();
}
result.bars.unshift(...followupResult.bars);
}
}