Laravel Bitstamp API client

dev-master 2021-01-10 12:24 UTC

This package is not auto-updated.

Last update: 2022-06-27 18:23:15 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.