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 6 in Blockchain by Soham
• 8,730 points
108 views

1 answer to this question.

0 votes

There is no "legal" way to get this data. This is how I do that:

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

GET this endpoint. It used for Binance SPA and does not mention in their documentation. 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

18620881 * 46791.85 = 871,305M


So this is the current BTC market cap

answered Apr 12 by Rahul
• 8,980 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,210 points
1,100 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
1,576 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
363 views
0 votes
1 answer

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

This is how I did so: https://www.binance.com/exchange-api/v2/public/asset-service/product/get-products Get this ...READ MORE

answered Apr 6 in Blockchain by Aditya
• 7,280 points
132 views
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
623 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
970 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP