1. Go to this page and download the library: Download linwj/kucoin library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
linwj / kucoin example snippets
$kucoin=new kucoin();
//You can set special needs
$kucoin->setOptions([
//The default is v2 api, you can set//'headers'=>['KC-API-KEY-VERSION'=>1],//Set the request timeout to 60 seconds by default'timeout'=>10,
//If you are developing locally and need an agent, you can set this//'proxy'=>true,//More flexible Settings/* 'proxy'=>[
'http' => 'http://127.0.0.1:12333',
'https' => 'http://127.0.0.1:12333',
'no' => ['.cn']
], *///Close the certificate//'verify'=>false,
]);