Skip to content

Commit

Permalink
Merge pull request #66 from hhxsv5/master
Browse files Browse the repository at this point in the history
Update default base uri
  • Loading branch information
hhxsv5 authored Aug 20, 2019
2 parents af4fa47 + e190512 commit f118bb3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ composer require "kucoin/kucoin-php-sdk:~1.1.0"

| Environment | BaseUri |
| -------- | -------- |
| *Production* `DEFAULT` | https://openapi-v2.kucoin.com https://api.kucoin.com https://api.kcs.top |
| *Sandbox* | https://openapi-sandbox.kucoin.com |
| *Production* | `https://api.kucoin.com(DEFAULT)` `https://openapi-v2.kucoin.com` `https://api.kcs.top` |
| *Sandbox* | `https://openapi-sandbox.kucoin.com` |

```php
// Switch to the sandbox environment
Expand Down
4 changes: 2 additions & 2 deletions examples/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use KuCoin\SDK\Exceptions\HttpException;
use KuCoin\SDK\Exceptions\BusinessException;

// Set the base uri, default "https://openapi-v2.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://openapi-v2.kucoin.com');
// Set the base uri, default "https://api.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://api.kucoin.com');

$auth = new Auth('key', 'secret', 'passphrase');
$api = new Account($auth);
Expand Down
4 changes: 2 additions & 2 deletions examples/GoOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use KuCoin\SDK\KuCoinApi;
use KuCoin\SDK\PrivateApi\Order;

// Set the base uri, default "https://openapi-v2.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://openapi-v2.kucoin.com');
// Set the base uri, default "https://api.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://api.kucoin.com');

// Require PHP 7.1+ and Swoole 2.1.2+
// Require running in cli mode
Expand Down
4 changes: 2 additions & 2 deletions examples/GoTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use KuCoin\SDK\KuCoinApi;
use KuCoin\SDK\PublicApi\Time;

// Set the base uri, default "https://openapi-v2.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://openapi-v2.kucoin.com');
// Set the base uri, default "https://api.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://api.kucoin.com');

// Require PHP 7.1+ and Swoole 2.1.2+
// Require running in cli mode
Expand Down
4 changes: 2 additions & 2 deletions examples/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
use KuCoin\SDK\KuCoinApi;
use KuCoin\SDK\PublicApi\Time;

// Set the base uri, default "https://openapi-v2.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://openapi-v2.kucoin.com');
// Set the base uri, default "https://api.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://api.kucoin.com');

$api = new Time();
$timestamp = $api->timestamp();
Expand Down
4 changes: 2 additions & 2 deletions examples/WebSocketFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use Ratchet\Client\WebSocket;
use React\EventLoop\LoopInterface;

// Set the base uri, default "https://openapi-v2.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://openapi-v2.kucoin.com');
// Set the base uri, default "https://api.kucoin.com" for production environment.
// KuCoinApi::setBaseUri('https://api.kucoin.com');

$auth = null;
// Need to pass the Auth parameter when subscribing to a private channel($api->subscribePrivateChannel()).
Expand Down
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class Api
/**
* @var string
*/
protected static $baseUri = 'https://openapi-v2.kucoin.com';
protected static $baseUri = 'https://api.kucoin.com';

/**
* @var bool
Expand Down

0 comments on commit f118bb3

Please sign in to comment.