Skip to main content
GET
/
lending-stocks
/
api
/
positions
/
{marketId}
/
price-history
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"
  }
}
Returns the current oracle price and recorded price history for charting.

Path Parameters

marketId
string
required
Market ID.
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"
  }
}