Skip to main content
POST
/
it
/
calculator
/
pnl
/
securities
/
foreign
Submit 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=IQoJb3JpZ2luX2VjENL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCmFwLXNvdXRoLTEiSDBGAiEA67xcZ9GjxnNvDiQpDLAJw65OA%2BiILzUrLmFDflTzrBUCIQCVtWi6wHQ4d%2FbI%2F6uM8j7qzm7wwHlTkfnv14qsXkxAYiq7Awi7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDA3Mjc1NTMzNTk3OCIMv3n31iRmmOC7Y%2F4xKo8DXPmo%2FrkTuuj4Y2NFDjVFdgkSDZr%2FXc68K3vTyqPYpLVXNL2X1FXY4HNN0pbNMSbE4GoHs308VnSJV6lKUZEHcKcUixkqbyFV0bPKruzHnsnAj0Do7Ma4YO%2BaXuYaRjatnPRYmtq9TAh%2BMWOFonDgHnoLukU%2BU6vkDvP9HWYB2GwmWd2mk4PSXLK%2FdJBsggjd8h6rhWHneqaQ9HAJWphuCnTgDE2ClSWexKgNmnguOS2eysaceUutja8lqJQbPbeIaWRtOrwDhzFZ2vfA0w%2FOqb7DbXT4R%2Bh6Nkc1XdPQuURA3KGsQuUSHgrxKxizjYAenj3j6Uih5coS56d%2B4cRv4jAPxhzavUbguSDjBnpdZfjJKkg4xo1Vvvv3Ulvdk%2FpqVCGfYtmn0541iqtnTvf6Ggx9jljRE9vX%2Fxw0QSetCHsPczPMG6TIHFImxoGGOhARwK3l1we2oHP8VP3OqiaMEU%2ByAMfj5sjEOlMmvJMMcu9v91vyeGGRt9bJzOUSSKkrmUjDcQH%2BwESU%2FCpDHgxUMMfipagGOp0BiQlpq0GAPlxXSvtNUMF%2FPoH8s7IxtpXsatDLZeCaIaFcT1gL%2BTIyBfSzl76u3ls%2Bf28CXatl9Ekgp3W76%2FCu3IX%2FtqDFwCDjS7hjXgldm1tIxLMBB%2BclTZIOQku2w%2FGpO1Zt2LKswT5PM%2BzVOWs1FUgKJfOMFK%2BjKsi8jUUO8z%2FZguBZURzvIwVlJqxz5N2Bd5dr9cfx62PmcIAlJw%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230919T100048Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=ASIARB4EOKMVEAXRE2AL%2F20230919%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Signature=b327f891339b04f3ca8fbb1a33d05d19245188ce8ff30801e543dde74ce8f896"
  },
  "timestamp": "1695117648000"
}

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>