定制 tokenly/quotebot-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tokenly/quotebot-client

最新稳定版本:v1.0.1

Composer 安装命令:

composer require tokenly/quotebot-client

包简介

A quotebot client library

README 文档

README

A quotebot client library for Tokenly.

Build Status

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-04