tokenly/crypto-quote-client

A library for obtaining cryptocurrency quotes

v1.3.0 2018-09-21 15:03 UTC

This package is not auto-updated.

Last update: 2020-09-18 19:31:36 UTC


README

Gets quotes for cryptocurrency prices.

Build Status

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