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