There is just one problem with above recommendations. while websocket can reduce dependency on API calls, for closing your existing position, the cleanest way is to check as frequently as possible the holdings and positions. So even with websocket, …
so in my code if i have one statement like kiteconnect.getholdings immediately followed by kc.getPositions, its likely to exceed 1 request per Sec. strangely only today have i Seen this error ? and I ensure i ran only one thread
no strategy recommendation how do u go about protecting your stop loss if you have restrictions on rate limit. is there a broadcast feed of Kite that I can tap ? so that i dont consume calls ?
Also what is the long term recommendation for algo execution. is there some way to never get into these issues ? For example, i cannot run a Stop loss or target execution every 5 minutes. that is self defeating. how to do closer to real time without…
i even tested with a 1 sec delay between request. is there a way for you to check if some rogue user got my access token ? by the IP address. right now i have just one IP address running code . Does even call to getpositions or getholdings consume …
Sujith
the rate limits are per second and everyday. How can i exceed them only one fine day when I have never exceeded them for 3 months so far ?
The only suspect is that I poll LTP for 18 scripts in a while loop continuously. based on LTP matchin…
Hi Sujith that is a very tedious program. any sample code. isnt that what your client library is doing under the hood ?
today even when I ran it once from command line it errored out. at 18:45 IST - 31Jul
{
adapter: [Function: httpAdapter],
tr…
In my case this is happening on reads. today it happened 20 times in 3 minutes. i am running Nodejs code from a regular AWS Ec2 instance. today i had to stop the code from executing as it flooded my SMS alerts. no order execution. Just invoking getL…
here is the trace . please help as this is getting very frequent 7 times a day on average.
{
adapter: [Function: httpAdapter],
transformRequest: { '0': [Function: transformRequest] },
transformResponse: { '0': [Function: transformResponse] },…
this is the error message -- {"message":"No response from server with error code: ECONNABORTED","error_type":"NetworkException","data":null}
This error is thrown before call to kiteconnect.getLTP
Should debug be enabled in the options hash paramter…
This is the Nodejs called triggered from my google cloud function .. in the google console logs i see a malformed JSON
const escapeHtml = require('escape-html');
exports.broadcastUpdate = (req, res) => {
console.log('got incoming broadca…
I configure following Google Function URL as my postback to client ID MW5790
I get an access token for same Client ID and issue a NRML order on NIFTY FUT SHORT after market hours. The order gets placed successfully.
but the order status turns into …
I am trying to get a good entry for an Instrument based on last tick data. suppose I subscribe to 50 instruments On connect. then every tick I have to process 50 JSON objects in an array. in this case is it better to use the Python interface to set…
just to be clear, every time a tick happens, an event is triggered and my reigstered callback is invoked. now unitl my current invocation is completed, the next "Tick" event won't even get triggered.. am not abke to understand how I lose Ticks if my…
when u say ticker.on("ticks", onTicks); and then in onTicks,
function onTicks(ticks) {
//logic here
}
Are u suggesting that each invocation of onTicks that happens automatically throug the ticks event is not actually on a queue. if my logic takes…
@sujith i beliebe the nodejs client is single threaded. so if i put in some logic into the ticks callback, it will be queued during each invocation for execution. so there should be no blocking of the main thread ? i am trying to debug this and veri…