Skip to content

Portfolio Analysis API

Returns potential revenue for securities with utilization and lending rates.

Endpoint

http
POST /public/portfolio-analysis

Full URL: https://api.sharegain.com/public/portfolio-analysis

Headers

HeaderValue
X-SG-Authorization[token]
X-SG-ApiVersion1
Content-Typeapplication/json

Request Body

json
{
  "identifiers": [
    {
      "requestKey": "1",
      "isin": "US5949181045",
      "ticker": "MSFT",
      "exchangeCode": "US"
    }
  ]
}

Instrument Identifier Parameters

ParameterTypeDescription
requestKeystringMandatory. Unique identifier for the request
isinstringISIN format, e.g., US5949181045
compositeBbgIdstringCompositeBbgId format
tickerstringTicker format, e.g., TSLA
exchangeCodestringExchange code, e.g., UW
micstringMIC code, e.g., XNAS
countryCodestringCountry code, e.g., US

Response

json
{
  "successResults": [
    {
      "requestKey": "1",
      "isin": "US5949181045",
      "potentialReturn": 2.6,
      "lendingRateBps": 420,
      "utilization": 0.86,
      "date": "2023-09-28T12:03:12.579Z"
    }
  ],
  "failureResults": [],
  "totalCount": 1
}

Rate Limits

Limit TypeValue
Requests per day4,000
Requests per minute200
Max items per day200,000
Max items per request200

Sharegain API Documentation