Skip to content

Commit

Permalink
Map OrderExecution enum to Order.TimeInForce enum correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-dydx committed Sep 19, 2023
1 parent 0913a5f commit 70b8f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v4-client-py/v4_client_py/clients/helpers/chain_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class OrderTimeInForce(Flag):
FOK = auto() # Fill or Kill

class OrderExecution(Flag):
DEFAULT = auto() # Default
DEFAULT = 0 # Default. Note proto enums start at 0, which is why this start at 0.
IOC = auto() # Immediate or Cancel
POST_ONLY = auto() # Post-only
FOK = auto() # Fill or Kill
Expand Down

0 comments on commit 70b8f5e

Please sign in to comment.