Crypto Profit/Loss Calculator
Calculate the net profit or loss, ROI, and break-even price on a crypto trade from buy price, sell price, quantity, and per-side trading fees (percentage or flat) — plus a full cost breakdown of the trade.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Buy Price per Unit ($)
1e-8 <= x <= 100000000Sell Price per Unit ($)
1e-8 <= x <= 100000000Quantity
1e-8 <= x <= 1000000000Fee Type
percent, flat Buy Fee
0 <= x <= 100000000Sell Fee
0 <= x <= 100000000Currency
USD, EUR, GBP, AUD, JPY, CAD Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.