Skip to main content

Getting Started

In this tutorial we will see how to use TradingView's Advanced Charts API and plot DEX trading data with Bitquery APIs. You can find the complete code of the tutorial here

The final chart will look like this

  • To do that you need to get access to TradingView's private Advanced Charts API library by filling out the form.

  • Next create a new React project.

  • Once done, follow the first 2 steps on their tutorial to add charting_library and datafeeds library to your new React project folder. For this tutorial I have added the folders in the src folder.

  • Now we will write different parts of the logic

      - The main App
    - The component to call Bitquery API
    - The widget code
    - The custom datafeed object
    - Building candlestick bars