Open nalagg opened 6 years ago
Thanks I will take a look soon. I am revamping the Example logic and will add this issue and a solution when I finish revamping the tests.
after placing config.php
and work files in correct path C:\xampp\htdocs\crypto\gdax\sample\vendor\mrteye\gdax
I am getting this products/ETH-BTC/candles: Operation timed out after 5000 milliseconds with 0 bytes received
Hello, I have the same problem. Other functions are working fine. GetProductHistoryRates return the same error as above. `$params = array( 'start' => new DateTime('2018-02-09'), 'end' => new DateTime('2018-02-10'), 'granularity' => 3600 );
$candles = $gdax->getProductHistoricRates($productId,$params);`
I am calling getProductHistoricRates() but this code returns
Invalid JSON or null returned.
`$gdax = new Api('https://api-public.sandbox.gdax.com'); $date_1 = '2017-06-15T14:37:47.501Z'; $date_1Str = strtotime($date_1); $date_2Str = $date_1Str + (60*5); // add 5 min
$date_1 = date(DATE_ISO8601, $date_1Str); $date_2 = date(DATE_ISO8601, $date_2Str);
$paramArr = [ 'start' => $date_1, 'end' => $date_2, 'granularity' => 60 ];
$productId = 'ETH-BTC'; $productHistoricRates = $gdax->getProductHistoricRates($productId, $param = $paramArr );`