Automatic redemption
Reconcile supported resolved binary positions as AGARA converts winning shares to collateral.
AGARA automatically redeems positions in supported resolved markets. You do not submit a transaction, sign a message, spend gas, or call a redemption endpoint.
Current support covers standalone binary AGARA markets. Neg-risk events are composed of binary member markets, but those member markets are not yet included in this flow.
What happens after resolution
When a supported market resolves:
- Resting orders are cancelled with the
MARKET_RESOLVEDreason. - AGARA waits for earlier fills and position operations to finish settling.
- A positive payout produces a
REDEEMportfolio activity with the winning token, shares, collateral amount, settlement transaction, and creation time. A position holding only losing shares can clear with no activity row. - Winning shares convert to collateral at one unit per share. Losing shares pay zero, and both outcome balances clear.
- The private account stream sends a
tokens_redeemedevent for that account change.
Processing starts after resolution is confirmed, but it has no fixed
completion time. Outstanding settlement or an in-flight account batch can
delay it. For a positive payout, the portfolio activity is the durable
redemption record. tokens_redeemed reports the later account change on the
live stream.
Reconcile your market-making state
Treat resolution as an asynchronous account change:
- Watch
market_resolvedon themarket_statusstream. - Process
order_cancelledevents carryingMARKET_RESOLVEDon the account stream. - On
tokens_redeemedfor the resolvedcondition_id, refetchPOST /trade/v1/portfolio/positions/listandGET /trade/v1/portfolio/summary. - For a positive payout, read
GET /trade/v1/portfolio/activitiesuntil theREDEEMrow appears. A zero-payout clearance has no required activity row. - Use the cleared position state and updated
cash_balance_microbefore sizing new orders.
The account stream is live-only. If you reconnect, receive sequence_reset, or
do not receive the redemption event, poll until the position rows clear. For a
positive payout, also wait for the REDEEM activity.
A redemption activity has this shape:
Frozen accounts and missing payouts
If your account is frozen when on-chain redemption completes, AGARA holds the
collateral credit until the account is unfrozen. The balance updates and
tokens_redeemed is sent after the freeze is removed.
For a supported standalone binary market, contact support if its position
remains after resolution and your earlier fills and account batches have
finished. Include the condition_id and your deposit-wallet address.
See Positions for split and merge operations, and Inventory for quoting with binary outcome tokens.