Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic usage example #2

Open
grambas opened this issue Jan 29, 2018 · 1 comment
Open

Basic usage example #2

grambas opened this issue Jan 29, 2018 · 1 comment

Comments

@grambas
Copy link
Contributor

grambas commented Jan 29, 2018

Can you add basic usage example?

@adman9000
Copy link
Owner

adman9000 commented Feb 2, 2018

There's not a great deal to it tbh, if you've followed the setup instructions on the readme then you just need to add the following lines to whichever file you want & you'll get a dump of all the cms markets. Obv loop through the markets array & do with it what you wish!

//include CMC
use adman9000\coinmarketcap\CoinmarketcapAPIFacade;

//Get latest markets for everything on CMC, including the prices in GBP
$markets = CoinmarketcapAPIFacade::getTickers(0, 0, "GBP");

//Dump & die
dd($markets);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants