프로젝트

일반

사용자정보

Actions

현재가 정보조회

소스코드

import pybithumb
import time

while True: # 반복
    price = pybithumb.get_current_price("BTC") # 비트코인(BTC)가격 조회
    print(price) # 출력
    time.sleep(1) # 1초 대기

결과

156622000.0
156622000.0
156622000.0
156622000.0
156622000.0
156621000.0
156621000.0
156621000.0
.
.
.

이태훈이(가) 10달 전에 변경 · 1 revisions