Comments (10)
I'll check it out, i've got limited availability this week but i will try
from php-binance-api.
I have the same error while using trades function (aggTrade), after about 10 minutes the connection closes with 1006 error and php notice for undefined symbol.
It used to work a few days ago, do you know what s happening?
from php-binance-api.
I am not sure. Binance is changing things faster than I can keep up, only now they are not notifying us of changes
from php-binance-api.
I understand, please let us know if you find something, anyway this api is useful and having it to work serverside is way better for data manipulation and backup, thank you for sharing your work with us!
from php-binance-api.
Hi - Firstly thanks for all the hard wok you put into this Jaggedsoft.
Anyone got this working yet?
from php-binance-api.
hey man, ya, I'm trying to just fetch something and its returning an empty array. any idea when you might have a working example? I do see from cointracking.info that they are saying binance's api is unusable right now? weird. Do you know what they're doing or when they might make it usable? thanks for putting all this together. we all appreciate it. Justin
from php-binance-api.
from php-binance-api.
oh ya? wierd. I couldn't get anything to work as is. I just now got it going by adding this to the php-binance-api.php the ssl option to ignore verification...
$opt = [
"http" => [
"method" => $method,
"ignore_errors" => true,
"header" => "User-Agent: Mozilla/4.0 (compatible; PHP Binance API)\r\n"
],
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
because i kept getting: Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Now I'm able to get the contents just fine. I know it isn't as secure but is it that important? I'm guess that has to do with my own ssl cert? Right now I'm just testing on a codeanywhere stack. Maybe that is it.
from php-binance-api.
If anyone else runs into this, your pem file might be outdated or in the wrong location.
First, get the locations of where PHP thinks they are:
$ php -r "print_r(openssl_get_cert_locations());"
Array
(
[default_cert_file] => /usr/local/openssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /usr/local/openssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /usr/local/openssl/private
[default_default_cert_area] => /usr/local/openssl
[ini_cafile] =>
[ini_capath] =>
)
Second: Download http://curl.haxx.se/ca/cacert.pem:
$ wget http://curl.haxx.se/ca/cacert.pem
Third: Copy certificate PEM file into default_cert_file location:
$ sudo mv cacert.pem /usr/local/openssl/cert.pem
Verification should now work as expected.
from php-binance-api.
Todo: add error reporting
from php-binance-api.
Related Issues (20)
- The problem of buying a large number of wallets HOT 1
- Too much request weight used; current limit is 1200 request weight per 1 MINUTE.
- Spot Order with all the balance
- I need to use this API in laravel
- signedRequest error: API Key not set!
- How to hide warning of config file
- I have a problem MIN_NOTIONAL HOT 2
- How do I know if someone's API is correct or not?
- how to solve Curl error: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) HOT 1
- How to create User Data Stream for multiple binance accounts using php-binance-api HOT 2
- php8.1 Call to undefined function GuzzleHttp\Psr7\uri_for() HOT 2
- Can this be used to build a website like binance.com?
- How to get depthCache information without using WebSocket, is that possible?
- bug: Signature for this request is not valid.
- websockets are not working HOT 1
- CURL ERROR
- Curl error: SSL: no alternative certificate subject name matches target host name 'api.binance.com'
- Undefined array key "minQty" HOT 1
- FIXED minQty filter
- The websocket does not show. This is mistake?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-binance-api.