From 16abaf0a19074e337e2d1ce9ade28394885de33a Mon Sep 17 00:00:00 2001 From: BlackPanda <46260610+B14ckP4nd4@users.noreply.github.com> Date: Mon, 14 Mar 2022 14:32:21 +0000 Subject: [PATCH] update webSocket port based on [Binance API Documentation - WebSocket Section](https://binance-docs.github.io/apidocs/spot/en/#websocket-market-streams) the Websocket port for stream prices is "9443" but it's outdated and the current port is 443. I tested the WebSocket repeatedly and port 9443 didn't work with this package --- php-binance-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-binance-api.php b/php-binance-api.php index 2b2d3309..f7840e61 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -35,7 +35,7 @@ class API protected $sapi = 'https://api.binance.com/sapi/'; // /< REST endpoint for the supporting network API protected $fapi = 'https://fapi.binance.com/'; // /< REST endpoint for the futures API protected $bapi = 'https://www.binance.com/bapi/'; // /< REST endpoint for the internal Binance API - protected $stream = 'wss://stream.binance.com:9443/ws/'; // /< Endpoint for establishing websocket connections + protected $stream = 'wss://stream.binance.com:443/ws/'; // /< Endpoint for establishing websocket connections protected $streamTestnet = 'wss://testnet.binance.vision/ws/'; // /< Testnet endpoint for establishing websocket connections protected $api_key; // /< API key that you created in the binance website member area protected $api_secret; // /< API secret that was given to you when you created the api key