tokenly / crypto-quote-client
A library for obtaining cryptocurrency quotes
v1.3.0
2018-09-21 15:03 UTC
Requires
- php: >=7.1.0
- guzzlehttp/guzzle: ~6
- tokenly/crypto-quantity: ^2
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-10-26 17:40:21 UTC
README
Gets quotes for cryptocurrency prices.
Usage:
$client = new Tokenly\CryptoQuoteClient\Client(); $quote = $client->getQuote('bitcoinAverage', 'USD', 'BTC'); echo json_encode($quote, 192)."\n"; /* { "name": "bitcoinAverage", "base": "USD", "target": "BTC", "ask": 217.55, "askSat": 21755000000, "bid": 217.19, "bidSat": 21719000000, "last": 217.39, "lastSat": 21739000000, "timestamp": 1423163845 } */
Included drivers are:
- bitcoinAverage
- bitstamp
- poloniex