Skip to content

Commit

Permalink
[Community] add order side
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Jan 3, 2025
1 parent 2c14941 commit 963b2ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions octobot/community/models/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def format_orders(orders: list, exchange_name: str) -> list:
),
backend_enums.OrderKeys.QUANTITY.value: storage_order[trading_constants.STORAGE_ORIGIN_VALUE][
trading_enums.ExchangeConstantsOrderColumns.AMOUNT.value],
backend_enums.OrderKeys.SIDE.value: storage_order[trading_constants.STORAGE_ORIGIN_VALUE][
trading_enums.ExchangeConstantsOrderColumns.SIDE.value],
backend_enums.OrderKeys.EXCHANGE_ID.value: storage_order[trading_constants.STORAGE_ORIGIN_VALUE][
trading_enums.ExchangeConstantsOrderColumns.EXCHANGE_ID.value],
backend_enums.OrderKeys.CHAINED.value: format_orders(
Expand Down
1 change: 1 addition & 0 deletions octobot/community/supabase_backend/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class OrderKeys(enum.Enum):
SYMBOL = "symbol"
TYPE = "type"
CHAINED = "chained"
SIDE = "side"


class PositionKeys(enum.Enum):
Expand Down

0 comments on commit 963b2ea

Please sign in to comment.