curl --request POST \
--url https://api.sandbox.co.in/it/calculator/pnl/securities/foreign \
--header 'Authorization: <authorization>' \
--header 'x-accept-type: <x-accept-type>' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-version: <x-api-version>'{
"transaction_id": "df7e958a-3837-400d-a169-4337351915da",
"code": 200,
"data": {
"job_id": "df7e958a-3837-400d-a169-4337351915da",
"url": "https://s3.ap-south-1.amazonaws.com/in-co-sandbox-it-calculator-securities-tax-pnl-dev/df7e958a-3837-400d-a169-4337351915da.input?X-Amz-Security-Token=EXAMPLE_SECURITY_TOKEN&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230919T100048Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=EXAMPLEACCESSKEY%2F20230919%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Signature=EXAMPLE_SIGNATURE"
},
"timestamp": "1695117648000"
}Check the processing status of a foreign securities P&L job.
curl --request POST \
--url https://api.sandbox.co.in/it/calculator/pnl/securities/foreign \
--header 'Authorization: <authorization>' \
--header 'x-accept-type: <x-accept-type>' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-version: <x-api-version>'{
"transaction_id": "df7e958a-3837-400d-a169-4337351915da",
"code": 200,
"data": {
"job_id": "df7e958a-3837-400d-a169-4337351915da",
"url": "https://s3.ap-south-1.amazonaws.com/in-co-sandbox-it-calculator-securities-tax-pnl-dev/df7e958a-3837-400d-a169-4337351915da.input?X-Amz-Security-Token=EXAMPLE_SECURITY_TOKEN&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230919T100048Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=EXAMPLEACCESSKEY%2F20230919%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Signature=EXAMPLE_SIGNATURE"
},
"timestamp": "1695117648000"
}application/json or application/xlsx
Your API key used to authenticate and authorize the request.
Indicates the version of the API you want to use. Ensures backward-compatible behavior.
Token for user-level authorization.
Type of input file. Allowed values: tradewise_settlement or tradebook.
tradewise_settlement, tradebook Start timestamp (inclusive) for the P&L calculation period, expressed as Unix epoch time in milliseconds.
x >= 0End timestamp (inclusive) for the P&L calculation period, expressed as Unix epoch time in milliseconds.
x >= 0Type of output file. Allowed values: tradewise_pnl or scripwise_pnl
tradewise_pnl, scripwise_pnl Was this page helpful?