Merge pull request #309 from pikers/no_orderid_in_error

Allow `None` for `BrokerdError.reqid`
l1_precision_fix
goodboy 2022-05-09 11:08:33 -04:00 committed by GitHub
commit c849bb9c4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class BrokerdError(BaseModel):
# if no brokerd order request was actually submitted (eg. we errored
# at the ``pikerd`` layer) then there will be ``reqid`` allocated.
reqid: Union[int, str] = ''
reqid: Optional[Union[int, str]] = None
symbol: str
reason: str