Compare commits
1 Commits
833a4f1d1c
...
dc2e41e550
Author | SHA1 | Date |
---|---|---|
|
dc2e41e550 |
|
@ -141,10 +141,10 @@ async def max_pain_daemon(
|
||||||
vertical_line = InfiniteLine(
|
vertical_line = InfiniteLine(
|
||||||
pos=max_pain,
|
pos=max_pain,
|
||||||
angle=90,
|
angle=90,
|
||||||
pen=pg.mkPen(color='yellow', width=2, style=QtCore.Qt.PenStyle.DotLine),
|
pen=pg.mkPen(color='yellow', width=1, style=QtCore.Qt.PenStyle.DotLine),
|
||||||
label=f'Max pain: {max_pain:,.0f}',
|
label=f'Max pain: {max_pain:,.0f}',
|
||||||
labelOpts={
|
labelOpts={
|
||||||
'position': 0.8,
|
'position': 0.85,
|
||||||
'color': 'yellow',
|
'color': 'yellow',
|
||||||
'movable': True
|
'movable': True
|
||||||
}
|
}
|
||||||
|
@ -216,8 +216,8 @@ async def max_pain_daemon(
|
||||||
print('-----------------------------------------------')
|
print('-----------------------------------------------')
|
||||||
print(f'timestamp: {datetime.fromtimestamp(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']:,.0f}')
|
||||||
print(f'total intrinsic value: {max_pain['total_intrinsic_value']}')
|
print(f'total intrinsic value: {max_pain['total_intrinsic_value']:,.0f}')
|
||||||
print('-----------------------------------------------')
|
print('-----------------------------------------------')
|
||||||
|
|
||||||
# Process GUI events to keep the window responsive
|
# Process GUI events to keep the window responsive
|
||||||
|
|
Loading…
Reference in New Issue