PHP code example of bitbuy-at / bitstamp-api-client
1. Go to this page and download the library: Download bitbuy-at/bitstamp-api-client 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/ */
bitbuy-at / bitstamp-api-client example snippets
'providers' => [
// Other service providers...
bitbuyAT\Bitstamp\BitstampServiceProvider::class,
],
'aliases' => [
...
'Bitstamp' => bitbuyAT\Bitstamp\Facade\Bitstamp::class,
],
use bitbuyAT\Bitstamp\Facade\Bitstamp;
$prices = Bitstamp::getTicker($tradingPair);
$prices->getData();
$prices->askPrice();
$prices->bidPrice();