event.order_id is already an int (#64)

In market.parse_fill_event, no need to cast event.order_id to int as it's already one.
Doing so raises an exception whenever I try to get fills, this fixes it.
This commit is contained in:
Moshe Malawach 2021-01-26 02:54:47 +01:00 committed by GitHub
parent 30fb5f47cd
commit b5335be638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class Market:
)
size = event.native_quantity_paid / self.state.base_spl_token_multiplier()
return t.FilledOrder(
order_id=int.from_bytes(event.order_id, "little"),
order_id=event.order_id,
side=side,
price=price,
size=size,