We request you to also regenerate your access token before placing your orders.
code is placing sl orders automatically when a buy order is executed, and algo gets that info via order websocket, so that means my access token is correct.
I also verify my access token on startup before starting algo.
if you see the constants values in dhan python library, they are the same
class dhanhq(Order, ForeverOrder, Portfolio, Funds, Statement, TraderControl, Security,
MarketFeed, HistoricalData, OptionChain):
"""DhanHQ Class having Core APIs"""
"""Constants for Exchange Segment"""
NSE = 'NSE_EQ'
BSE = 'BSE_EQ'
CUR = 'NSE_CURRENCY'
MCX = 'MCX_COMM'
FNO = 'NSE_FNO'
NSE_FNO = 'NSE_FNO'
INTRA = "INTRADAY"
SL = "STOP_LOSS"
SELL = 'SELL'