Is there a way to get the market cap or market cap rank of a coin using the Binance API

0 votes

I checked all the functions I can think of but I don't see anything for this in the Binance C# API: https://github.com/JKorf/Binance.Net

All I want is to list the coins I am showing in a list view in the order of their market cap rank, if possible.

Apr 4, 2022 in Blockchain by Rahul
• 9,680 points
2,947 views

1 answer to this question.

0 votes

This is how I did so:

https://www.binance.com/exchange-api/v2/public/asset-service/product/get-products

Get this endpoint. It is used for Binance SPA and does not mention in their documentation. Also, data is an array that contains all trading Binance pairs. For example:
 

"s":"BTCUSDT", "st":"TRADING", "b":"BTC", "q":"USDT", "ba":"฿", "a":"", "I":"0.00000100", "ts":"0.01", "an":"Bitcoin", "qn":"TetherUS", "o":"46915.84", "h":"47499.43", "l":"44961.09", "c":"46791.85", "v":"91500.82", "qv":"4248420233.17226301", "y":0, "as":91500.81462400, "pm":"FIAT", "pn":"FIAT", "cs":18620881, "tags":["pow","mining-zone"], "pom":false, "pomt":null, "etf":false

You need to take the field cs and multiply it by the current asset price. In this case, it will be field c
Learn more about Blockchain and its concepts from the  Blockchain technology courses.

18620881 * 46791.85 = 871,305M

answered Apr 6, 2022 by Aditya
• 7,680 points

Related Questions In Blockchain

0 votes
1 answer

Get specific JSON data value using array from Coin Market Cap API

use inArray function. example: $.getJSON("//api.coinmarketcap.com/v1/ticker/?limit=0", function(data) { ...READ MORE

answered Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
1,838 views
+1 vote
1 answer

How does a miner get to know that a transaction is verified by all the nodes?

Contrary to the popular belief, it is ...READ MORE

answered Mar 27, 2018 in Blockchain by Johnathon
• 9,090 points
2,840 views
+1 vote
1 answer

I would like to create a blockchain network which will stay at the same level of complexity, is it possible?

You can very easily create a cryptocurrency having a ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
851 views
0 votes
1 answer
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,434 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,927 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,455 views
0 votes
1 answer
0 votes
1 answer

Is it possible to get wallet balance passing the wallet address on any cryptocurrency?

For Ethereum the API is called web3.eth.getBalance. There ...READ MORE

answered Apr 7, 2022 in Blockchain by Aditya
• 7,680 points
957 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP