> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gains.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Backend Endpoint Refactor

> Backend endpoint refactor (Oct 2025): leaner trading-variables and the new open-trades endpoints.

Since October 27, 2025, in an effort to reduce the size of payloads returned, the `/trading-variables` endpoint omits `allTrades`. Use the endpoints below to fetch open trades and a leaner version of trading variables.\
\
**TLDR**:

* `GET /trading-variables` <sup>partially deprecated</sup>
  * Currently returns the `allTrades` property.
  * `allTrades` property was removed on 10/27/2025.
* `GET /trading-variables/all` <sup>new</sup>
  * Returns trading variables with an empty `allTrades` property.
  * Significantly reduces payload size and speeds up request time.
* `GET /open-trades/<?address>` <sup>new</sup>
  * Returns an array of open trades. Trade container types remain the same.
  * Replaces `allTrades` payload from deprecated `/trading-variables` endpoint.
  * *Optional:* provide an address to filter returned trades. Significantly reduces payload size.
    * Important: If provided, `address` **MUST** be checksummed.
