Business
Products
Pricing
Enterprise
AI
Docs
Try for free
Sign in
Go to...
Search
⌘K
Charts API
API version:
1.0
Introduction
Quickstart guide
Methods
Allows to get historical line chart data for specific token pair and period
GET
Allows to get historical candle chart data for specific token pair and period
GET
Allows to get current TradingView chart data for specific token pair and period
GET
Allows to get historical TradingView chart data for specific token pair and period
GET
Search
⌘K
Charts API
API version:
1.0
Introduction
Quickstart guide
Methods
Allows to get historical line chart data for specific token pair and period
GET
Allows to get historical candle chart data for specific token pair and period
GET
Allows to get current TradingView chart data for specific token pair and period
GET
Allows to get historical TradingView chart data for specific token pair and period
GET
Docs
·
APIs
·
Charts API
·
Methods
·
1.0
·
Allows to get historical TradingView chart data for specific token pair and period
Allows to get historical TradingView chart data for specific token pair and period
Use with AI
GET
https://api.1inch.com/charts/v1.0/chart/tradingview/{token0}/{token1}/{seconds}/{chainId}
Supported on:
Arbitrum
Base
BNB Chain
Ethereum
Gnosis
Optimism
Polygon
Sonic
Unichain
Parameters
token0
*
string
path
Base token address
token1
*
string
path
Quote token address
seconds
*
number
(Enum)
path
Period in seconds. Supported seconds: 300 ,900 ,3600 ,14400 ,86400 ,604800 ,2500000
chainId
*
number
(Enum)
path
Supported chain: 1/56/137/42161/43114/100/10/8453/324/59144/146/130
toTimestamp
*
number
query
To timestamp in seconds
fromTimestamp
*
number
query
From timestamp in seconds
orderBy
*
string
(Enum)
query
Order by timestamp
Request Body
This request doesn’t have any request body.
JavaScript
Copy
Try it
1
Returns
200
TradingViewResponse
object
data
*
array
TradingView candles array
items
TradingViewCandle
object
timestamp
*
number
Time in seconds
open
*
number
Candle open price
high
*
number
Candle high price
low
*
number
Candle low price
avg
*
number
Candle average price
close
*
number
Candle close price
JSON
Copy
1
Allows to get current TradingView chart data for specific token pair and period
Did you find what you need?
Yes
No