datetime for humans
parent
3295303e37
commit
f26a42e76f
|
@ -4,6 +4,7 @@ from decimal import (
|
|||
)
|
||||
import trio
|
||||
import tractor
|
||||
from datetime import datetime
|
||||
from pprint import pformat
|
||||
from piker.brokers.deribit.api import (
|
||||
get_client,
|
||||
|
@ -101,7 +102,7 @@ async def max_pain_daemon(
|
|||
if check_if_complete(oi_by_strikes):
|
||||
max_pain = get_max_pain(oi_by_strikes)
|
||||
print('-----------------------------------------------')
|
||||
print(f'timestamp: {max_pain['timestamp']}')
|
||||
print(f'timestamp: {datetime.fromtimestamp(max_pain['timestamp'])}')
|
||||
print(f'expiry_date: {max_pain['expiry_date']}')
|
||||
print(f'max_pain: {max_pain['max_pain']}')
|
||||
print(f'total intrinsic value: {max_pain['total_intrinsic_value']}')
|
||||
|
|
Loading…
Reference in New Issue