samco-sdk / Python-SDK

Official Python SDK for accessing Stocknote API
MIT License
16 stars 11 forks source link

samcoAPI.start_streaming - where to read the data #28

Open poona9mtomar9 opened 6 months ago

poona9mtomar9 commented 6 months ago

I am getting response from the method. But I want to read the ltp and continuously update it in my python code in a label. I am not sure that where to read the data like in other APIs it on_data or on_message method. In which method I can read this data and process it further?

Symbol Details:{"response":{"data":{"aPr":"35.35","aSz":"2150","avgPr":"40.75","bPr":"35.15","bSz":"975","c":"53.45","ch":"-18.10","chPer":"-33.86","delta":"-0.14","gamma":"0.0004","h":"54.00","iv":"15.66","l":"33.05","ltp":"35.35","ltq":"75","ltt":"23 May 2024, 12:33:04 PM","lttUTC":"23 May 2024, 07:03:04 AM","o":"50.85","oI":"2119750","oIChg":"-9225","sym":"56910_NFO","tBQ":"122350","tSQ":"167875","theta":"-6.85","ttv":"223591175.00","vega":"7.02","vol":"5486900","yH":"94.30","yL":"33.05"},"streaming_type":"quote"}}

Symbol Details:{"response":{"data":{"aPr":"524.20","aSz":"75","avgPr":"447.24","bPr":"522.80","bSz":"75","c":"371.50","ch":"154.40","chPer":"41.56","delta":"0.83","gamma":"0.0005","h":"543.85","iv":"15.90","l":"364.50","ltp":"525.90","ltq":"75","ltt":"23 May 2024, 12:33:04 PM","lttUTC":"23 May 2024, 07:03:04 AM","o":"382.45","oI":"116325","oIChg":"2025","sym":"56911_NFO","tBQ":"39525","tSQ":"14650","theta":"-13.91","ttv":"36908480.19","vega":"7.92","vol":"82525","yH":"543.85","yL":"309.05"},"streaming_type":"quote"}}