API Endpoint
Stock Grant Vesting
Calculate stock grant value and vesting schedule with cliff and vesting period.
Endpoint
Also supports GET with query parameters.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
sharesGranted | number | — | Total shares granted |
currentSharePrice | number | — | Current share price ($) |
vestingYears | number | — | Total vesting period (years) |
yearsElapsed | number | — | Years since grant |
cliffYears | number | 1 | Cliff period (years) |
Request Examples
POST (JSON body)
curl -X POST https://likeoptions.com/api/v1/calculate/vesting \
-H "Content-Type: application/json" \
-d '{"sharesGranted": 100000, "currentSharePrice": 50000, "vestingYears": 6}'GET (query parameters)
curl "https://likeoptions.com/api/v1/calculate/vesting?sharesGranted=100000¤tSharePrice=50000&vestingYears=6"Response
{
"kind": "vesting",
"result": {
"primary": 1234.56,
"secondary": [
{ "label": "Example metric", "value": 100, "format": "money" },
{ "label": "Example percent", "value": 5.5, "format": "percent" }
]
}
}When to Use
- Estimate vesting value
- Plan stock compensation
- Calculate current vesting
Error Handling
- 400 Bad Request — Invalid input parameters or missing required fields
- 404 Not Found — Unknown calculator kind
- 429 Too Many Requests — Rate limit exceeded (120 req/hour per IP)
- 413 Payload Too Large — Request body exceeds 16 KB
Related Endpoints
View request examples in JavaScript, Python, cURL, and more →
Stock positions, grants and margin
- Stock grant vesting calculatorCalculator
- Cost basis calculatorCalculator
- Stock profit calculatorCalculator
- Margin buying power calculatorCalculator
- How vesting schedules workGuide