dannyben / php-quandl Goto Github PK
View Code? Open in Web Editor NEWEasy access to the Quandl Data API using PHP
License: MIT License
Easy access to the Quandl Data API using PHP
License: MIT License
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
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.
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;
}
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.