Download the PHP package paneedesign/coinmarketcap-bundle without Composer
On this page you can find all versions of the php package paneedesign/coinmarketcap-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paneedesign/coinmarketcap-bundle
More information about paneedesign/coinmarketcap-bundle
Files in paneedesign/coinmarketcap-bundle
Package coinmarketcap-bundle
Short Description A Symfony Bundle for CoinMarketCap APIs
License MIT
Informations about the package coinmarketcap-bundle
CoinMarketCap for Symfony
A Symfony bundle for CoinMarketCap Professional API
NOTES: only FREE apis. Check features list here.
Install
Usage
Enable the bundle
Configure
Add your Api Key in your parameters.yml
Create client
Call APIs
Cryptocurrency
map
Returns a paginated list of all cryptocurrencies by CoinMarketCap ID. We recommend using this convenience endpoint to lookup and utilize our unique cryptocurrency id across all endpoints as typical identifiers like ticker symbols can match multiple cryptocurrencies and change over time. As a convenience you may pass a comma-separated list of cryptocurrency symbols as symbol to filter this list to only those you require.
Params:
- (string) listing_status - Default "active" - Only active coins are returned by default. Pass 'inactive' to get a list of coins that are no longer active. - Valid values: "active" "inactive".
- (integer >= 1) start - Default 1 - Optionally offset the start (1-based index) of the paginated list of items to return.
- (integer [1 .. 5000]) limit - Default 100 - Optionally specify the number of results to return. Use this parameter and the "start" parameter to determine your own pagination size.
- (string) symbol - Optionally pass a comma-separated list of cryptocurrency symbols to return CoinMarketCap IDs for. If this option is passed, other options will be ignored.
info
Returns all static metadata for one or more cryptocurrencies including name, symbol, logo, and its various registered URLs.
Params:
- (string) id - One or more comma-separated cryptocurrency CoinMarketCap IDs. Example: 1,2.
- (string) symbol - Alternatively pass one or more comma-separated cryptocurrency symbols. Example: "BTC,ETH". At least one "id" or "symbol" is required.
listings/latest
Get a paginated list of all cryptocurrencies with latest market data. You can configure this call to sort by market cap or another market ranking field. Use the "convert" option to return market values in multiple fiat and cryptocurrency conversions in the same call.
Params:
- (integer >= 1) start - Default 1 - Optionally offset the start (1-based index) of the paginated list of items to return.
- (integer [1 .. 5000]) limit - Default 100 - Optionally specify the number of results to return. Use this parameter and the "start" parameter to determine your own pagination size.
- (string) convert - Default "USD" - Optionally calculate market quotes in up to 32 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found here. Each conversion is returned in its own "quote" object.
- (string) sort - Default "market_cap" - What field to sort the list of cryptocurrencies by. - Valid values: "name" "symbol" "date_added" "market_cap" "price" "circulating_supply" "total_supply" "max_supply" "num_market_pairs" "volume_24h" "percent_change_1h" "percent_change_24h" "percent_change_7d".
- (string) sort_dir - The direction in which to order cryptocurrencies against the specified sort. - Valid values: "asc" "desc".
- (string) cryptocurrency_type - Default "all" - The type of cryptocurrency to include. - Valid values: "all" "coins" "tokens".
quotes/latest
Get the latest market quote for 1 or more cryptocurrencies. Use the "convert" option to return market values in multiple fiat and cryptocurrency conversions in the same call.
Params:
- (string) id - One or more comma-separated cryptocurrency CoinMarketCap IDs. Example: 1,2.
- (string) symbol - Alternatively pass one or more comma-separated cryptocurrency symbols. Example: "BTC,ETH". At least one "id" or "symbol" is required.
- (string) convert - Default "USD" - Optionally calculate market quotes in up to 32 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found here. Each conversion is returned in its own "quote" object.
GlobalMetrics
quotes/latest
Get the latest quote of aggregate market metrics. Use the "convert" option to return market values in multiple fiat and cryptocurrency conversions in the same call.
Params:
- (string) convert - OPTIONAL - default "USD" - Optionally calculate market quotes in up to 32 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found here. Each conversion is returned in its own "quote" object.