but I’m getting the symbol id in the response instead of the scrip name. Is there a way to get the scrip name? Or a better way to get the symbols than the the above method?)
I dont think there is a native way, I maintain my own LIST. (actually 2, one is default fixed and the other for ad hoc)
So when I start, there is a default LIST that is passed to subscribe() which also take List as argument for symbols. Subsequently, use ad hoc sub list, when I unsubscribe, unsub() then remove from that list. That way i can maintain state without relying here.
Because I have spun off few threads, i use another worker thread. The thread created by Fyers module is kept light for processing on_message() only