tokenly/quotebot-client
最新稳定版本:v1.0.1
Composer 安装命令:
composer require tokenly/quotebot-client
包简介
A quotebot client library
README 文档
README
A quotebot client library for Tokenly.
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:
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
$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.
$quotebot_client = app('Tokenly\QuotebotClient\Client'); $usd_float = $quotebot_client->getTokenValue('poloniex', 'XCP');
统计信息
- 总下载量: 3.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-04