프로젝트

일반

사용자정보

Actions

잔고조회

소스코드

import pyupbit

access_key = "" # 본인 key값
secret_key = "" # 본인 key값

upbit = pyupbit.Upbit(access_key, secret_key)
print(upbit.get_balances())

결과

[{'currency': 'KRW', 'balance': '150000.2', 'locked': '0', 'avg_buy_price': '0', 'avg_buy_price_modified': True, 'unit_currency': 'KRW'}, {'currency': 'BTC', 'balance': '0.00009524', 'locked': '0', 'avg_buy_price': '69722000', 'avg_buy_price_modified': False, 'unit_currency': 'KRW'}]

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