Transaction varieties with a price of less than 0.00001 USD and a transaction value of more than 10000 USD in 24 hours, according to coinmarket currency and ranking The specific Python code is as follows:
import requests
import json
url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest'
proxies = {
"http":"http://127.0.0.1:33210",
"https":"http://127.0.0.1:33210"
}
headers = {
'Accepts': 'application/json',
'X-CMC_PRO_API_KEY': '704576b8-8e1e-4ccb-9aa6-51990dab9fdb',
}
params = {
'start':'1',
'limit':'5000',
'convert':'USD'
}
try:
response = requests.get(url, params=params, headers=headers, proxies=proxies)
data = json.loads(response.text)
# df = pd.DataFrame(data['data'])
data = data['data']
for d in data:
if d['quote']['USD']['price'] < 0.00001 and d['quote']['USD']['volume_24h'] > 10000:
print(d['cmc_rank'], d['symbol'], "%.15f"%d['quote']['USD']['price'], d['quote']['USD']['volume_24h'], d['quote']['USD']['market_cap'])
except Exception as e:
print(e)
Above, you can remove proxy code without configuring an agent.
Thank you.
My father.That's a good idea.
dianwan99I've been searching for 24 hours and I feel like it should be over.
Inventors quantify - small dreamsThank you for sharing.
The Little SevenThank you very much.
The Little SevenThis interface seems to be a 24-hour volume only, and no other interface has been studied, so it can be changed.