Automating workflows (e.g. launching backtests, retrieving results, and comparing them)

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:

  1. A REST endpoint (e.g. /api/backtests) to list and retrieve backtest results, similar to how /api/deals works, authenticated with API keys.

  2. Alternatively, a documented way to programmatically authenticate (e.g. /api/auth/login) to obtain a session cookie that can be used with /graphql queries.

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.

1 Like

I don’t think that we are meant to access the GraphQL API.

1 Like

Ok, so can you then include in the Backtest open source project Combo architecture, today there is DCA and Grid.

Thanks,

Andrea.

1 Like