Degen & Friends
Documentation
Back
  • API
    • Keys and authentication
    • Accounts
    • Trading days
    • Payouts
    • Firms and your key
    • Errors and limits

Accounts

List, read, add and change your prop accounts; share them on your profile; archive and restore them.

An account is one of your accounts at a prop firm: an evaluation (a combine or challenge) or a funded account.

The account object

{
  "id": "8a432717-ea69-4f9f-98a7-130d6b54203d",
  "label": "TPT 50K combine",
  "firm": {
    "id": "3f0c9c2e-…",
    "name": "Take Profit Trader",
    "approved": true
  },
  "stage": "evaluation",
  "status": "active",
  "account_size": 50000,
  "profit_target": 3000,
  "drawdown_limit": 2000,
  "started_on": "2026-11-20",
  "ended_on": null,
  "archived": false,
  "archived_at": null,
  "sharing": { "is_public": true, "show_amounts": false },
  "figures": {
    "balance": 51450.5,
    "pnl": 1450.5,
    "pnl_pct": 2.9,
    "max_drawdown": 700,
    "max_drawdown_pct": 1.4,
    "current_drawdown": 0,
    "drawdown_used_pct": 0,
    "progress_pct": 48.4,
    "days_traded": 3,
    "win_days": 2,
    "first_trade_date": "2026-11-24",
    "last_trade_date": "2026-11-27",
    "payouts_count": 0,
    "payouts_total": 0
  },
  "curve": [
    { "date": "2026-11-24", "pnl_pct": 1.2 },
    { "date": "2026-11-25", "pnl_pct": -0.2 },
    { "date": "2026-11-27", "pnl_pct": 2.9 }
  ]
}

Fields you set

  • label: your name for it, up to 60 characters. Shown on your profile if you share the account.
  • firm: one of our approved firms (firm.id set, approved: true, and the firm's own name), or any other firm (firm.id null, the name you gave). approved turns false if a firm later leaves our list.
  • stage: evaluation or funded.
  • status: active, passed, failed or closed.
  • account_size: the starting balance, in dollars.
  • profit_target, drawdown_limit: optional, in dollars. The target an evaluation must reach and the most the firm lets it fall. They drive progress_pct and drawdown_used_pct.
  • started_on, ended_on: dates. ended_on is optional.

Sharing and archiving

  • sharing.is_public: shown on your public profile.
  • sharing.show_amounts: there, with dollar figures too. Without it the profile shows percentages only, and no dollar amount (not even the size) leaves our database.
  • archived, archived_at: see Archiving.

Figures (worked out from your days and payouts; you never send these)

  • balance: the last logged closing balance (the account size before any day is logged).
  • pnl, pnl_pct: profit or loss so far, in dollars and as a share of the account size. A payout counts as profit taken, not as a loss.
  • max_drawdown, max_drawdown_pct: the deepest fall below the account's running peak.
  • current_drawdown: how far it is below its peak now. drawdown_used_pct: that, as a share of drawdown_limit.
  • progress_pct: pnl as a share of profit_target.
  • days_traded, win_days: days logged, and days that closed up.
  • payouts_count, payouts_total: payouts logged.
  • curve: pnl_pct at each of the last 120 logged days, oldest first.

Figures that depend on something you haven't set are null (no profit_target, no progress_pct).

List accounts

GET /accounts

Your live accounts, active ones first. Add ?archived=true for archived accounts only, or ?archived=all for both.

curl "https://degenandfriends.com/api/v1/accounts?archived=all" \
  -H "Authorization: Bearer $DF_API_KEY"

Returns { "accounts": [ … ] }. Any key.

Get an account

GET /accounts/{id}

Returns { "account": { … } }. Any key. An id that isn't one of your accounts gets 404 not_found.

Add an account

POST /accounts. Read & write key.

curl -X POST https://degenandfriends.com/api/v1/accounts \
  -H "Authorization: Bearer $DF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "TPT 50K combine",
    "firm_id": "3f0c9c2e-…",
    "stage": "evaluation",
    "account_size": 50000,
    "profit_target": 3000,
    "drawdown_limit": 2000,
    "started_on": "2026-11-20"
  }'
  • Required: label, account_size, and either firm_id (from GET /firms) or firm_name (any other firm, up to 80 characters).
  • Optional: stage (default evaluation), status (default active), profit_target, drawdown_limit, started_on (default today, UTC), ended_on.
  • drawdown_limit can't be more than account_size; ended_on can't be before started_on.

Returns 201 with { "account": { … } }. New accounts are not shared.

You can have 100 live accounts, open or closed; archive one to make room (409 account_limit). Archived ones count towards a total of 1,000 (409 account_limit_total).

Change an account

PATCH /accounts/{id}. Read & write key.

Send only what changes:

curl -X PATCH https://degenandfriends.com/api/v1/accounts/$ID \
  -H "Authorization: Bearer $DF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "status": "passed", "ended_on": "2026-12-04" }'

Any of the fields from Add an account, plus:

  • is_public (true/false): share the account on your public profile. Turning it on needs a handle: choose one on your profile page first (409 needs_handle).
  • show_amounts (true/false): show dollar figures there too. Only on a shared account; turning sharing off turns this off.
  • archived (true/false): archive or restore it.

Returns { "account": { … } } as it is now.

Archiving

Accounts are never deleted: you archive them.

  • PATCH /accounts/{id} with { "archived": true } archives an account. It leaves your live accounts and your public profile, its sharing is switched off, and it becomes read-only: no changes, no new days or payouts. Its history stays.
  • { "archived": false } restores it. It counts towards your 100 live accounts again, and stays unshared until you share it again.

Changing an archived account (other than restoring it) gets 409 account_archived. You can restore and change an account in one request; archiving in the same request as other changes applies those first.