active-strategy-framework
active-strategy-framework copied to clipboard
get v3 price from bitquery
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?