agnonym-laravel / bitstamp
Laravel Bitstamp API client
dev-master
2021-01-10 12:24 UTC
Requires
- php: ^7.3|^8.0
- illuminate/contracts: ^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is not auto-updated.
Last update: 2024-04-16 02:40:30 UTC
README
Laravel client for Bitstamp.net HTTP API v2.
Installation
You can install the package via composer:
composer require agnonym-laravel/bitstamp
Usage
use Bitstamp;
// Get Ticker for a trading pair (open, last, high, low prices, bid, ask orders, volume).
Bitstamp::ticker('BTC/USD');
// Get Hourly Ticker for a trading pair (open, last, high, low prices, bid, ask orders, volume).
Bitstamp::hourlyTicker('BTC/USD');
// Get Order Book for a trading pair (asks and bids lists).
Bitstamp::orderBook('BTC/USD');
// Get trading pairs information (for each trading pair: name, description, URL symbol, trading status, decimals for base and counter currency, minimum order).
Bitstamp::tradingPairsInformation();
// Get trading pair information (name, description, URL symbol, trading status, decimals for base and counter currency, minimum order).
Bitstamp::tradingPairInformation('BTC/USD');
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.