Hello world!

Cryptocurrency 5

김프 값 구하기(Python)

김프란 김치 프리미엄의 줄임말로써 해외거래소와 한국거래소의 시세차이를 뜻합니다. import requests from bs4 import BeautifulSoup import ccxt #get dollar value url = 'https://coinmarketcap.com/ko/currencies/tether' response = requests.get(url) soup = BeautifulSoup(response.content, 'html.parser') select = soup.select('#__next > div.bywovg-1.fUzJes > div.main-content > div.sc-57oli2-0.comDeo.cmc-body-wrapper > div > div.sc-16r8icm-0.e..

Cryptocurrency 2022.04.16

Hash rate(Python)

해시레이트(hashrate)란 연산 처리능력을 측정하는 단위로 해시 속도를 의미한다. 작업증명(PoW) 합의 알고리즘을 사용하는 모든 암호화폐에서 나타나며, 일반적으로 해시레이트가 높아져 연산량이 많아질 경우, 더 빠른 채굴이 이루어지기 때문에 채굴 난이도가 높아진다. (http://wiki.hash.kr/index.php/%ED%95%B4%EC%8B%9C%EB%A0%88%EC%9D%B4%ED%8A%B8) import requests url = 'https://blockchain.info/q/hashrate' html = requests.get(url) gigahash = int(html.text) terahash = round(gigahash/1000,2)/1000000 print(terahash) 1..

Cryptocurrency 2022.04.16

Fear and greed(Python)

탐욕과 공포는 주식 시장의 예측 불가능 성과 변동성을 유발하는 요인으로 이론화 된 두 개의 상반된 감정 상태와 효율적인 시장 가설과 일치하지 않는 비합리적인 시장 행동을 말합니다. 탐욕과 두려움은“금융 시장은 두 가지 강력한 감정, 즉 탐욕과 두려움에 의해 좌우됩니다.” 위키백과(영어) import requests url = 'https://api.alternative.me/fng/?limit=10000' response = requests.get(url) content_dict = response.json() print(content_dict) .... {'value': '71', 'value_classification': 'Greed', 'timestamp': '1518652800'}, {'value..

Cryptocurrency 2022.04.16