I need history more than 1 day

edited October 2019 in Binary Bot

I need history more than 1 day, but unfortunatelyI only get 1 day.
I need to resolve this because I have developed a platform of my own where indicators are built on it. And recently a pivot point, which needs more than 1 day for proper processing.
What solution does binary.com make available to developers in this case?

Is it possible to change anything within the json call that brings more than 1 day?

Thank's

{
"ticks_history": "frxEURUSD",
"end": "latest",
"start": 1,
"style": "candles",
"granularity" : 86400,
"adjust_start_time": 1,
"count": 30
}

result only 1 day
{
"candles": [
{
"close": 1.10252,
"epoch": 1570972883,
"high": 1.10426,
"low": 1.10134,
"open": 1.10284
}
],
"echo_req": {
"adjust_start_time": 1,
"count": 30,
"end": "latest",
"granularity": 86400,
"start": 1,
"style": "candles",
"ticks_history": "frxEURUSD"
},
"msg_type": "candles",
"pip_size": 5
}

Comments

  • It is because you have set the start attribute to 1 if you remove it you will get the last 20 days of data which is an internal limit to get the next 10 days before that you would need to make another call with 'end' set to epoch of 20 days ago.
    Something like this.

    {
    "ticks_history": "frxEURUSD",
    "end": "latest",
    "style": "candles",
    "granularity" : 86400,
    "adjust_start_time": 1,
    "count": 20
    }
    

    then

    {
    "ticks_history": "frxEURUSD",
    "end": 1568592000,
    "style": "candles",
    "granularity" : 86400,
    "adjust_start_time": 1,
    "count": 10
    }
    
  • edited October 2019

    Ok, thank's,
    What's maximum accept return from "count" : __ ?

Sign In or Register to comment.