From 876a819e39000f4c10dd485885deb5fcfbce891b Mon Sep 17 00:00:00 2001 From: Jon Eyrick Date: Wed, 25 Apr 2018 12:21:21 -0700 Subject: [PATCH] Fix miniTicker endpoint --- 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 0aa4340d..7a8605be 100644 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -2129,7 +2129,7 @@ public function miniTicker(callable $callback) // @codeCoverageIgnoreStart // phpunit can't cover async function - \Ratchet\Client\connect('wss://stream2.binance.com:9443/ws/!miniTicker@arr@1000ms')->then(function ($ws) use ($callback, $endpoint) { + \Ratchet\Client\connect($this->stream . '!miniTicker@arr')->then(function ($ws) use ($callback, $endpoint) { $ws->on('message', function ($data) use ($ws, $callback, $endpoint) { if ($this->subscriptions[$endpoint] === false) { //$this->subscriptions[$endpoint] = null;