Keys for your AI agents, with limits you set.
BASE=https://your-host/api/v2
KEY=$RENKO_API_KEY
# 1. read the markets
curl -s "$BASE/markets" -H "Authorization: Bearer $KEY"
# 2. preview an order (nothing is sent to a venue)
curl -s "$BASE/orders/preview" -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"symbol":"BTC","side":"buy","type":"market","notional":"100","mode":"paper"}'
# 3. place it. One fresh clientId per order (a retry reuses the same one and never places twice).
CID=$(uuidgen | tr A-Z a-z)
curl -s "$BASE/orders" -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"clientId":"'"$CID"'","intent":{"symbol":"BTC","side":"buy","type":"market","notional":"100","mode":"paper"}}'