-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstat_view.py
More file actions
24 lines (20 loc) · 750 Bytes
/
stat_view.py
File metadata and controls
24 lines (20 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import upbit
import stat_store as StatStore
def balance_view():
print(f'**** cash balance: {upbit.getCashBalance()} WON')
print(f'**** coin balance: {upbit.getCoinBalance()} BTC')
def returnView():
print(
f'**** getRateOfReturn: {" - " if upbit.getCoinBalance() == 0 else f"{StatStore.getRateOfReturn()} %"}'
)
print(
f'**** profit: {" - " if upbit.getCoinBalance() == 0 else f"{StatStore.getProfit()} WON"}'
)
def show():
print("*****************************************************************")
print("****")
# balance_view()
# returnView()
print('거래 불가입니다.')
print("****")
print("*****************************************************************")