Get a candle for a certain time

edited January 2016 in General

I want to get these candles at the right time to me.

For example 01/05/2016 00:00:00
Unix timestamp - 1451941200

I make a request type

{
  "ticks_history": "frxEURUSD",
  "granularity": 60,
  "count": 1,
  "end": "1451941200",
  "style": "candles",
  "start": 1451941200
}

I receive a response.

{
  "echo_req": {
    "count": 1,
    "granularity": 60,
    "ticks_history": "frxEURUSD",
    "style": "candles",
    "start": 1451941200,
    "end": "1451941200"
  },
  "candles": [
    {
      "open": "1.08243",
      "high": "1.08244",
      "epoch": 1452685800,
      "close": "1.08243",
      "low": "1.08242"
    }
  ],
  "msg_type": "candles"
}

Unix timestamp - 1452685800. This is the time at the moment. At the time of the request.

And the data at a given time.

But I need a candle for my time - 1451941200.

Please help. What am I doing wrong?

Best Answer

Answers

This discussion has been closed.