curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/price-history" \
-H "X-API-Key: trusset_your_key_here"
{
"success": true,
"data": {
"currentPrice": 185.5,
"history": [
{ "timestamp": 1718380800000, "price": 184.25 },
{ "timestamp": 1718384400000, "price": 185.10 },
{ "timestamp": 1718388000000, "price": 185.50 }
],
"symbol": "tAAPL",
"marketId": "clx_market_001"
}
}
Retrieve oracle price history for a market
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/price-history" \
-H "X-API-Key: trusset_your_key_here"
{
"success": true,
"data": {
"currentPrice": 185.5,
"history": [
{ "timestamp": 1718380800000, "price": 184.25 },
{ "timestamp": 1718384400000, "price": 185.10 },
{ "timestamp": 1718388000000, "price": 185.50 }
],
"symbol": "tAAPL",
"marketId": "clx_market_001"
}
}
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/price-history" \
-H "X-API-Key: trusset_your_key_here"
{
"success": true,
"data": {
"currentPrice": 185.5,
"history": [
{ "timestamp": 1718380800000, "price": 184.25 },
{ "timestamp": 1718384400000, "price": 185.10 },
{ "timestamp": 1718388000000, "price": 185.50 }
],
"symbol": "tAAPL",
"marketId": "clx_market_001"
}
}