Quickstart
The smallest useful Robin integration loop is:
- List markets.
- Read current portfolio state.
- Request a quote.
- 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 --jsonWhen 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 --jsonSuggested First Endpoints
GET /api/marketsGET /api/mePOST /api/market/:marketId/quote-buyPOST /api/market/:marketId/quote-sellPOST /api/market/:marketId/buyPOST /api/market/:marketId/sell
Example
curl -H "Authorization: Bearer <ROBIN_API_KEY>" \
http://localhost:3000/api/marketsThen move on to:
Last updated on