paytmmoney / pyPMClient

Paytm Money Client SDK in python
MIT License
26 stars 18 forks source link

Live Market Data Not Working #24

Closed knandini24x7 closed 1 year ago

knandini24x7 commented 1 year ago

I am trying to fetch live market data for equity but preference is not working... I am trying to do this way... please correct me if I am doing wrong....

pm.get_live_market_data('LTP', ['BSE', '523144', 'EQUITY'])

it returns the response....

{'data': [{'found': False, 'message': 'You have sent preference packet in an invalid format: BSE'}, {'found': False, 'message': 'You have sent preference packet in an invalid format: 523144'}, {'found': False, 'message': 'You have sent preference packet in an invalid format: EQUITY'}]}

sachinyadav10 commented 1 year ago

Hi @knandini24x7

The pattern for preference is <exchange>:<securityId>:<scripType>. For eg : In your case it will beBSE:523144:EQUITY.