Cargo volume
Calculate cubic metres and cubic feet across carton groups.
POST /cbmDEVELOPER PLATFORM V1.4
Practical calculation infrastructure for shipping, software and AI workflows. One server-side engine, two integration interfaces.
Public access · No API key · Deterministic JSON results
Check the production API on demand.
{
"items": [{
"length": 60, "width": 40,
"height": 40, "unit": "cm",
"quantity": 120
}]
}01 / QUICK START
Send JSON over HTTPS. Successful responses contain ok, version and data. No SDK is required.
Calculate cubic metres and cubic feet across carton groups.
POST /cbmConvert 24 length, mass, volume and area units.
POST /convertEstimate position size, fees and trading risk.
POST /risk-reward02 / LIVE PLAYGROUND
Edit the sample JSON and run it against the existing API. The response below is from the server, not a simulation. Use sample or non-sensitive values only.
JSON object · 16 KiB maximum
Run a request to see the live response.
No request sent.
03 / API REFERENCE
| Method | Path (under /api/v1) | Purpose |
|---|---|---|
| POST | /cbm | Carton volume |
| POST | /convert | Measurement conversion |
| POST | /risk-reward | Trading estimates |
| GET | /health | Current API availability |
| GET | /openapi.json | Machine-readable contract |
items is required (1–100 objects). Each item requires numeric length, width, height (0.000001–1,000,000; converted size no greater than 1,000 m) and unit (mm, cm, m, in, ft). Optional integer quantity defaults to 1, maximum 1,000,000.
Returns per-item volume, total quantity, total_cbm and total_cubic_feet. Geometric volume only, not carrier chargeable weight or container fit.
Required: value (0 to 10¹²), from and to. Unit symbols are case-sensitive and must belong to the same dimension.
Returns result and the measurement dimension.
Required: direction (long or short), entry, stop, target and account_balance. For long, stop < entry < target; reverse for short. All monetary values must use one currency.
Optional: risk_percent (default 1), fixed_risk (positive overrides percentage), fee_percent (per transaction, default 0), leverage (default 1), unit_step (default 1). See OpenAPI for complete bounds.
Returns gross risk sizing, fees, net risk/reward and warnings. Estimated losses can exceed the budget after fees; not a trade execution service. Estimates do not account for slippage, gaps, funding or taxes.
For complete request and response schemas, use the OpenAPI specification. Unknown fields and numeric strings are rejected.
04 / CODE EXAMPLES
Examples follow the current playground request. They use the public production URL.
curl -X POST 'https://stooper.co/api/v1/cbm' \
-H 'Content-Type: application/json' \
--data-binary '{"items":[{"length":60,"width":40,"height":40,"unit":"cm","quantity":120}]}'Valid request JSON is required to generate examples.
For scripts with no JavaScript, see the complete static examples for all five languages.
05 / AUTOMATION
https://stooper.co/api/v1/cbm, Authentication None.{{ $json.data.total_cbm }} in a subsequent Edit Fields node. For the sample this is 11.52.Official n8n HTTP Request documentation ↗. n8n hosting and workflow execution are separate from Stooper.
06 / MODEL CONTEXT PROTOCOL
Use a client supporting the 2025-era Streamable HTTP protocol with JSON responses, no session state, and no authentication. Stooper supports revisions 2025-11-25 and 2025-06-18; the 2026 protocol is not implemented.
https://stooper.co/mcp/index.phpstooper_calculate_cbmCargo volumestooper_convert_unitsMeasurementstooper_calculate_risk_rewardTrading estimatestools/list.tools/call. Read the returned structuredContent or JSON text; check isError.Copy-ready PowerShell MCP handshake and tool call · Server card · MCP documentation
Client support varies. No standalone SSE stream, OAuth, or confirmed ChatGPT/Claude integration is promised. The four existing public resources remain available via resources/list and resources/read.
07 / OPERATING LIMITS
REST calculations, health and admitted MCP POST requests share fixed UTC minute windows. The limiter is instance-local. Respect Retry-After on 429. No browser CORS support is promised; this playground is same-origin. When operational analytics is enabled, Stooper records aggregate daily service counts, outcome categories and server processing times for up to 90 days; it does not store request bodies, IP addresses or client identifiers in analytics. Request bodies are not stored by the application, but infrastructure logs and site privacy policies still apply. Do not send personal information, credentials or private account details.
| HTTP status | Action |
|---|---|
| 400 | Correct malformed JSON or invalid object. |
| 404 / 405 | Check path and HTTP method. |
| 413 / 415 | Reduce body size or use application/json. |
| 422 | Correct fields, values or incompatible units. |
| 429 | Wait for Retry-After; no tight retry loops. |
| 500 / 503 | Service error or unavailable limiter; retry later. |
Public access is currently available without keys. Availability and limits may change; no SLA is promised.