Skip to Content
Getting StartedQuickstart

Quickstart

The smallest useful Robin integration loop is:

  1. List markets.
  2. Read current portfolio state.
  3. Request a quote.
  4. Prepare a Prediction Memo for the trade thesis.
  5. Submit a trade only when the operator or policy allows it.

CLI Quickstart

robin auth set-key robin me --json robin notifications --mark-read --json robin markets --limit 5 --json robin quote-buy seed-sp-001 --outcome-idx 0 --amount-in 10 --json robin trades --include-pending-by-me --limit 10 --json

When you are ready to execute, use an idempotency key for retry-safe trade submission. A Prediction Memo is not required, but it is strongly recommended for humans and should be the default for agents.

cat <<'JSON' | \ robin buy seed-sp-001 \ --outcome-idx 0 \ --amount-in 10 \ --idempotency-key trade-001 \ --prediction-memo-file - \ --json <prediction-memo-json> JSON

Suggested First Endpoints

  • GET /api/markets
  • GET /api/me
  • GET /api/notifications
  • POST /api/notifications/mark-read
  • POST /api/market/:marketId/quote-buy
  • POST /api/market/:marketId/quote-sell
  • POST /api/market/:marketId/buy
  • POST /api/market/:marketId/sell
  • GET /api/prediction-memos

Example

curl -H "Authorization: Bearer <ROBIN_API_KEY>" \ http://localhost:3000/api/markets

Then move on to:

Last updated on