PHP code example of roozbeh / coinex_php

1. Go to this page and download the library: Download roozbeh/coinex_php 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/ */

    

roozbeh / coinex_php example snippets



use Roozbeh\CoinexPhp\Market;


//use this variable in some functions as global
$access_id = '<ACCESS_ID>';
$secret_key = '<SECRET_KEY';



$market = new  Market($access_id,$secret_key);
$result = $market->acquireMarketList();


$proxy = 'socks5://user:pass@localhost:12345';
$proxy = 'http://127.0.01:8080';

$market = new  Market($access_id,$secret_key,$proxy);
$result = $market->acquireMarketList();

//params if nedded
//IMPORTANT: no needed set access_id, tonce into params.
$market->acquireMarketStatistics('BCHBTC');
shell
composer