How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Upstox Trade Profit And Loss API

The Trade Profit And Loss API from Upstox — 3 operation(s) for trade profit and loss.

Upstox Trade Profit And Loss API is one of 23 APIs that Upstox publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Trade Profit And Loss. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, and authentication docs.

This API exposes 3 operations across 3 paths, and defines 13 schemas. It is described by OpenAPI 3.2.0, at version v0.

Requests are made against a single base URL, https://api-v2.upstox.com.

3 operations 3 paths 13 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v0
Base URL
https://api.upstox.com
Authentication
OAuth 2.0
Resource Areas
1

Authentication & Security 1

Upstox Trade Profit And Loss API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAUTH2) using the authorizationCode flow, exposing 2 scopes.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 GET. Each is listed below with its method, path, parameters, and response codes.

Trade Profit And Loss 3
GET
/v2/trade/profit-loss/metadata
Get profit and loss meta data on trades
getTradeWiseProfitAndLossMetaData 4 params → 405400500403423422429200
GET
/v2/trade/profit-loss/data
Get Trade-wise Profit and Loss Report Data
getTradeWiseProfitAndLossData 6 params → 405400500403423422429200
GET
/v2/trade/profit-loss/charges
Get profit and loss on trades
getProfitAndLossCharges 4 params → 405400500403423422429200

Schemas 13

The contract defines 13 schemas that model the data the API accepts and returns. The most detailed are TradeWiseProfitAndLossData (10 properties), Problem (7 properties), ProfitAndLossOtherChargesTaxes (6 properties), ProfitAndLossChargesData (4 properties). Each schema is shown below with its type and property counts.

TradeWiseProfitAndLossData
object
10 properties
ProfitAndLossChargesData
object
4 properties
ApiGatewayErrorResponse
object
2 properties
GetTradeWiseProfitAndLossMetaDataResponse
object
2 properties
TradeWiseMetaData
object
2 properties
ProfitAndLossChargesTaxes
object
3 properties
Problem
object
7 properties
GetProfitAndLossChargesResponse
object
2 properties
ProfitAndLossMetaDataWrapper
object
1 property
GetTradeWiseProfitAndLossDataResponse
object
3 properties
ProfitAndLossChargesWrapperData
object
1 property
ProfitAndLossOtherChargesTaxes
object
6 properties
ProfitAndLossMetaData
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

upstox-trade-profit-and-loss-api-openapi.yml Raw ↑

Other APIs Upstox publishes across the network.

Upstox MCP Server
Upstox Charge API
Upstox Events Controller V 2 API
Upstox Expired Instrument API
Upstox Fundamentals API
Upstox History API
Upstox History V3 API
Upstox Instruments API
Upstox IPO API
Upstox Login API
Upstox Market Holidays and Timings API
Upstox Market Quote API
Where this information came from

This is an independent, third-party profile of Upstox Trade Profit And Loss API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.