How to get existing subscribed symbols?

I’m trying to subscribe to new symbols on the go. Although I do not wish to subscribe to redundant symbols. Hence, this question.

(I already found a way to get the existing subscribed symbols-

existingSymbols = fyers.scrips_per_channel[fyers.active_channel]

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?)

Hey @110500275472666413621

It is better to use the Python node SDK instead of writing this function .

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