1. Go to this page and download the library: Download linwj/ftx library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
linwj / ftx example snippets
//spot
use Lin\Ftx\Ftx;
$ftx=new Ftx();
//or
$ftx=new Ftx($key,$secret);
//You can set special needs
$ftx->setOptions([
//Set the request timeout to 60 seconds by default
'timeout'=>10,
//https://github.com/guzzle/guzzle
//'proxy'=>[],
//https://www.php.net/manual/en/book.curl.php
//'curl'=>[],
//FTX-SUBACCOUNT (optional): URI-encoded name of the subaccount to use. Omit if not using subaccounts.
//'headers'=>['FTX-SUBACCOUNT'=>'xxxx']
]);