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. Submit a trade only when the operator or policy allows it.

CLI Quickstart

robin auth set-key robin markets --limit 5 --json robin me --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:

robin buy seed-sp-001 --outcome-idx 0 --amount-in 10 --idempotency-key trade-001 --json

Suggested First Endpoints

  • GET /api/markets
  • GET /api/me
  • POST /api/market/:marketId/quote-buy
  • POST /api/market/:marketId/quote-sell
  • POST /api/market/:marketId/buy
  • POST /api/market/:marketId/sell

Example

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

Then move on to:

Last updated on