diff --git a/core/lib/market.py b/core/lib/market.py index 7c8da0e..dc56c42 100644 --- a/core/lib/market.py +++ b/core/lib/market.py @@ -97,7 +97,7 @@ def execute_strategy(callback, strategy): direction=direction, ) new_trade.save() - posted, info = new_trade.post() + info = new_trade.post() log.debug(f"Posted trade: {posted} - {info}") diff --git a/core/lib/schemas/alpaca_s.py b/core/lib/schemas/alpaca_s.py index 49955f9..89f7d8d 100644 --- a/core/lib/schemas/alpaca_s.py +++ b/core/lib/schemas/alpaca_s.py @@ -30,7 +30,7 @@ GetAllAssetsSchema = { [ { "id": "id", - "class": "class", + "class": "class_", "exchange": "exchange", "symbol": "symbol", "name": "name",