← All tool references

Finance · not_available

Options Profit Calculator

Options Profit with subject-specific controls, reviewable intermediate detail, and private browser processing.

Open public tool

Overview

Category
Finance
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/options-profit-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/options-profit-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

entry_price · number · required
Enter entry price.
exit_price · number · required
Enter exit price.
quantity · number · required
Enter quantity.
fees · number · required
Enter total fees.
{
    "type": "object",
    "properties": {
        "entry_price": {
            "type": "number",
            "description": "Enter entry price."
        },
        "exit_price": {
            "type": "number",
            "description": "Enter exit price."
        },
        "quantity": {
            "type": "number",
            "description": "Enter quantity."
        },
        "fees": {
            "type": "number",
            "description": "Enter total fees."
        }
    },
    "required": [
        "entry_price",
        "exit_price",
        "quantity",
        "fees"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

gross_profit · number
Gross profit produced by the tool.
net_profit · number
Net profit produced by the tool.
return_percent · number
Return produced by the tool.
break_even_price · number
Break-even price produced by the tool.
{
    "type": "object",
    "properties": {
        "gross_profit": {
            "type": "number",
            "description": "Gross profit produced by the tool."
        },
        "net_profit": {
            "type": "number",
            "description": "Net profit produced by the tool."
        },
        "return_percent": {
            "type": "number",
            "description": "Return produced by the tool."
        },
        "break_even_price": {
            "type": "number",
            "description": "Break-even price produced by the tool."
        }
    },
    "additionalProperties": false
}

Options Profit Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/options-profit-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "entry_price": 42,
    "exit_price": 58,
    "quantity": 125,
    "fees": 24
}'
{
    "ok": true,
    "data": {
        "slug": "options-profit-calculator",
        "result": {
            "values": {
                "gross_profit": 2000,
                "net_profit": 1976,
                "return_percent": 37.63799999999999812416717759333550930023193359375,
                "break_even_price": 42.19200000000000017053025658242404460906982421875
            },
            "display": {
                "display": "2000"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.