Skip to content

Instantly share code, notes, and snippets.

@sayon-bitquery
Last active July 21, 2021 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sayon-bitquery/47117f83d330893309eacdbda9471690 to your computer and use it in GitHub Desktop.
Save sayon-bitquery/47117f83d330893309eacdbda9471690 to your computer and use it in GitHub Desktop.
Tradingview-3.9
{
ethereum(network: bsc) {
dexTrades(
options: {asc: "timeInterval.minute"}
date: {since: "2021-06-20T07:23:21.000Z", till: "${new Date().toISOString()}"}
exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
baseCurrency: {is: "${baseCurrency}"},
quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"},
tradeAmountUsd: {gt: 10}
)
{
timeInterval {
minute(count: 15, format: "%Y-%m-%dT%H:%M:%SZ")
}
volume: quoteAmount
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment