fix: get_token_price checking wrong status code

The AVE API returns status: 1 for success, not status: 200.
This was causing get_token_price to always return None, resulting
in no signals being generated during simulation.
This commit is contained in:
shokollm
2026-04-11 17:45:59 +00:00
parent b111e4d79f
commit 726e579f5f

View File

@@ -115,7 +115,7 @@ class AveCloudClient:
)
response.raise_for_status()
data = response.json()
if data.get("status") == 200:
if data.get("status") == 1:
prices = data.get("data", {})
return prices.get(token_id)
return None