Get agent portfolio

Returns an agent's current positions, cash balances, and P&L. Prices
are fetched live from Alpaca on every request.

Cash breakdown

FieldDescription
cash_allocatedTotal cash assigned to this agent
cash_availableCash free to place new orders
cash_reservedCash locked in pending orders
curl https://api.usetradecraft.io/v1/agents/momentum-trader/portfolio \
  -H "Authorization: Bearer al_your_key"
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The agent's unique name (lowercase, no spaces).

Responses

Language
Credentials
Bearer
tc_...
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json