Bitquery API integration with TradingView Technical Analysis Charts (DEX APIs)

I did , but i dont think its working :

it logs : Cannot read property ‘high’ of undefined

I have the same problem. i install all and get the chart view. But the view is very smal.

But this is not the Problem. The Problem is that i have no idea where the chart show the candles. is also blank…

have anyone a solution?

dexTrades returns an array and hence to get a single value of a candlestick property, you might need to iterate over the array

1 Like

Try removing the “tradeAmountUsd: {gt: 10}” from your query.

Any information on how to subscribe to bitQuery. I’ve been working on a project similar to this and I can’t get a live chart no matter what I’ve tried. Any information about this would be greatly appreciated.

Hi @cryptoMav you can refer to this tutorial as it is the updated one Integrating Tradingview’s Technical Analysis Charts with Bitquery GraphQL API using VueJS

in the 1m interval the candles looks bar how can we fix this?

You can smoothen the data through a few filters like

priceAsymmetry - use something like priceAsymmetry: {lteq: 20}, this basically removes trades where both sides of USD price difference is more than 20 dollar.

tradeAmountUsd - use something link tradeAmountUsd: {gteq: 1}, this basically remove trades less than 1 dollar.

let me know how it worked.

i change the query like this it seems doesn’t work

This is correct, how you are comparing the charts? Which service you are using to compare our charts?

Hi, Thanks for response i already solved my problem by changing timeInterval to 1min

 timeInterval {
      minute(count: 1, format: "%Y-%m-%dT%H:%M:%SZ")  
 }

but when i changing the chart to 5mins it will not load but it shows no error on console i think the problem is updating the chart, its hard it to me i can’t find any documentation about this

@gaurav you can help me please my issue is getBars function call api infinite loop i cant resolve it

Hi,
Followed the document as mentioned above , but the thing is the charting library accessed from Github (from Trading-view) has errors. Can anyone who have come across with the same errors in charting.js file please help me out to solve .
I will be attaching the screenshot of the errors mentioned

Hello,

i am also getting the same, how to resolve this??

After integrating i am getting this error. Updated with new API key address, how to get resolved???

1 Like

Did you manage to resolve this? I’m having the same issue…

1 Like

same error here

image

The same has been working for us.

I managed to fix the issue by wrapping my axios query and variables with JSON.stringify()

You can also use the fetch library instead.

Good luck!

2 Likes

Hey, could you please share the code snippet for the same? It would be beneficial for other clients who are not so familiar with technical terms.