diff --git a/octobot/community/models/formatters.py b/octobot/community/models/formatters.py index 092029c14..2b2cc681f 100644 --- a/octobot/community/models/formatters.py +++ b/octobot/community/models/formatters.py @@ -69,6 +69,7 @@ def format_positions(positions: list, exchange_name: str) -> list: backend_enums.PositionKeys.TIME.value: position[trading_enums.ExchangeConstantsPositionColumns.TIMESTAMP.value], backend_enums.PositionKeys.POSITION_ID.value: position[trading_enums.ExchangeConstantsPositionColumns.ID.value], # from trading positions + backend_enums.PositionKeys.LOCAL_ID.value: position[trading_enums.ExchangeConstantsPositionColumns.LOCAL_ID.value], backend_enums.PositionKeys.SYMBOL.value: position[trading_enums.ExchangeConstantsPositionColumns.SYMBOL.value], backend_enums.PositionKeys.STATUS.value: position[trading_enums.ExchangeConstantsPositionColumns.STATUS.value], backend_enums.PositionKeys.SIDE.value: position[trading_enums.ExchangeConstantsPositionColumns.SIDE.value], diff --git a/octobot/community/supabase_backend/enums.py b/octobot/community/supabase_backend/enums.py index c421db22c..bc4064576 100644 --- a/octobot/community/supabase_backend/enums.py +++ b/octobot/community/supabase_backend/enums.py @@ -182,6 +182,7 @@ class PositionKeys(enum.Enum): POSITION_ID = "position_id" # subset of octobot_trading.enums.ExchangeConstantsPositionColumns SYMBOL = "symbol" + LOCAL_ID = "local_id" ENTRY_PRICE = "entry_price" MARK_PRICE = "mark_price" LIQUIDATION_PRICE = "liquidation_price"