Historical Values wrong

ayyaz
i tried pulling in 3 minute chart for centuryply at 12:12:0 , i pulled values twice for 3 minute at 12:12 but i once i got
'316','316','316','316'

same i queried at 12:15:15 for 12:12 values changed to
'316','316.95','316.95','316',

why this difference
  • sujith
    Hi @ayyaz,
    A 3minute candle is formed using three 1minute candles. At the time of the request, if three candles are not available then it will return a candle made of two 1minute candles or one 1minute candle.
  • ayyaz
    how to solve do u think i shud take the in the seconds multiple of 3 and 5

    here is serious problem in terms of data
    TECHM-1519120620-7 | TECHM | | 2018-02-20 | | 578.2(open) | 578.95 (close) | 578 (high) | 578.9 (low) | | | 23808 | | | | 7 | 1 | 09:57:00 | 67.371765 | X
  • ayyaz
    i Queried for 3 minutes at 09:52:55-10:02:55 for 3 candles
    fromtm=2018-02-20 09:59:15 totm=2018-02-20 10:09:15 viewtype=7 duration=3minute hr=09 min=59
    values for candle 9:57:0 are
    9:57 at 9:59 around 3 candles and i got values as
    open=577.2 , close=578.9 , high=578.95 , low=576.95
    but when

    later i queried at 09:59:15 -10:09:15 for 3 minutes 3 candles i got values
    open=578.2 , close=578.9 , high=578.95 , low=578
    please suggest
  • ayyaz
    please let me know solution i dont want such surprises
  • ayyaz
    later i queried at 09:59:15 -10:09:15 for 3 minutes 3 candles i got values
    open=578.2 , close=578.9 , high=578.95 , low=578
    please suggest
    for candle 9:57 in second iteration
  • ayyaz
    i am gettin all values wrong like influced by previous values in 3 and 5 minutes , please let me know how to get precise values i mean completed , for 3 and 5 minutes
  • sujith
    The historical data API is provided only for backtesting and not for real-time strategies. I would suggest using live market data from websockets and build candles at your end.
Sign In or Register to comment.