Home > Software engineering >  fetch and decode coinmarketcap JSON data with PHP using file_get_contents
fetch and decode coinmarketcap JSON data with PHP using file_get_contents

Time:01-26

I want to display the current USDT Volume of upbit.

I have used coinmarketcap api for this. enter image description here

From this, we can see that spot_volume_usd is in this path: $JSON['data']['upbit']['spot_volume_usd'].

Test it this way:

$usdtvalue = $stats['data']['upbit']['spot_volume_usd'];
  •  Tags:  
  • Related