I am in the process of developing an app using GoLang by pulling data from Kite API. I wonder if there is a way I can get all the instruments/scrip details like last price etc. in array kind of data structure? Note - I am using websocket connection method. If that matters.
any alternative to csv dump? because - 1. it will give too much of data which is not required by me and 2. i want action-ready data like JSON and not csv that I need to convert into JSON like structure and then use. 3. I am ok to get 500 or 1000 instruments' data. Don't need all.
Currently, each individual tick is getting triggered in onTick function, as you can refer to the client repo. To receive an array of ticks, maybe you can remove the iteration and pass on the complete ticks eg: t.triggerTick(ticks), in your local client repository.
3. I am ok to get 500 or 1000 instruments' data. Don't need all.
onTick
function, as you can refer to the client repo.To receive an array of ticks, maybe you can remove the iteration and pass on the complete ticks eg:
t.triggerTick(ticks)
, in your local client repository.