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 line chart data for specific token pair and period
Allows to get historical line chart data for specific token pair and period
Use with AI
GET
https://api.1inch.com/charts/v1.0/chart/line/{token0}/{token1}/{period}/{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
period
*
string
(Enum)
path
Period. Supported periods: 24H ,1W ,1M ,1Y ,AllTime
chainId
*
number
(Enum)
path
Supported chain: 1/56/137/42161/43114/100/10/8453/324/59144/146/130
Request Body
This request doesn’t have any request body.
JavaScript
Copy
Try it
1
Returns
200
LinesResponse
object
data
*
array
Candles array
items
Line
object
time
*
number
Time in seconds
value
*
number
Price
JSON
Copy
1
Quickstart guide
Allows to get historical candle chart data for specific token pair and period
Did you find what you need?
Yes
No