Clarification required on kite api

RL0520
Hi Team,

I have few questions.

1) I have made some strategy , every time do need to run my automation once in day.
2) Do I need to enter new token access code daily
3) during trading day if suppose my connectivity will go down due power failure or problem with internet connection , is there any problem caused for existing trade.
4) I need to open my system all time
5) what happens if it get locked
6) For intraday do i need to subscribe Historical API

please reply with valid answers
  • sujith
    Hi,
    It is mandatory by the exchange that a user has to log in manually at least once a day. Hence you need to log in at least once a day.
    An access token is valid for one trading day. So you need to fetch new access token every day.
    Your open position might not be closed if you lose connectivity. If it is intraday position then RMS might close your position but there will be Call N Trade charges on each order since it will be squared off by the Admin.
    It is better to run it on the cloud instead of running locally once your strategy is ready for production.

    Kite Connect contains a base subscription which will serve live market, place order, modify order, fetch orderbook, positions, margins and more and an add-on subscription for historical data which is optional.
  • RL0520
    thanks for your answer sir,
    I have created program file in python,once irun file , its trigger or buy or sell, but next process not going though , could you tell any reason , or i need to refresh program file ,please tell me
  • sujith
    Can you run your code and give us error?
  • RL0520
    RL0520 edited December 2017
    now just placed crude oil mini sell , now next process not going through automatic, please see below screenshot.........................thanks
    Yesterday also multipole orders executed when i have done run but after i need to close all orders manually
  • prat
    @RL0520 as from your stack-trace it can be seen that "transaction_type= " parameter is missing.Could you confirm you are passing the value for that parameter.?
    you can refer docs here https://kite.trade/docs/pykiteconnect/
  • RL0520
    # Place an order based upon transaction type(BUY/SELL)
    def place_order(transaction_type):
    kite.order_place(tradingsymbol="CRUDEOILM17DECFUT", exchange="MCX", quantity=3, transaction_type=transaction_type, order_type="MARKET",
    product="MIS",trigger_price="3710",variety="co")
    ...................................................thanks for support

    yes sir as above i am passing parameter,
  • unawatuna
    # Place an order based upon transaction type(BUY/SELL)
    def place_order(transaction_type):
    kite.order_place(tradingsymbol="CRUDEOILM17DECFUT", exchange="MCX", quantity=3, transaction_type=BUY/SELL, order_type="MARKET",
    product="MIS",trigger_price="3710",variety="co")
    Should be as it is in bold, @RL0520
Sign In or Register to comment.