Skip to content

Commit

Permalink
fix: correct trailing_percent_offset formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Oct 20, 2023
1 parent b7e440f commit 125d29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vega_sim/api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def _stop_order_from_proto(
price=num_from_padded_int(stop_order.price, decimal_spec.price_decimals)
if stop_order.price is not None
else None,
trailing_percent_offset=stop_order.trailing_percent_offset
trailing_percent_offset=float(stop_order.trailing_percent_offset)
if stop_order.trailing_percent_offset != ""
else None,
)
Expand Down

0 comments on commit 125d29e

Please sign in to comment.