Skip to main content
POST
/
it
/
calculator
/
pnl
/
crypto
Submit P&L Job
curl --request POST \
  --url https://api.sandbox.co.in/it/calculator/pnl/crypto \
  --header 'Authorization: <authorization>' \
  --header 'x-accept-type: <x-accept-type>' \
  --header 'x-api-key: <x-api-key>'

Headers

x-accept-type
string
required
x-api-key
string
required

Your API key used to authenticate and authorize the request.

x-api-version
string

Indicates the version of the API you want to use. Ensures backward-compatible behavior.

Authorization
string
required

Token for user-level authorization.

Query Parameters

from
integer
required

Start timestamp (inclusive) for the P&L calculation period, expressed as Unix epoch time in milliseconds.

to
number
required

End timestamp (inclusive) for the P&L calculation period, expressed as Unix epoch time in milliseconds.

input
string
default:tradebook
required

Type of input file

output
enum<string>
required

Type of output file. Allowed values: tradewise_pnl or scripwise_pnl.

Available options:
tradewise_pnl