Skip to main content

Scrip Alert

This API allows you to set alerts for specific scrips based on selected conditions. Supported alert conditions include LIFETIMEHIGH, LIFETIMELOW, LASTTRADEDPRICE, and USE_VALUE.

🛣️Path Parameters

ParameterTypeRequiredDescriptionExample/ENUM
tenantidstringYesUnique identifier for the tenantABC123
versionstringYesAPI version (choose between v1 and v2)v1

🔑Header Parameters

HeaderTypeDescriptionExample/ENUM
AuthorizationstringBearer token for API authenticationBearer{{access_token}}
x-api-keystringAPI key required to access the resource{{x-api-key}}

📦Request Body Schema

📄Base Request Body

FieldTypeDescriptionExample
conditionArray of objectAn array of conditions. Each condition is an object.See details below
dataobjectContains additional data as key-value pairsSee details below
expirationintegerThe expiration timestamp.-1
createDatestringThe creation date and time"2025-07-25T13:00:54.907"

🧭Condition Object (Array Of Objects)

FieldTypeDescriptionExample
operand1objectFirst operand object containing market segment, token, and fieldSee details below
operand2objectSecond operand object containing market segment, token, field, and valueSee details below
operatorstringOperator to compare operand values(e.g., >, <, =)>

🛈 Operand1 Object

FieldTypeDescriptionExample/ENUM
marketsegmentintegerMarket segment identifier1
tokenintegerToken number from the exchange scrip master file12345
fieldstringField to compare, e.g., LIFETIMEHIGH, LIFETIMELOW, etc."LastTraderPrice"

🛈 Operand2 Object

FieldTypeDescriptionExample
marketsegmentintegerMarket segment identifier1
tokenintegerToken number from the exchange scrip master file12345
fieldstringField to compare, e.g., LIFETIMEHIGH, LIFETIMELOW, etc."USE_VALUE"
valueintegerValue to compare against the field15000

📘Data Object

FieldTypeDescriptionExample/ENUM
remarksstringAdditional remarks or comments"Alert : AXISBANK price exceeds ₹700"
useridstringUser ID for whom the alert is being setuser_123
tenantidstringTenant IDABC123
symbolstringSymbol code for the scrip"AXISBANK"
alertTypestringType of alert (e.g., LIFETIMEHIGH, LASTTRADEDPRICE)LIFETIMEHIGH
categorystringCategory of alert"EQ"

🟢Success Response - 200 OK

FieldTypeDescriptionExample/ENUM
statusstringStatus of the API call"success"
codestringResponse code for the user request"s-101"
messagestringMessage describing feedback on the request"Alert submitted"
dataobjectContains details about the created alertSee details below

📝Data Object Field

FieldTypeDescriptionExample/ENUM
alertIdstringUnique identifier for the created alert"1103c5f6-1993-4f68-8cd3"
post/alert-nodeengine/{tenantid}/{version}/alerts/setScripAlert