myfxbook api results are different than the website

May 02, 2017 at 11:06
746流覽
1 Replies
會員從May 23, 2016開始   30帖子
May 02, 2017 at 11:06 (已編輯May 02, 2017 at 11:09)
if i request the daily gains via API .. the results are different than the ones are shown on the portfolio pages of the strategy.

is there somethings i need to ajust based on timezones ?
o do not submit a time on the "get-data-daily" request.


also does anyone know how i can get the profability number and the Lenght of trade without sooling trough all trades ?
Professional Canned-Tuna Eater
會員從May 23, 2016開始   30帖子
May 02, 2017 at 11:10
here is a exmple on how i do this

[code]
$span = "now";
$start = date("Y-m-d", strtotime($span));
$m = $this->doCurl($api."get-data-daily.json?session=$session&id=$account&start=$start&end=".date("Y-m-d", strtotime("+1 day")));
[/code]

end date is in the future so i will get the full day
start is just the date (no time) of today
Professional Canned-Tuna Eater
登錄 / 註冊 to comment
You must be connected to Myfxbook in order to leave a comment
*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。