Skip to main content

DefiLlama Stablecoin Price

/api/v1/defillama/stablecoin/price

Description

Fetch historical stablecoin prices for a given stablecoin parameter.

Method

GET

Source

Database

Parameters

ParameterTypeRequiredDescription
stablecoinstringyesSpecifies the stablecoin name.

Response Status Codes

StatusDescription
200 OKSuccess. Returns the stablecoin price data.
400 Bad RequestMissing required parameter.

Example: Get historical price of USDT

Request

GET /api/v1/defillama/stablecoin/price?stablecoin=tether

Response

[
[
"Date",
"Price"
],
[
"12/30/2020 00:00:00",
"1.001224"
],
[
"12/31/2020 00:00:00",
"1.001564"
],
[
"01/01/2021 00:00:00",
"1.000052"
],
[
"01/02/2021 00:00:00",
"1.001993"
],
[
"01/03/2021 00:00:00",
"1.003121"
],
...
]