Skip to main content
These endpoints exist while the server’s AGENT_MODE is dry or live. With the agent off they return 404. They need no token.

Portfolio

weight is the share of the agent wallet now; target is the strategy. market is null for non-stock tokens (BNB, USDT, USD1, U).

Decisions

Newest first. Actions and statuses are explained in Decisions.

Preview

Runs the same rules for the time you give, against today’s balances and prices. Never trades. horizon is when the forecast window ends: the next open after the coming close.

Session

devMode: true means the agent refuses to trade. When the session ends, calls fail with code: "SESSION_EXPIRED" or "NOT_LOGGED_IN" until someone signs in again.

Strategy

targets takes symbols or token addresses; the weights must add up to 1. Only the card the agent refills may change it (403 otherwise).