Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalcTWAP: can be reduced to only one snapshots range. #1553

Open
jgimeno opened this issue Aug 23, 2023 · 0 comments · May be fixed by #1801
Open

CalcTWAP: can be reduced to only one snapshots range. #1553

jgimeno opened this issue Aug 23, 2023 · 0 comments · May be fixed by #1801

Comments

@jgimeno
Copy link
Contributor

jgimeno commented Aug 23, 2023

for ; iter.Valid(); iter.Next() {
s := iter.Value()
snapshots = append(snapshots, s)
if s.TimestampMs <= lowerLimitTimestampMs {
break
}

for _, snapshot := range snapshots {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants