Portfolio

Get Positions

Fetches the current positions for the user for the current day.

get/v2/portfolio/short-term-positions

Request

  • Base URL: https://api-v2.upstox.com
  • URL: https://api-v2.upstox.com/v2/portfolio/short-term-positions
  • Auth: OAuth 2 (authorization code, authorization URL https://api-v2.upstox.com/v2/login/authorization/dialog, token URL https://api-v2.upstox.com/v2/login/authorization/token)

Response

Successful

status'success' | 'error' | 'partial_success'

Example response

{
  "data": [
    {
      "exchange": "NSE",
      "multiplier": 1,
      "value": 120,
      "pnl": 121.01,
      "product": "D",
      "average_price": 120.01,
      "buy_value": 120,
      "overnight_quantity": 1,
      "day_buy_value": 120.01,
      "day_buy_price": 120.01,
      "overnight_buy_amount": 12,
      "overnight_buy_quantity": 12,
      "day_buy_quantity": 1,
      "overnight_sell_amount": 120.01,
      "quantity": 2,
      "last_price": 120.01,
      "unrealised": 121.01,
      "tradingsymbol": "GMR",
      "trading_symbol": "GMR",
      "close_price": 102,
      "buy_price": 102,
      "sell_price": 102
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.