Codex and TradingView: Powering the largest charting platform

Illustration of TradingView logo

TradingView and their 50 million users rely on Codex as the sole source of truth for all on-chain data.

15 Sec
Quicker response time
2 Million
Additional tokens indexed
200+
Hours in developer time saved

TradingView is the largest social network and charting platform for traders boasting 50+ million users across the globe.

Traders leverage the TradingView platform to chart prices of various assets, set up advanced indicators to inform their strategies and communicate their ideas with other users. 

Whether the users are advanced or complete novices: they all come to expect a certain level of quality and granularity unique to TradingView. This is what sets the platform apart from its competition.

“Codex has been instrumental in our efforts to support high quality DEX data via the TradingView interface. We were using 3-4 data providers previously, including the Graph, and have now consolidated everything to Codex.”

Alex T,
Head of Product, Crypto

The challenge: One API provider for all on-chain data

TradingView is the one stop shop for high quality data feeds and technical tooling across markets. Top companies and retail users alike rely on TradingView for their plethora of advanced trading tools and capabilities. 

Imagine it and TradingView has it. Tick by tick volume data, technical indicators, drawing tools, pitch forks, elliot waves patterns, fibonacci retracements - the list goes on and on.

Leading crypto exchanges like Binance, Bitfinex, OKX, and GMX also leverage TradingView to power their own charting interfaces. The powerful toolkit is of course a driving factor but what is most important to integration is Codex’s API.

When TradingView needed a strategic partner to support their integration with a variety of different chains and DEXes, including Uniswap v2 and v3, they began a relationship with Codex to be their single source of truth for all on-chain data.

A mockup of the TradingView UI
Why TradingView chose Codex over The Graph
"The Graph is a good general provider for historical blockchain data but it is not designed for financial purposes like charts or trading. There was also no quality assurance regarding anomalies in data: bot attacks, price wicks, etc”
– Alex T., Head of Product, Crypto

The Graph is a great way to bootstrap an on-chain indexer but lacks as an enterprise solution in a few key areas:

  • Latency and downtime with the Graph are high
  • There was no quality assurance or enrichment of the data feeds
  • Not designed for financial purposes like charts and trading - hard to get in a traditional format like candlestick.

TradingView felt these issues across the DEX space and particularly with Uniswap V3 it became immediately apparent that the Graph solution would not be sufficient.

Requests would frequently fail or time out. There would be huge price wicks from bots on certain alt coins which skewed the data. Latency was 10x normal DEX integrations and far behind what is offered via equities.

  • The Codex Team provided a 99.9% uptime on all WebSocket connections – significantly higher than other providers. Downtime is unacceptable to TradingView given their brand reputation and sheer number of users.
  • Codex also developed custom endpoints to satisfy TradingView’s use cases and to support their product roadmap. They use the updated [ getdetailedPairStats() ] endpoint to showcase various stats like liquidity, volume and USD pricing all within one request.
  • Codex was able to solve these issues through extensive data QA and enrichment providing TradingView developers with a robust stream of high-quality data.