Created
March 15, 2022 07:31
-
-
Save ereshzealous/afc06c93cd7ac064f8a12a27cd9c8ee0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from(bucket: "local") | |
|> range(start: -37d, stop: now()) | |
|> filter(fn: (r) => r["_measurement"] == "ticks") | |
|> filter(fn: (r) => r["_field"] == "price") | |
|> filter(fn: (r) => r["product"] == "AGUX/USD") | |
|> window(period: 1h) | |
|> first() | |
|> yield(name: "first") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment