1. Go to this page and download the library: Download tsukiro/buda-sdk 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/ */
tsukiro / buda-sdk example snippets
Instance = new Tsukiro\Client\Api\BudaApi();
try {
$apiInstance->setApiKey("YOUR_APIKEY");
$apiInstance->setSecret("YOUR_SECRET");
$response = $apiInstance->getBalance();
list($body, $statusCode, $headers) = $response;
} catch (Exception $e) {
echo 'Exception when calling BudaApi->apiV2BalancesGet: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = new Tsukiro\Client\Api\BudaApi();
try {
$response = $apiInstance->getMarkets();
list($markets, $statusCode, $headers) = $response;
} catch (Exception $e) {
echo 'Exception when calling BudaApi->getMarkets: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = new Tsukiro\Client\Api\BudaApi();
$market_id = "market_id_example"; // string | Market ID obtenido desde le metodo getMarkets o desde tu base de datos
try {
$response = $apiInstance->getTicker($market_id);
list($ticker, $statusCode, $headers) = $response;
} catch (Exception $e) {
echo 'Exception when calling BudaApi->apiV2MarketsMarketIdTickerGet: ', $e->getMessage(), PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.