Skip to content
Portfolio
  1. REST reference
  2. Model outputs
  3. Portfolio

Get the model allocation

GET/public/v1/portfolio/allocation

The allocation cached with the latest market snapshot. When there is none you get the same keys, empty, and meta.available false.

PremiumAnnualLifetimeModel output · reference

Model output · reference only. This route returns TradeEasy model scores, probabilities or levels. Its fields are documented by name and type; the docs show no sample values. Educational research, not investment advice.

Request

curl "https://api.tradeeasyai.net/public/v1/portfolio/allocation" \
  -H "X-API-Key: $TRADEEASY_API_KEY"

Response shape · reference only

Field names and types; no sample values.

200 · application/json
{
  "success": true,
  "data": {
    "allocations": [ … ]
  },
  "meta": { "timestamp": "<string>", "request_id": "<string>" }
}

Parameters#

No parameters.

Response fields#

  • allocations[]array

    category, weight_pct and detail.

  • total_weight_pct · strategy · risk_profile · generated_atmixed

    Model outputs.

  • meta.availableboolean

    False when nothing is cached.

Errors#

  • 401detail

    Missing, invalid or revoked key, or a locked account. FastAPI {"detail": …} body, not the envelope.

  • 403detail

    The plan does not include the REST API, or the subscription is not active.

  • 429RATE_LIMIT_EXCEEDED

    Per-key minute or day bucket spent. Honour Retry-After.

  • 503DATA_UNAVAILABLE

    The analysis cache is unavailable. Retry.