Skip to main content
GET
/
markets
/
briefing
Agent Briefing
curl --request GET \
  --url https://www.aionmarket.com/bvapi/markets/briefing \
  --header 'Authorization: Bearer <token>'
{
  "heartbeatAt": "2023-11-07T05:31:56Z",
  "riskAlerts": [
    {
      "type": "<string>",
      "severity": "<string>",
      "message": "<string>"
    }
  ],
  "opportunityMarkets": [
    {
      "id": "<string>",
      "title": "<string>",
      "slug": "<string>",
      "status": "<string>",
      "yesPrice": 123,
      "noPrice": 123,
      "volume": 123,
      "endDate": "2023-11-07T05:31:56Z"
    }
  ],
  "recommendedSkills": [
    "<string>"
  ]
}
Get a heartbeat snapshot for risk alerts, opportunity markets, and operator signals.

Overview

Use this endpoint as your periodic control-plane read before context checks and trade decisions.

Query parameters

ParameterTypeRequiredDefaultDescription
userstringNo-Wallet address or user identifier
sincestringNo-Incremental timestamp cursor
includeMarketsbooleanNotrueInclude opportunity markets
venuestringNopolymarketVenue selector

Examples

curl -X GET "https://www.aionmarket.com/bvapi/markets/briefing?user=0x1111...1111&includeMarkets=true" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "timestamp": "2026-04-17T10:30:00Z",
  "venue": "polymarket",
  "agent": {
    "aiAgentId": "6",
    "userId": "26"
  },
  "settings": {
    "maxTradesPerDay": 50,
    "maxTradeAmount": 100,
    "tradingPaused": false,
    "autoRedeemEnabled": true
  },
  "riskAlerts": ["Too many open orders, consider canceling stale open orders first."],
  "venues": {
    "polymarket": {
      "walletAddress": "0xaBcc12a8ed7faB38Ecbb36ecC1722172e1ca45A7",
      "openOrdersCount": 2,
      "currentPositionsCount": 5,
      "actions": ["Review and cancel stale open orders if needed."]
    }
  },
  "opportunities": {
    "recommendedSkills": [
      {
        "skillCode": "weather-skill-v1",
        "skillName": "Weather Trader",
        "description": "Weather market strategy"
      }
    ],
    "newMarkets": []
  },
  "recentTrades": []
}

Response Structure

  • riskAlerts: string array for risk or operational warnings
  • venues.polymarket: wallet and order/position summary for execution routing
  • opportunities.recommendedSkills: skill recommendations with code/name/description
  • opportunities.newMarkets: candidate market array (empty when includeMarkets=false)
  • recentTrades: latest local trades for this agent

Heartbeat usage pattern

Implement periodic polling with jitter and act on alerts first:
import random
import time
from aionmarket_sdk import AionMarketClient

client = AionMarketClient(api_key="YOUR_API_KEY", base_url="https://www.aionmarket.com/bvapi")

INTERVAL = 60

while True:
  briefing = client.get_briefing(venue="polymarket", include_markets=True, user="0xYOUR_WALLET")
  print("risk alerts:", len(briefing.get("riskAlerts", [])))
  print("opportunities:", len(briefing.get("opportunities", {}).get("newMarkets", [])))

  time.sleep(max(15, INTERVAL + random.randint(-8, 8)))

Common errors

CodeMeaning
401Invalid or missing API key
429Rate limited
500Server-side error

Best Practices

  1. Call Frequency: Every 30-60 seconds for active trading
  2. Use Incremental Updates: Set since parameter to get only changes
  3. Act on Alerts: Treat risk alerts with urgency
  4. Skill Discovery: Regularly check for recommended skills
  5. Cache Results: Store briefing data between calls for trend analysis
  • GET /agents/me - Full agent statistics
  • GET /markets/current-positions - Detailed position data
  • GET /markets/orders/open - Order details
  • POST /markets/trade - Place trades based on opportunities

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

user
string

Wallet address or user identifier

includeMarkets
boolean
default:true

Response

200 - application/json

Briefing payload

heartbeatAt
string<date-time>
riskAlerts
object[]
opportunityMarkets
object[]