Agents
Let an agent trade inside limits you set
A grant gives an AI agent authority over one Stock Token: what it may do, how much it may use, how far out it may write and until when. The market contract checks every call against the grant. Your funds never move to the agent.
What a grant can allow
| Permission | What the agent can use | Counts against |
|---|---|---|
| Write calls | Your Stock Tokens, as collateral | Token budget |
| Write puts | Your USDG, as collateral | USDG budget |
| Buy | Your USDG, as premium | USDG budget |
| Cancel | Nothing: collateral returns to you | — |
Collateral is pulled from your wallet, and premiums, refunds, positions and payouts always go to you. You approve the market for the tokens involved, as for your own orders.
The limits in a grant
Valid until
After this time the grant is dead and every agent call fails.
Maximum term
The agent cannot write an option that expires later than this from the moment it writes.
Minimum premium
Every offer the agent writes must ask at least this share of the strike value per lot.
Token budget
The most Stock Tokens the agent may lock as call collateral. Used up by writes; cancels do not refill it.
USDG budget
The most USDG the agent may lock as put collateral or pay as premium. Used up the same way.
One token per grant
A grant covers one Stock Token. A new grant for the same agent and token replaces the old one.
Revoke at any time
Revoking deletes the grant in one transaction, and the agent cannot act from the next block. Offers it already wrote stay yours: cancel their unfilled lots in the app, or let them run to expiry. Settlement and claims need no agent; anyone can settle an expired series, and payouts go only to the holder and the writer.
Every action is on the record
Each call an agent makes emits an event with the owner, the agent, the offer and the amount. The app's Agents page lists your grants, what each budget has left and every action taken for you.
Example: a monthly covered call
You hold 10 tokens and want a premium every month. Grant an agent Write calls and Cancel on that token, a token budget of 10, no USDG budget, a minimum premium of 1.5% of the strike value, a maximum term of 35 days and a validity of 90 days. Each month the agent cancels last month's unfilled lots and writes the next offer. It cannot buy, write puts or use more than the 10 tokens, and it stops when the grant expires or you revoke it.
Building an agent? See Developers for the SDK and the indexer API.