You can get the best prices of cryptocurrency for long and short
composer require iamamirsalehi/cryptocurrency-price
- bitcoin
- tether
- ethereum
- ripple
- litecoin
- tron
- ethereum classic
- stellar
- binancecoin
- eos
- bitcoin cache
- cardano
- tezos
- chainlink
- monero
- dogecoin
This package get the best prices from arzex and in the next versions I'll customize it for you
If you want to get the long price of bitcoin you can use like this
<?php
$long_price = CryptoCurrencies::bitcoin()->long();
# codes
And for the short price
<?php
$short_price = CryptoCurrencies::bitcoin()->short();
# codes
or you can have both with just one call
<?php
$prices = CryptoCurrencies::bitcoin()->getLongAndShortPrices();
the method works like this, You can just call the cryptocurrency that you want then call the long or short method