To use chat, please login.
Back to contacts

Get daily gain value

AlgoCapitalFX (AlgoCapitalFX)
May 27 at 18:07
1 posts
Hi there
I'm new here, can somebody guide me on how can I fetch get-daily-gain results via laravel?

I am using following code
$client = new Client();
            $res = $client->request('GET', 'https://www.myfxbook.com/api/get-daily-gain.json?', [
                'form_params' => [
                    'session' => 'DSL07vu14QxHWErTIAFrH40',
                    'id' => '3353768',
                    'start' => '2000-01-01',
                    'end' => '2021-01-01'
                ]
            ]);
            dd($res);
            echo $res->getStatusCode();
            // 200
            echo $res->getHeader('content-type');
            // 'application/json; charset=utf8'
            echo $res->getBody();
            // {'type':'User'...'

But the response doesn't come as expected. Where can I get the account id and session id?
Thank you

Please login to comment .