Skip to main content

Convert Positions

Convert a position from intraday to delivery

curl --location --request PUT 'https://api.upstox.com/v2/portfolio/convert-position' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}' \
--data '{
"instrument_token": "NSE_EQ|INE528G01035",
"new_product": "D",
"old_product": "I",
"transaction_type": "BUY",
"quantity": 1
}'

Convert a position from delivery to intraday

curl --location --request PUT 'https://api.upstox.com/v2/portfolio/convert-position' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}' \
--data '{
"instrument_token": "NSE_EQ|INE528G01035",
"new_product": "I",
"old_product": "D",
"transaction_type": "BUY",
"quantity": 1
}'