Drop (missed) usage of `Symbol.from_fqsn()` in order mode
parent
765b8f8e5c
commit
83802e932a
|
@ -46,6 +46,7 @@ from ..clearing._client import (
|
||||||
)
|
)
|
||||||
from ._style import _font
|
from ._style import _font
|
||||||
from ..accounting._mktinfo import Symbol
|
from ..accounting._mktinfo import Symbol
|
||||||
|
from ..accounting import MktPair
|
||||||
from ..data.feed import (
|
from ..data.feed import (
|
||||||
Feed,
|
Feed,
|
||||||
Flume,
|
Flume,
|
||||||
|
@ -660,17 +661,17 @@ class OrderMode:
|
||||||
and src not in ('dark', 'paperboi')
|
and src not in ('dark', 'paperboi')
|
||||||
and src not in symbol
|
and src not in symbol
|
||||||
):
|
):
|
||||||
fqsn = symbol + '.' + src
|
fqme = symbol + '.' + src
|
||||||
brokername = src
|
brokername = src
|
||||||
else:
|
else:
|
||||||
fqsn = symbol
|
fqme = symbol
|
||||||
*head, brokername = fqsn.rsplit('.')
|
*head, brokername = fqme.rsplit('.')
|
||||||
|
|
||||||
# fill out complex fields
|
# fill out complex fields
|
||||||
order.oid = str(order.oid)
|
order.oid = str(order.oid)
|
||||||
order.brokers = [brokername]
|
order.brokers = [brokername]
|
||||||
order.symbol = Symbol.from_fqsn(
|
order.symbol = MktPair.from_fqme(
|
||||||
fqsn=fqsn,
|
fqme=fqme,
|
||||||
info={},
|
info={},
|
||||||
)
|
)
|
||||||
dialog = self.submit_order(
|
dialog = self.submit_order(
|
||||||
|
|
Loading…
Reference in New Issue