Historical Data

Prem

I want historical data to calculate Moving Average (5 min an 3 Minute) in Intraday(Same Day) for Placing Buy and Sell order. Time Interval is "1 Minute"

How can I get data continue after 1minute till the end of the market? there is any callback which gives historical data continue after every 1 minute or I will do it programmatically at our end.

Kindly reply.
  • Vivek
    @Prem You have to do it yourself programmatically for now but soon we will add api endpoints to fetch last x candles.
  • Prem
    So,

    If I want Historical Data of previous 5 minutes for same day suppose today, then how can I get it from historical data API? Kindly reply @vivek
  • Vivek
    @Prem I didn't get your question. Can you please elaborate your question?
  • Prem
    @vivek

    Suppose, I want to fetch data:

    From Date : 24/10/2016 14:25:00
    To Date : 24/10/2016 14:30:00

    Time Interval : 1 Minute

    Suppose current time is 2:30 PM(14:30:00).

    How can I get?

    Kindly reply.

  • Vivek
    @Prem Currently you have to fetch it for a day and loop through it to get the data.
  • Prem
    Prem edited October 2016
    @vivek

    Kindly elaborate for above requirement.

    If I choose

    From Date: 24/10/2016
    To Date 24/10 2016

    Current Time is : 02:30:00 PM(14:30:00)

    Time Interval is "1 Minute"

    Then "Historical data API" gives data from 24/10/2016 09:15 to 24/10/2016 02:30:00 PM(14:30:00)

    Is it right?

    Kindly reply.
  • Vivek
    @Prem Yeah thats right. You will get data for that day till last minute.
  • Prem
    Thanks a ton @vivek. :)
This discussion has been closed.