diff --git a/src/Api/WebSocketV5/SocketServer.php b/src/Api/WebSocketV5/SocketServer.php index afffe3b..9e59b43 100644 --- a/src/Api/WebSocketV5/SocketServer.php +++ b/src/Api/WebSocketV5/SocketServer.php @@ -47,11 +47,11 @@ private function getBaseUrl($type='public'){ switch ($type){ case 'public':{ - return 'ws://ws.okex.com:8443/ws/v5/public'; + return 'ws://ws.okx.com:8443/ws/v5/public'; } //private default :{ - return 'ws://ws.okex.com:8443/ws/v5/private'; + return 'ws://ws.okx.com:8443/ws/v5/private'; } } } diff --git a/src/OkexV5.php b/src/OkexV5.php index be77064..fd73714 100644 --- a/src/OkexV5.php +++ b/src/OkexV5.php @@ -22,7 +22,7 @@ class OkexV5 protected $options=[]; - function __construct(string $key='',string $secret='',string $passphrase='',string $host='https://www.okex.com'){ + function __construct(string $key='',string $secret='',string $passphrase='',string $host='https://www.okx.com'){ $this->key=$key; $this->secret=$secret; $this->host=$host; diff --git a/src/Request.php b/src/Request.php index 4ac3a01..7399215 100644 --- a/src/Request.php +++ b/src/Request.php @@ -43,7 +43,7 @@ public function __construct(array $data) $this->key=$data['key'] ?? ''; $this->secret=$data['secret'] ?? ''; $this->passphrase = $data['passphrase'] ?? ''; - $this->host=$data['host'] ?? 'https://www.okex.com/'; + $this->host=$data['host'] ?? 'https://www.okx.com/'; $this->options=$data['options'] ?? [];