Skip to main content
GET
/
lending-stocks
/
api
/
positions
/
{marketId}
/
provider-balance
/
{provider}
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/provider-balance/0x123...456" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "shares": "50000.000000000000000000",
    "currentValue": "51250.000000",
    "deposited": "50000.000000",
    "source": "onchain"
  }
}
Returns on-chain LP data when available, falling back to the database record.

Path Parameters

marketId
string
required
Market ID.
provider
string
required
Provider wallet address.
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/provider-balance/0x123...456" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "shares": "50000.000000000000000000",
    "currentValue": "51250.000000",
    "deposited": "50000.000000",
    "source": "onchain"
  }
}