Get Token Price

Hello,

I was trying to create a price tracker for a given BEP20 token in BNB.
I figured out a way but every time I executed it it gives me 5 minutes old result.

{
ethereum(network: bsc){
dexTrades(options: {limit: 1, desc: "timeInterval.minute"},
date: {since:"2021-05-19"}
exchangeName: {is: "Pancake"},
baseCurrency: {is: "0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3"},
quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}){
timeInterval {
minute(count: 1)
}
baseCurrency {
symbol
address
}
baseAmount
quoteCurrency {
symbol
address
}
quoteAmount
trades: count
quotePrice
maximum_price: quotePrice(calculate: maximum)
minimum_price: quotePrice(calculate: minimum)
open_price: minimum(of: block get: quote_price)
close_price: maximum(of: block get: quote_price)
}}
}

Can you guys, please, propose any other approach that I can do to get real time price?
Thanks in advance

We have little delay because of fork resistance, you can check here https://bloxy.info/status

however we are building a real time system which will be live soon.

1 Like

do you know how poocoin fetches real time data? I’ve heard they are your customers so they should be having 5 min delay as well