jaggedsoft / php-binance-api

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use. https://github.com/binance-exchange/php-binance-api
MIT License
605 stars 497 forks source link

CURL ERROR #498

Open Odilbukh opened 1 year ago

Odilbukh commented 1 year ago

Title Curl error: error:0A00010B:SSL routines::wrong version number {"exception":"[object] (Exception(code: 0): Curl error: error:0A00010B:SSL routines::wrong version number at project_path/vendor/jaggedsoft/php-binance-api/php-binance-api.php:1319)

Short Description: I have installed the packeage to fresh Laravel (v10) project. When I want to use packege methods it returns error.

Platform:

php version:

code

    public function getPrice(): void
    {
        $api = new \Binance\API(config('app.api_key'), config('app.secret_key'));
        $price = $api->price("BNBBTC");
    }

result

Curl error: error:0A00010B:SSL routines::wrong version number {"exception":"[object] (Exception(code: 0): Curl error: error:0A00010B:SSL routines::wrong version number at project_path/vendor/jaggedsoft/php-binance-api/php-binance-api.php:1319)

thank you