Git Product home page Git Product logo

php-quandl's Issues

timeout options

There are no timeout options
neither for standard mode nor force_curl mode
php.ini has default_socket_timeout => 60 option, but sometimes getList hangs forever
strace shows nothing but "read(0," (or something similiar) in standard mode and in curl mode there is infinite poll/timeout loop

crazynamer.com

Greetings Danny, @DannyBen a couple colleagues and I wrote a slack bot integration to hit crazynamer to give them a temporary title. It was a company favorite. Just wondering why the site was taken down, and if it’s not coming back up could you point me to the code you had for it so we can stand it up locally?

I understand this is not how to use this platform but couldn’t figure a better way to try and contact you.

file_get_contents disabled on server, included a curl attempt before reporting error.

If "allow_url_fopen" is not set on the server in php.ini then file_get_contents always returns null. I've included a new version executeDownload that I used to get around this issue. It uses the more secure curl function.

private function executeDownload($url) {
    if($this->cache_handler == null) {
        $data = @file_get_contents($url);
        if(!$data) {
            if (function_exists('curl_version')) {
                $curl = curl_init();
                 curl_setopt($curl, CURLOPT_URL, $url);
                 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
                 $data = curl_exec($curl);
                 curl_close($curl);              
                if(!$data) $this->error = "Invalid URL";
            } else {
                $this->error = "Invalid URL or check php.ini for allow_url_fopen";
            }
        }
    }
    else {
        $data = $this->attemptGetFromCache($url);
    }
    return $data;
}

Fetching EOD data of multiple symbols via one api call

I was wondering if it is possible to fetch the EOD data of multiple symbols via one api call?
One request per symbol is quite slow but I can't find any information that there's a better and faster solution.

Do you have any recommendations or knowledge that there is a way to achieve this?

Test fails due to Quandl per_page bug

Quandl currently has a problem with their per_page parameter. This causes the phpunit test to fail. Pending response from Quandl team.

This call should return two documents, it returns more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.