HOW TO GET CONTINUE GET HISTORICAL DATA AND SKIP HOLIDAY

jay_joshi
HI AS A EXAMPLE I WANT TO LAST 10 DAY DAY ITS MEANS LAST 10 MARKET DAY DATA HOW CAN I GET AND NEXT TIME I WANT TO GET 25 MARKET DAY DATA HOW CAN I GET AND SKIP HOLIDAY AND SATURDAY SUNDAY.
  • jay_joshi
    Please reply anyone
  • sujith
    If you request data for an instrument then you will receive data for only the trading days, you won't receive data if it is a holiday.
  • jay_joshi
    how much time required for get api secret key after payment.
  • sujith
    You can use data once you create a Kite Connect app and subscribe to historical data.
  • jay_joshi
    @sujith thanks for the reply.

    hii my questions was that if i try to fetch data of last 5 day and there is one holiday between those 5 days
    then api is giving me data of only 4 days. It is not adding an extra day for that it cut of the holiday.

    How can i get those data ? hope you understand the question.

    Thanks.
  • jay_joshi

    https://kite.trade/docs/connect/v3/orders/ Here in your KiteConnect Documentation you have written:
    order_type
    MARKET Market order
    LIMIT Limit order
    SL Stoploss order ?
    SL-M Stoploss-market order ?


    but in the JavaScript documentation you have written
    https://kite.trade/docs/kiteconnectjs/v3/KiteConnect.html#placeOrder
    order_type string
    Order type (NRML, SL, SL-M, MARKET).

    What I have to pass in the parameter for limit order in JavaScript ?
    NRML or LIMIT ?
  • jay_joshi
    @sujith I expect you reply for my both of the queries as soon as possible.
    Thanks
  • rakeshr
    @jay_joshi
    It is not adding an extra day for that it cut of the holiday.
    You need to compute the required from and to input date for your historical data fetching at your end considering all the declared exchange holiday and weekend's. You need to write a helper method that calculates trading days between the given period or calculate dates for last n trading days. Eg: If you are fetching data for the last 5 days and there was an exchange holiday in between, then you need to go back one more day for from data input.

  • rakeshr
    @jay_joshi
    What I have to pass in the parameter for limit order in JavaScript ?
    NRML or LIMIT ?
    Both are for a different order field. You can go through this part of the documentation to understand different between variety and order_type.
  • jay_joshi
    @rakeshr please check the links i mentioned below.
    I am not asking for variety.
    https://kite.trade/docs/connect/v3/orders/#glossary-of-constants
    order_type
    MARKET
    LIMIT
    SL
    SL-M

    These are parameters supported for order_type in the above link.

    https://kite.trade/docs/kiteconnectjs/v3/KiteConnect.html#placeOrder
    placeOrder(variety, params)
    here check the params
    it is supporting following parameters in order_type
    NRML
    MARKET
    SL
    SL-M

    let me know if you still can't understand the question.
    What I have to pass in the parameter for limit order in JavaScript ?
    NRML or LIMIT ?


    Thanks
  • sujith
    We will update the documentation. NRML is a product type and not an order type.
    The params in the place order include multiple order params like price, product, tradingsymbol, exchange, trigger price, validity, order type, variety, and so on based on the type of order you place.

    In your case, if you want to place a LIMIT order then you need to pass params with tradingsymbol, exchange, price, validity, product(CNC/NRML/MIS), variety.
  • sujith
    @jay_joshi, Please create a new thread for new queries, it might help others. This answer gets hidden since the heading is about something else and won't be visible to someone else who is looking for the same.
Sign In or Register to comment.