Hi, i’m having problem with implementing real-time data, it seems data have delay of 10-2mins or its depend of pairs?
when we look at the data of WBNB/BUSD with Tradingview chart’s
here’s what looks like:
and if we zoom in this is what happened:
and the the candle bar date shows late by 1 day when we hover the mouse on the candle i don’t know if this because of timezone, but i used Etc/UTC or because of the period but use periodParams from getBars function and pass it to the query of time.
time: {
between: [$from, $to]
}
bitquery.js
export const QUERY = {
GET_SYMBOL_INFO: `
query(
$network: EthereumNetwork!,
$baseAddress: String!,
$quoteAddress: String!
) {
ethereum(network: $network) {
dexTrades(
baseCurrency: {is: $baseAddress}
This file has been truncated. show original
index.js
import timestring from 'timestring'
import { getSymbol, getCandleBars, getLastPrice } from './rest'
var lastCandleTime = 0
const intervals = {
'1': '1m',
'5': '5m',
'15': '15m',
This file has been truncated. show original
rest.js
import axios from 'axios'
import { QUERY } from './bitquery'
const baseURL = 'https://graphql.bitquery.io';
const X_API_KEY = "SECRET_KEY";
export const getSymbol = ({ network, baseAddress, quoteAddress }) => {
return bitquery('POST', '/', {
data: {
query: QUERY.GET_SYMBOL_INFO,
This file has been truncated. show original
gaurav
December 7, 2021, 12:04pm
2
We have a delay in data you can check here. https://bloxy.info/status
However, we have built a new real-time system to overcome this problem, if you want a demo of this platform, please DM me on Telegram @gaurav_zen .
Other than that we have UTC timezone in our data.
The code you shared is too long to read, let’s have a call use this link to schedule the call. I will help.