Getting Started
Follow these steps to start using the Sharegain API.
Step 1: Agreement
Sharegain will provide a link to a form where you'll need to:
- Agree to the API terms and conditions
- Read the disclaimer
Step 2: IP Whitelisting
Once you've agreed to the terms and conditions, you will be asked to provide IPs to whitelist.
Step 3: Receive Token
Sharegain will:
- Whitelist your IPs
- Provide you a fixed token for authentication
Quick Example
bash
curl -X POST https://api.sharegain.com/public/portfolio-analysis \
-H "X-SG-Authorization: your-token-here" \
-H "X-SG-ApiVersion: 1" \
-H "Content-Type: application/json" \
-d '{
"identifiers": [
{
"requestKey": "1",
"isin": "US5949181045",
"ticker": "MSFT",
"exchangeCode": "US"
}
]
}'