Merge pull request #246 from pikers/msgpack_no_sets_allowed
Can't serialize a `set` on `msgpack` codecpane_sizing_fixes
commit
9fc95deab7
|
@ -389,7 +389,7 @@ async def handle_order_requests(
|
|||
account = request_msg['account']
|
||||
if account != 'paper':
|
||||
log.error(
|
||||
'This is a paper account, only a `paper` selection is valid'
|
||||
'On a paper account, only a `paper` selection is valid'
|
||||
)
|
||||
await ems_order_stream.send(BrokerdError(
|
||||
oid=request_msg['oid'],
|
||||
|
@ -450,6 +450,7 @@ async def trades_dialogue(
|
|||
loglevel: str = None,
|
||||
|
||||
) -> None:
|
||||
tractor.log.get_console_log(loglevel)
|
||||
|
||||
async with (
|
||||
|
||||
|
@ -462,8 +463,7 @@ async def trades_dialogue(
|
|||
):
|
||||
# TODO: load paper positions per broker from .toml config file
|
||||
# and pass as symbol to position data mapping: ``dict[str, dict]``
|
||||
# await ctx.started(all_positions)
|
||||
await ctx.started(({}, {'paper',}))
|
||||
await ctx.started(({}, ['paper']))
|
||||
|
||||
async with (
|
||||
ctx.open_stream() as ems_stream,
|
||||
|
|
Loading…
Reference in New Issue