Download the PHP package codenix-sv/coingecko-api without Composer
On this page you can find all versions of the php package codenix-sv/coingecko-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codenix-sv/coingecko-api
More information about codenix-sv/coingecko-api
Files in codenix-sv/coingecko-api
Package coingecko-api
Short Description PHP REST API client for coingecko.com
License MIT
Homepage https://github.com/codenix-sv/coingecko-api
Informations about the package coingecko-api
PHP API client for coingecko.com
A simple API client, written with PHP for coingecko.com.
CoinGecko provides a fundamental analysis of the crypto market. In addition to tracking price, volume and market capitalization, CoinGecko tracks community growth, open-source code development, major events and on-chain metrics.
For additional information about API visit coingecko.com/api
CoinGecko API Terms of Service
Requirements
- PHP >= 7.2
- ext-json
Installation
The preferred way to install this extension is through composer.
Either run
or add
Basic usage
Example
You can get last response (ResponseInterface::class
) uses getLastResponse
method:
Available methods
Ping
ping
Check API server status
Simple
getPrice
Get the current price of any cryptocurrencies in any other supported currencies that you need.
getTokenPrice
Get current price of tokens (using contract addresses) for a given platform in any other currency that you need.
getSupportedVsCurrencies
Get list of supported_vs_currencies.
Coins
getList
List all supported coins id, name and symbol (no pagination required)
getMarkets
List all supported coins price, market cap, volume, and market related data
getCoin
Get current data (name, price, market, ... including exchange tickers) for a coin
getTickers
Get coin tickers (paginated to 100 items)
getHistory
Get historical data (name, price, market, stats) at a given date for a coin
getMarketChart
Get historical market data include price, market cap, and 24h volume (granularity auto)
getMarketChartRange
Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto)
getMarketChartRange [BETA]
Get status updates for a given coin
Contract
getContract
Get coin info from contract address
getMarketChart
Get historical market data include price, market cap, and 24h volume (granularity auto) from a contract address
getMarketChartRange
Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto) from a contract address
Exchange [BETA]
getExchanges
List all exchanges
getList
List all supported markets id and name (no pagination required)
getExchange
Get exchange volume in BTC and top 100 tickers only
getTickers
Get exchange tickers (paginated)
getStatusUpdates
Get status updates for a given exchange (beta)
getVolumeChart
Get volume_chart data for a given exchange (beta)
Finance [BETA]
getPlatforms
List all finance platforms
getProducts
List all finance products
Indexes [BETA]
getIndexes
List all market indexes
getIndex
Get market index by id
getList
List market indexes id and name
Derivatives [BETA]
getDerivatives
List all derivative tickers
getExchanges
List all derivative exchanges
getExchange
Show derivative exchange data
getExchangeList
List all derivative exchanges name and identifier
Status updates [BETA]
getStatusUpdates
List all status_updates with data (description, category, created_at, user, user_title and pin)
Events [BETA]
getEvents
Get events, paginated by 100
getCountries
Get list of event countries
getTypes
Get list of events types
Exchange rates [BETA]
getExchangeRates
Get BTC-to-Currency exchange rates
Global [BETA]
getGlobal
Get cryptocurrency global data
License
codenix-sv/coingecko-api
is released under the MIT License. See the bundled LICENSE for details.