- หน้าหลัก
- ชุมชน
- การเขียนโปรแกรม
- myfxbook api results are different than the website
Advertisement
Edit Your Comment
myfxbook api results are different than the website
May 02, 2017 at 11:06
(แก้ไขแล้ว May 02, 2017 at 11:09)
เป็นสมาชิกตั้งแต่ May 23, 2016
30 โพสต์
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 ?
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 02, 2017 at 11:10
เป็นสมาชิกตั้งแต่ May 23, 2016
30 โพสต์
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
[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

*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ