PHP code example of wilianmaique / php-mexc-api-v3
1. Go to this page and download the library: Download wilianmaique/php-mexc-api-v3 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/ */
Account::get(); // get detail account
Account::getSpotBalance(); // get balance by asset, null to list all
InfoToken::get(); // get info token, null to list all
PriceTicker::get(); // get price by token, null to list all
Withdraw::withdraw('WEMIX', 'WEMIX', 'xxxxxxxx', '1.0'); // send crypto to any wallet, if ok [id] returns
Withdraw::history('WEMIX', 'c3bbe527692742cc95e64f999dfda324'); // get all history, if 'withdrawId' is not defined list all
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.