2017 © Pedro Peláez
 

library quotebot-client

A quotebot client library

image

tokenly/quotebot-client

A quotebot client library

  • Saturday, October 7, 2017
  • by dweller
  • Repository
  • 3 Watchers
  • 0 Stars
  • 3,692 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Quotebot Client

A quotebot client library for Tokenly., (*1)

Build Status, (*2)

Installation

Add the package via composer

composer require tokenly/quotebot-client

Usage with Laravel

Add the Service Provider

Add the following to the providers array in your application config:, (*3)

Tokenly\QuotebotClient\ServiceProvider\QuotebotServiceProvider::class,

Set the environment variables

QUOTEBOT_CONNECTION_URL=https://quotebot.tokenly.com
QUOTEBOT_API_TOKEN=my-api-token

Simple BTC quote

Get a BTC in USD. This will use bitcoinAverage and then fallback to bitstamp if the data is not current, (*4)

$quotebot_client = app('Tokenly\QuotebotClient\Client');
$usd_float = $quotebot_client->getCurrentBTCQuoteWithFallback();

Get a token quote

Get a token quote by going to BTC and then from BTC to USD. This will use the default fallback sources of bitcoinAverage and bitstamp for the BTC quote., (*5)

$quotebot_client = app('Tokenly\QuotebotClient\Client');
$usd_float = $quotebot_client->getTokenValue('poloniex', 'XCP');

The Versions

07/10 2017

dev-master

9999999-dev

A quotebot client library

  Sources   Download

MIT

The Requires

 

The Development Requires

30/08 2017

v1.0.1

1.0.1.0

A quotebot client library

  Sources   Download

MIT

The Requires

 

The Development Requires

30/08 2017

v1.0.0

1.0.0.0

A quotebot client library

  Sources   Download

MIT

The Requires

 

The Development Requires