From 963b2ea7642b07f585dd853a6c4ae1aeb6435a31 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Fri, 3 Jan 2025 18:32:25 +0100 Subject: [PATCH] [Community] add order side --- octobot/community/models/formatters.py | 2 ++ octobot/community/supabase_backend/enums.py | 1 + 2 files changed, 3 insertions(+) diff --git a/octobot/community/models/formatters.py b/octobot/community/models/formatters.py index 1d4ca52b2..e7bff3f88 100644 --- a/octobot/community/models/formatters.py +++ b/octobot/community/models/formatters.py @@ -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( diff --git a/octobot/community/supabase_backend/enums.py b/octobot/community/supabase_backend/enums.py index b6bc56230..2c7dcfa84 100644 --- a/octobot/community/supabase_backend/enums.py +++ b/octobot/community/supabase_backend/enums.py @@ -172,6 +172,7 @@ class OrderKeys(enum.Enum): SYMBOL = "symbol" TYPE = "type" CHAINED = "chained" + SIDE = "side" class PositionKeys(enum.Enum):