Hello!
I am a very beginner, but I understand the world of PHP script. I already have my Binance API Key and Secret Key. By definition, I don’t share these. I’m just a beginner, but I’m not that stupid
My question is the following:
I manage PHP codes in the content of posts and pages in the WordPress CMS with the PHPCode Snippets solution.
Can you tell me how to get a list of top 100 cryptocurrencies by market cap? Please provide a PHP code that contains the location of your Binance API key and secret key. I would need a complete source code, which if I put it in the mentioned PHPCode Snippets, I could easily use it with a simple [shortcode] call.
Or is it not that simple? Would WordPress need something else for this?
The code sorts the cryptocurrencies by their 24-hour trading volume, not by market cap, as the Binance API doesn’t directly provide market cap data.
This code uses PHP’s curl functions for HTTP requests. Ensure your server supports curl and it supports executing PHP code through snippets.