Skip to main content

Alert Request Format v0.3.x

This guide details the required JSON format for TradingView alerts to work with Xerolite v0.3.x. Each field in the alert message must follow the specified format below.

Alert Request Format

FieldDescriptionMandatoryExample
nameThe alert name, which helps you differentiate between different alerts.Yes"AAPL_LONG_001"
sec_typeThe type of security: STK: Stock CASH: Forex FUT: FuturesYes"STK"
con_idThe unique contract ID from Interactive Brokers (IB).Yes"265598"
exchThe name of the exchange (e.g., SMART).Yes"SMART"
actionSpecifies the action to take: either buy or sell.Yes"BUY"
volumeThe number of shares or contracts you want to trade.Yes"100"

Example Alert Message

{
"name": "AAPL_LONG_001",
"sec_type": "STK",
"con_id": "265598",
"exch": "SMART",
"action": "BUY",
"volume": "100"
}

Need Help?

If you encounter any issues or need assistance, please contact our support team at [email protected]