Skip to content

Commit

Permalink
Merge pull request #64 from vegaprotocol/fix_pos_decimal
Browse files Browse the repository at this point in the history
Fix the position decimal issue when posting market orders
  • Loading branch information
Jiajia-Cui authored Jun 16, 2022
2 parents d3cd43e + 4b9c254 commit 4d4a564
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vega_sim/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,7 @@ def submit_market_order(
time_in_force="TIME_IN_FORCE_FOK" if fill_or_kill else "TIME_IN_FORCE_IOC",
order_type="TYPE_MARKET",
side=side,
volume=num_to_padded_int(
volume,
self.market_pos_decimals[market_id],
),
volume=volume,
wait=wait,
order_ref=order_ref,
)
Expand Down

0 comments on commit 4d4a564

Please sign in to comment.