It looks like you're new here. If you want to get involved, click one of these buttons!
from pymongo import MongoClient
client = MongoClient()
db=client.market_data #market_data is my db name
kws = KiteTicker("4515kn****", "pOYgD0hvSfofC********")
db.tick.insertMany(kws.connect()); #tick is my mongo collection name
This does not save my websocket data in my mongo collection. Please note that I have all the websocket callbacks(on_ticks, on_connect, on_close...) defined in my code and I am seeing tick data in my Python console in real time.
You start receiving ticks in on_tick callback.
You can go through the API documentation and the client library documentation here.
Just that I am not able to save this tick data in my mongodb collection. It will be great if I can get some help there. Thanks.
I am afraid this is outside the scope of the forum. We don't provide coding support. Kite Connect is purely an execution platform.
Just updating that I could make db save work successfully. Was not using proper tick data variable to store data.
We can close this thread.