Skip to content

Commit

Permalink
The default address Okex.com is changed to Okx.com
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Jan 21, 2022
1 parent 0275fd8 commit 73f7434
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Api/WebSocketV5/SocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/OkexV5.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ?? [];

Expand Down

0 comments on commit 73f7434

Please sign in to comment.