Drop (missed) usage of `Symbol.from_fqsn()` in order mode

rekt_pps
Tyler Goodlet 2023-04-19 13:58:38 -04:00
parent 765b8f8e5c
commit 83802e932a
1 changed files with 6 additions and 5 deletions

View File

@ -46,6 +46,7 @@ from ..clearing._client import (
)
from ._style import _font
from ..accounting._mktinfo import Symbol
from ..accounting import MktPair
from ..data.feed import (
Feed,
Flume,
@ -660,17 +661,17 @@ class OrderMode:
and src not in ('dark', 'paperboi')
and src not in symbol
):
fqsn = symbol + '.' + src
fqme = symbol + '.' + src
brokername = src
else:
fqsn = symbol
*head, brokername = fqsn.rsplit('.')
fqme = symbol
*head, brokername = fqme.rsplit('.')
# fill out complex fields
order.oid = str(order.oid)
order.brokers = [brokername]
order.symbol = Symbol.from_fqsn(
fqsn=fqsn,
order.symbol = MktPair.from_fqme(
fqme=fqme,
info={},
)
dialog = self.submit_order(