Refer this
If you give more clarity on why you need multiple threads we might be able to suggest other options, also incase if you are tech savy you can put up those(each) threads through different ISP/internet using dispatch proxy.
mostly computati…
review our API documentation, if you are mediocre in REST API you should be able to pick up and its has almost everything you need.
Try API trading with one or two stocks,
Try Dict instead of Df,
Try to keep your strategy to prevent losses,
By the …
9:15 is usually a blood bath ,
Slippage comes between your hardware,ISP and your coding too... but
if you still want to place orders try GET Quote Read market and finalize your decision,
Opening price in first hour predictions are too far for Retai…
My Bad its ' if you do notwish to procure data API!,
LAN Speed
Since storing in temp requires bit of extra coding you will have to dig bit deep into codes,
regarding timing you need to store time data before moving data to data frame, once its moved…
My Bad its ' if you do notwish to procure data API!,
LAN Speed
Since storing in temp requires bit of extra coding you will have to dig bit deep into codes,
regarding timing you need to store time data before moving data to data frame, once its moved…
if you are new to Python do not attempt to candle the data until you know how to deal with ticks.i recommend you to get around API, data structure and OMS first.Once you are through with that you wont need Candle,Candle is biggest disgrace to API tr…
i recommend you to try fetching using getQuote for the instruments which you did not receive the ticks.with Rate limit in place you can write loopback codes until all your scripts have received first tick for the day......
9:15 will be flooded with…
No and Yes , Market data is actually free along with base subscription.This broker charges extra 2k for historical data API.So, for 2k base subscription you can read live data,place orders and check account info in real time ,like balance, position …
@rrrmanish
No broker will be able to give any assurance on order fills, also brokers have restriction and placing "Quantity" in single order..
If you give us your complete requirement we should be able to give you what can and cant be done with thi…
@rrrmanish
Irrespective of quantity broker will just pass payload(Your order request) to Exchange API and thats it..
Broker's API is just in the man in middle to communicate between Traders and exchange,
Once exchange accepts your order it starts…
@rrrmanish
API is an execution platform and broker does not have any dedicated server demarcating API orders vs Web-app orders,
i have not come across firing orders from attachments, folks might be able to help.
@satya12345 ,Thanks.
Candle is useless,utter waste of time and computation,
API is a powerful tool and using candles is disrespecting its sole purpose.
Since you would like to start with Graphs->Candles,
Graph or candles doesn't mean that value …
Please assign the intended low bar's value to a variable and keep it constant,
to secure your losses you can also feedback an extra conditional statement in % range(of current value) to avoid huge drops.
did you happen to check your order book (API raw) and confirm and an order was placed in above mentioned time ?
By your query we are not able to differentiate if you are talking about the same order ID after 9:30 AM.
@sachinstlko09
i cant get heads and tails of this code..
If you are looking for some solutions to keep your SL and profit as "constant" then apply % to variables.Lets say you want to trigger sell when your script goes down by 2% and same for profit .
fyi
this broker dont provide full and partial updates like other data providers.
If you could give clarity on why ltt is important then we can figure out a workaround.
If your script is not "latency sensitive" you should be able to process full quot…
are you referring to "timestamp"? i believe its epoch of exchange... ltt is actual traded time.
If you could brief a bit we can give you some suggestion.
@heisenBerger
Hisotrical data is for Quant and Alogo Folks(mostly),If you are looking for only OHLC you can download reports from NSE and BSE bhav Copies..They have almost all the data you would need to start with .
NSE
@heisenBerger
"timed trade" is upto programming and API can execute if you say so
O is constant(previous close) and H L will be updated "live",ltt should give you more clarity
I am not from kite team ,
i see "ltt at 10:22:01" which means no trade happened post that, is there any other way you confirmed that there was trade but broker failed to update ?
like you can ask any of other trader(any other brokerage) to run a G…
@wv1031,
socket streaming is live data and we should presume under ideal conditions that data(tick) is not lost.Broker server doesn't care if it has reached/received or processed from client End."its uni directional Broadcast only"Its upto the clien…
to be frank i have no clue how & why candle can really be used when you are dealing with numbers!
anyways:-
for candle data you should always carry over previous close as next interval open and if there is no change the value its understood "gra…
@WV1031 - can you confirm if you are getting ticks of all subscribed data(irrespective of time frame).usually tick will be broadcast ed whenever there is change in ticks.If you don receive any tick at all for an instrument then there are chances yo…
@knjana , API trading is too far from traditional trading,
Are you the developer or you are using Programmers for it ?
Reason is API dont actually need any candle as it deals with mere numbers/strategies(to make is simple it falls down to "If cond…
@G_SPACE_D ,
i am interested to know what is your requirement,(if you feel like to share) infact i am eager to know your hardware setup.Reason being too many API calls and responses will put of traffic in network layer and i had to re write my entir…
@AMAN_BANSAL ,
Kite API is an execution platform, it can fire orders and collect data(ticks, orders,positions,trades) from broker's server.Anything we do with the data(ticks, orders,positions,trades) requires full fledged programming ,Depending upo…
You may go through these topics and figure out what you are missing......
*REST API(Http Session's,requests,API endpoints,Authentication,params,payloads,Json payloads ,response structure, handling exceptions,json response, binary response) Fair Usag…
@xameeramir ,these are protocols, please review your Params, payloads.400 error has got nothing to do with broker's. its totally code Error(mostly "params" because its able to reach broker's server (thats why 400)but we have sent wrong payload to AP…
@rajkumarpu9,
I am puzzled to know why candle data is required when you hava "data" which can be assigned to variable for post processing.
lets say if candle shows 10->15->12->19..... it means a particular variable was assigned & these …
@FH1236,Exchange Rules and Regulations - Yes.
I can give you whole lecture on Alg0 trading, semi algO, Automation, Rate limits and our Indian Stock Exchanges.
What you have procured and using now is merely an execution platform instead of using Weba…
@rajkumarpu9 , are you looking candle data for analysis or you are trying to build a platoform for yourself, Becasue building candle involves totally a different topic.. this API can only provide data , any other post processing we have to take care…
if you are looking for automating login process then i think its not approved by Exchange and brokers dont recommend login process to be automated.
Uptill token generation it has to be manual.
@rajukumarpu9 .Use websocket for marketdata
even if you can make 250 GET calls in a second you would get the same data since prior until there is an update in tick.Any API provider will be having very strict policy on GET calls ...
Webscoket connect…
@rohit3389 . zero difference between web app(Kite portal) and API as they both use way of execution(routing lines to exchange).
API is just an execution platform for OMS/Semi automation.There are no preferences and will ever be given to API trader…
Every market data will have timestamps,please confirm if they are to the nearest time.That should solve all your doubts,i would recommend to consider(code) time stamp validation(nearest second) to make sure your signals are not mislead because of "…
is thats the case then your connection was interrupted from server end(brokers), you need to check your data path and figure out if your network is occupied.
moroever since this is hosted in aws, i would recommend you to check this script in local d…
@razcads you are partially right, but when you open a socket connection to server it keeps broadcasting data from its end irrespective of consumer's status.Once you re establish your interrupted connection your client will be forced to consume all …
i believe this broker dont allow automation on login process and they refresh token every 24 hours.As per Exchange rules,Login automation irrespective of OMS or market data utilization is not allowed.
Connection time out error "can occur" when consumer's network layer is clogged, Socket connection producers "usually/dont" actually await ack,or it can be due to erratic internet connection(intermittent)...
@sachinstlko09 ,
API is merely an execution platform. It does not generate any signal or whatsoever for any segment,we need to Code ourselves and API can manage orders only as per your programmed instructions.
Programming can be fun,
but trading is not joke until you are related to any one of forebes listed guys.
Trading is very serious business which requires lot of discipline.Some traders get that discipline after years of losses some get even before th…
@suyash , for my strategy number of orders weren't enough allowed by broker.
If you are onto arbitrage or technical trading you wont be needing more than this ..
Even with back to back trading 2k orders would be enough.
I have hardy seen any trader…
Programming is actually easy if you know why you need a program ,if you know why you need it you will figure out something or some ways to finish programming,
If you are looking for Trading specific programming-
Working on live data involves little …
i am interested to know the log of complete order cycle,timestamp will give us and Broker where exactly is failing to update.
Ideally if the data is in DB of broker it is supposed to be reflecting on all end points irrespective of platform.
If the o…
try this please,
httpRequest.SetRequestHeader "X-Kite-Version", "3"
httpRequest.SetRequestHeader "Authorization","zfu63d25jhlx4lhi:n61aeURzB6307D471WHQBpMKwrr3Lyh0"
Note- You are not supposed post your tokens here... i just edited your codes and p…
@viswanadhpratap - this is not to discourage you but its harcode truth.
Programming is actually easy if you know why you need a program ,if you know why you need it you will figure out something or some ways to finish programming,
Working on live d…
@amit123, this is something critical which you have reported .. please keep this updated if it happens again . If folks are on bid_0 and Ask_0 then their strategy might have some impact due to this error.
@amit123 , just to confirm was there any data processing done(in your end) before you read this data ?
if possible can you please confirm (compare)this with partial mode data also ?
if partial data emits same then its data is incorrect,
if parti…
You guys missed out about Rate limits, As far upstox goes they have restrictions for /sec and /min but they have not put any cap on day limits(as in last time i checked).But Zerodha restricts you only 2k normal orders or 4k BO orders !
@kiranMaya , thats not link which will is for humans to read..
Thats internal link for populating the tables in nse websites. Any automated calls to "that" NSE link can easily be picked up by NSE servers,their TOS states not to scrap any data from t…
Brokers usually stream whenever there is an update in Level 1, and most brokers push the data to sockets and dont wait for any response form consumer end.
If there is no latency sensitive strategy & if we have "strongest buy and Sell signal gene…
when you loose connectivity :-order has already left your desk and considering it reached Z server it would have started processing and its status will be broadcast-ed if your connection was alive.
Since your connection is lost, when you resume you…
@infotrade - i belive that instrument should have been moved to compulsory rolling .. can you check the series of scrip or validate in Xchange EOD reports ?
Did you try to use new token?
can you please check if those 12 orders were fired in single second ?
Did you try to fire another order ?
Did you check if any orders(raw data from API Query) are in "Pending" or "New " state ?
if nothing on above the…
I am not from Z,
Sir -As you might know starting at exact opening bell will land up in delay as thousands of people will try access servers at the same time.
Its better if you login at least few minutes earlier than opening bell..Also kindly check…
please go through event emits,
if you are applying those event's update(complete order cycle's) in your coding then you can accomplish your task.
i have not personally worked with CO,but if you are well aware of how Kite responds to CO Orders the…
@r2k1984
i suspect you might have issues due to global/local values, please check your codes once again, may be data path from access generated to access expiry will give you where you went wrong.....
Z library is not bible,being as a Retail trader and knowing some parts of python i would like to know every line of code written in my script.
Traders here are fascinated with "API trading" but i could hardly see any posts/traders asking or talking…
@rajukumarpu9 Sir - i dont represent Z. i am also a dev/trader like you.
to give you exact solution we need more details than this... But please try placing gap between orders first and check your code's behavior.Also if order is filled try fill…
i guess one of your scrip might be in RMS limits ... i am not completely sure... i would recommend you run your codes by reading data types of WS as it comes in .. you might get some clarity whats messing
@chethan_kumar
@chethan_kumar
i guess one of your scrip might be in RMS limits ... i am not completely sure... i would recommend you run your codes by reading data types of WS as it comes in .. you might get some clarity whats messing up your codes.