Skip to main content

POSITIONS API

This API fetches the complete list of positions for a dealer or a specific client. It supports retrieving all, daily, or expiry-based positions.

📌 Path Parameters

ParameterTypeRequiredDescriptionExample / Enum
typestringYesType of positions to fetch"all" / "daily" / "expiry"

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample
client_idstringNoClient ID to fetch positions for an end userclient_id=VISHAL1
only_prointegerNoFlag to fetch only dealer (pro) positions1
intropStatusintegerNoInteroperability flag (0 - OFF, 1 - ON)1

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the media typeapplication/json
AuthorizationstringDealer authentication tokenBearer {{access_token}}
x-api-keystringAPI key used to authorize the request{{x-api-key}}

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code to user request"s-106"
messagestringSuccess message"Positions retrieved successfully"
dataobject[]Array of position objectsRefer below

📦 Position Object Fields

FieldTypeDescriptionExample
exchangestringExchange segment"NSE"
preferred_exchangestringPreferred exchange segment"NSE"
scrip_tokenintegerToken number of the instrument12345
preferred_scrip_tokenintegerPreferred exchange token12345
product_typestringProduct type"CNC"
symbolstringTrading symbol"RELIANCE"
seriesstringSeries of the instrument"EQ"
instrumentnumberInstrument type identifier1
expiry_datestringExpiry date (for derivatives)"2025-01-30"
strike_pricestringStrike price (for options)"2500"
option_typestringOption type"CE" / "PE"
market_lotintegerLot size1
buy_quantityintegerTotal buy quantity100
avg_buy_pricestringAverage buy price"2500.50"
buy_valuestringTotal buy value"250050"
sell_quantityintegerTotal sell quantity50
avg_sell_pricestringAverage sell price"2550.00"
sell_valuestringTotal sell value"127500"
net_quantityintegerNet quantity50
net_pricestringNet price"2525.25"
net_valuestringTotal net value"126262.5"
cf_buy_valuestringCarry-forward buy value"100000"
cf_sell_valuestringCarry-forward sell value"50000"
cf_net_pricestringCarry-forward net price"2450"
unsetteled_quantityintegerUnsettled quantity10
multiplierstringMultiplier value"1"
daily_or_expirystringIndicates daily or expiry position"daily"

📌 Notes

  • The type path parameter determines the scope of positions returned:
    • all → All positions
    • daily → Intraday positions
    • expiry → Expiry-based positions
  • Use client_id to fetch positions specific to an end user.
  • Set only_pro=1 to fetch only dealer (pro) level positions.
  • The Authorization header must include a valid access_token.