https://www.aionmarket.com/bvapi
Position lifecycle
Awaiting settlement
The market window has ended, but venue settlement is not final yet. Nothing to redeem at this stage.
Automated redemption loop
The current SDK exposesredeem() but does not expose a one-call auto_redeem() helper.
Recommended pattern: in your agent loop, detect redeemable candidates from briefing/positions and call redeem() per item.
- Python
Manual redeem
Use this when you need to redeem a specific market immediately.- curl
- Python
Build your own signing flow
If you are not using a higher-level wallet helper, handle redemption in three steps:1. Request unsigned redemption transaction
Call
POST /markets/redeem and store the unsigned tx payload.2. Sign and broadcast locally
Sign the payload with your wallet key in your own execution environment, then broadcast through your on-chain integration.
Gas requirements (Polymarket)
- Redemption is on-chain and requires Polygon gas.
- Keep enough gas token in the wallet used for redemption signing.
- If gas is insufficient, redemption will fail until the wallet is topped up.
Troubleshooting: why a position is still active
If the market end time passed but your position is still active, settlement may still be pending at venue level.Check settlement status first
Use briefing and positions together:- curl
- Python
Common errors
- Market not settled yet: wait and retry later.
- Wrong side: only the winning side has redeemable value.
- Already redeemed: treat as idempotent completion in your loop.
- Insufficient gas for on-chain redemption: top up and retry.
If settlement is taking too long
- Keep polling
GET /markets/briefingandGET /markets/current-positions. - Confirm the market is finalized on the venue side.
- If venue is settled but status still does not update, escalate with API logs and request IDs.
Next steps
Trading guide
Follow the full execution loop from discovery to exits.
Heartbeat pattern
Run periodic monitoring and action loops safely.
Place trade API
Review trade request structure and fill handling.
Wallet setup
Verify wallet credentials and live trading prerequisites.