Skip to main content
GET
/
v1
/
finance
/
roi
Return On Investment
curl --request GET \
  --url https://api.example.com/v1/finance/roi \
  --header 'X-API-Key: <api-key>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Query Parameters

gain
number
required

Gain from investment

cost
number
required

Cost of investment

Response

Successful Response