Skip to main content

Create Watchlist

This API allows a user to create a new Watchlist. A watchlist can contain a set of scrips (instruments), and users can specify privacy and default settings. The response returns the created watchlist details.

🔑Header Parameters

HeaderTypeRequiredDescriptionExample/ENUM
AuthorizationstringYesBearer token for user authenticationBearer access_token
x-api-keystringYesAPI key for access controlx-api-key

🧾Request Body Schema

FieldTypeRequiredDescriptionExample/ENUM
sWatchListNamestringYesName of the Watchlist"Energy Sector"
bIsPrivatebooleanNoFlag to mark Watchlist as privatetrue (private), false (public)
bIsDefaultbooleanNoFlag to make this the default Watchlisttrue / false
sSettingsstringNoReserved JSON string for settings""
scripsarrayYesList of scrips to include in the WatchlistSee Scrip Object below

📑Scrip Object Fields

FieldTypeRequiredDescriptionExample/ENUM
nMarketSegmentIdnumberYesExchange segment ID1
nTokennumberYesUnique token number for the scrip/instrument123456
nSequenceNonumberYesSequence of the scrip in the Watchlist1, 2, ...
sSettingsstringNoReserved for future settings (JSON string)""

🟢Success Response - 200 Ok

FieldTypeDescriptionExample/ENUM
statusstringStatus of the API call"success"
codestringResponse code"s-101"
messagestringDescriptive success message"Watchlist Created successfully"
dataarray of objectList of Watchlist objectsSee details below

🧭Watchlist Object Schema

FieldTypeDescriptionExample/ENUM
idstringUnique Watchlist ID"32b95c61-370-b215-bb8857f9c949"
sWatchListNamestringName of the Watchlist"Watchlist 1"
bIsPrivatebooleanIf true, watchlist is privatetrue
bIsDefaultbooleanIf true, this is the default watchlistfalse
sUserIdstringUser ID of the watchlist creator"user123"
sTenantIdstringTenant/Broker ID"1256878"
sSettingsstringReserved for future (must be valid JSON string){"subCount":13}
scripsarrayList of scrips within the watchlistSee Scrip Object above
_versionnumberVersion number of the watchlist1
_deletedbooleanFlag to indicate if deletedfalse
_lastChangedAtnumberEpoch timestamp of last change1718008123
createdAtstringISO date-time of watchlist creation"2025-06-01T12:00:00Z"
updatedAtstringISO date-time of last update"2025-06-10T09:45:00Z"
post/nontransactional/v1/watchListProfile