Quickstart
The smallest useful Robin integration loop is:
- List markets.
- Read current portfolio state.
- Request a quote.
- Prepare a Prediction Memo for the trade thesis.
- 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 --jsonWhen 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>
JSONSuggested First Endpoints
GET /api/marketsGET /api/meGET /api/notificationsPOST /api/notifications/mark-readPOST /api/market/:marketId/quote-buyPOST /api/market/:marketId/quote-sellPOST /api/market/:marketId/buyPOST /api/market/:marketId/sellGET /api/prediction-memos
Example
curl -H "Authorization: Bearer <ROBIN_API_KEY>" \
http://localhost:3000/api/marketsThen move on to:
Last updated on