Websocket ticks - how to find which symbol it belongs to

msangani
Let's say I have subscribed to 2 tokens only for LTP: NIFTY 16300CE & NIFTY 16300PE

When I receive the ticks, I notice sometimes ticks[0] has NIFTY 16300CE & sometimes has NIFTY 16300PE.

How to do handle this since I want to do some operations on this.
  • rakeshr
    You can add the condition to check for the required contract, after receiving the tick.
  • msangani
    Thanks Rakesh .. I was able to verify by comparing token[0] with ticks[0]['instrument_token']
Sign In or Register to comment.