Hello Gainium Support,
I am currently integrating with the Gainium cloud API using API keys (token, time, signature) as described in your documentation. Endpoints such as /api/deals work correctly with HMAC authentication.
However, when attempting to query backtest data via the GraphQL endpoint (/graphql, query getBacktests), the request fails with the error:
{ "errors": [ { "message": "Session is expired, please login again" } ] }
This indicates that the GraphQL API requires a valid web session (cookie-based), which is not available when authenticating via API keys.
For automation and quantitative analysis purposes, I would like to request one of the following:
-
A REST endpoint (e.g.
/api/backtests) to list and retrieve backtest results, similar to how/api/dealsworks, authenticated with API keys. -
Alternatively, a documented way to programmatically authenticate (e.g.
/api/auth/login) to obtain a session cookie that can be used with/graphqlqueries.
Having access to backtest data programmatically is critical for:
-
Running large-scale historical analyses across many pairs/strategies.
-
Exporting backtest performance metrics (PnL, deals, win rate, etc.) into external monitoring systems.
-
Automating workflows (e.g. launching backtests, retrieving results, and comparing them).
Could you please confirm whether such an endpoint already exists, or if you plan to expose backtest access via API? If possible, a timeline or recommended approach would be greatly appreciated.
Thank you for your support.
Best regards,
Andrea.