Skip to main content
POST
Submit P&L Job

Headers

x-accept-type
string
required

application/json or application/xlsx

x-api-key
string
required

Your API key used to authenticate and authorize the request.

x-api-version
string
required

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

Authorization
string
required

Token for user-level authorization.

Query Parameters

input_file_key
string
input
enum<string>
default:tradewise_settlement
required

Type of input file. Allowed values: tradewise_settlement or tradebook.

Available options:
tradewise_settlement,
tradebook
from
number
required

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

Required range: x >= 0
to
number
required

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

Required range: x >= 0
output
enum<string>
default:tradewise_pnl
required

Type of output file. Allowed values: tradewise_pnl or scripwise_pnl

Available options:
tradewise_pnl,
scripwise_pnl
output_file_key
string
bucket
string

Response

Success

transaction_id
string
code
integer
data
object
timestamp
string<utc-millisec>