DefiLlama Stablecoin Price
/api/v1/defillama/stablecoin/price
Description
Fetch historical stablecoin prices for a given stablecoin parameter.
Method
GET
Source
Database
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
stablecoin | string | yes | Specifies the stablecoin name. |
Response Status Codes
Status | Description |
---|---|
200 OK | Success. Returns the stablecoin price data. |
400 Bad Request | Missing 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"
],
...
]