Calculators

PnL / ROI

Profit/loss and ROI for a position. Size is the position size in units of the asset, not in dollars.

get/api/v1/calc/pnl

Request

  • Base URL: https://marginpad.io
  • URL: https://marginpad.io/api/v1/calc/pnl
  • Auth: none declared

Query parameters

entrystring required

Entry price.

exitstring required

Exit price.

sizestring required

Position size, in units of the asset.

leveragestring

Leverage multiple.

sidestring

long or short.

Response

ok

Changes

No recorded changes to this operation across all 1 revision of this API.