9
Follow
4
Followers
Coinmarketcap에서 저렴한 100배 코인을 찾고 계신가요?
Created 2022-11-30 06:40:43 Updated 2022-11-30 09:27:56
5
1337
참고로, 엔터테인먼트 성질이 크다.
coinmarket의 통화와 순위에 따라 0.00001USD 이하의 가격과 24시간 거래 가치가 10000USD 이상인 거래 품종
파이썬 코드는 다음과 같습니다.
python
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)
위와 같이, 프록시를 설정하지 않고도 삭제할 수 있는 코드입니다.
감사합니다.
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)MyLanguage DocFMZ PINE Script DocNotes & Explanation of Futures Reverse Doubling Algorithm StrategySolutions to Obtaining Docker Http Request Message

