Drop `Symbol.front_fqsn()` usage from chart, fsp and clearing stuff
parent
141d6ede9c
commit
04a2ccc42c
|
@ -300,10 +300,10 @@ class BrokerdError(Struct):
|
||||||
|
|
||||||
|
|
||||||
class BrokerdPosition(Struct):
|
class BrokerdPosition(Struct):
|
||||||
'''Position update event from brokerd.
|
'''
|
||||||
|
Position update event from brokerd.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
broker: str
|
broker: str
|
||||||
account: str
|
account: str
|
||||||
symbol: str
|
symbol: str
|
||||||
|
|
|
@ -544,7 +544,7 @@ async def trades_dialogue(
|
||||||
pp_msgs.append(BrokerdPosition(
|
pp_msgs.append(BrokerdPosition(
|
||||||
broker=broker,
|
broker=broker,
|
||||||
account='paper',
|
account='paper',
|
||||||
symbol=pos.symbol.front_fqsn(),
|
symbol=pos.symbol.fqme,
|
||||||
size=pos.size,
|
size=pos.size,
|
||||||
avg_price=pos.ppu,
|
avg_price=pos.ppu,
|
||||||
))
|
))
|
||||||
|
|
|
@ -104,7 +104,7 @@ async def fsp_compute(
|
||||||
disabled=True
|
disabled=True
|
||||||
)
|
)
|
||||||
|
|
||||||
fqsn = symbol.front_fqsn()
|
fqsn = symbol.fqme
|
||||||
out_stream = func(
|
out_stream = func(
|
||||||
|
|
||||||
# TODO: do we even need this if we do the feed api right?
|
# TODO: do we even need this if we do the feed api right?
|
||||||
|
|
|
@ -290,7 +290,7 @@ class GodWidget(QWidget):
|
||||||
symbol = self.rt_linked.symbol
|
symbol = self.rt_linked.symbol
|
||||||
if symbol is not None:
|
if symbol is not None:
|
||||||
self.window.setWindowTitle(
|
self.window.setWindowTitle(
|
||||||
f'{symbol.front_fqsn()} '
|
f'{symbol.fqme} '
|
||||||
f'tick:{symbol.tick_size}'
|
f'tick:{symbol.tick_size}'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue