active-strategy-framework icon indicating copy to clipboard operation
active-strategy-framework copied to clipboard

get v3 price from bitquery

Open turfT opened this issue 2 years ago • 0 comments

I tried the query below, and it works.

` payload = ''' { ethereum(network: matic) { dexTrades( protocol: {is: "Uniswap v3"} options: {asc: "timeInterval.minute", limit: 10000, offset:''' + str(offset) + '''} date: {between: ["''' + date_begin + '''","''' + date_end + '''"]} smartContractAddress: {is: "''' + pool_address + '''"} ) { timeInterval { minute(count: 1) } baseCurrency { symbol address } baseAmount quoteCurrency { symbol address } tradeAmount(in: USD) quoteAmount quotePrice } } }

    '''`

should we put it in GetPooldata.py?

turfT avatar May 13 '22 08:05 turfT