recent prices should also filter for zeros
This commit is contained in:
parent
79a2577440
commit
43dd492b3c
|
@ -425,7 +425,8 @@ export class AggregatedFeed {
|
|||
recentPrices() : IPrice[] {
|
||||
return this.prices.filter((p) => p &&
|
||||
p.timestamp &&
|
||||
(p.timestamp - Date.now()) < 10*SECONDS)
|
||||
(p.timestamp - Date.now()) < 10*SECONDS &&
|
||||
p.value > 0)
|
||||
}
|
||||
|
||||
get median(): IPrice | undefined {
|
||||
|
|
Loading…
Reference in New Issue