定制 olegdemkiv/coinmarketcap-api-php-client 二次开发

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

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

olegdemkiv/coinmarketcap-api-php-client

最新稳定版本:v1.0.0

Composer 安装命令:

composer require olegdemkiv/coinmarketcap-api-php-client

包简介

Client library for CoinMarketCap API

README 文档

README

Build Latest Stable Version License

This client library is built for interacting with the CoinMarketCap API. It is based on the PSR-17 and PSR-18 standards and supports HTTP client autodiscovery.

Requirements

Installation

composer require olegdemkiv/coinmarketcap-api-php-client

Example

$key = 'xxxxx-xxxxx-xxxxx-xxxxx-xxxxx';
$client = new OlegDemkiv\CoinMarketCapClient\Client($key);
$result = $client->cryptocurrency()->quotesLatest(['id' => '1,2,1027']); // BTC, LTC, ETH
var_dump($result);

Endpoints

Support Endpoint Category Description
/blockchain/* Endpoints that return block explorer related data for blockchains.
/community/* Endpoints that return community data.
/content/* Endpoints that return cryptocurrency-related news, headlines, articles, posts, and comments.
/cryptocurrency/* Endpoints that return data around cryptocurrencies such as ordered cryptocurrency lists or price and volume data.
/exchange/* Endpoints that return data around cryptocurrency exchanges such as ordered exchange lists and market pair data.
/fiat/* Endpoints that return data around fiats currencies including mapping to CMC IDs.
/global-metrics/* Endpoints that return aggregate market data such as global market cap and BTC dominance.
/key/* API key administration endpoints to review and manage your usage.
/tools/* Useful utilities such as cryptocurrency and fiat price conversions.

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-02