Skip to main content
PUT
/
api
/
risk-rules
Update risk rules
curl --request PUT \
  --url https://api.useblueprints.ai/api/risk-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "maxOrderSize": 123,
  "maxDailyLoss": 123,
  "maxOpenPositions": 123,
  "maxOrdersPerMinute": 123,
  "cooldownAfterLossSec": 123,
  "requireApprovalAbove": 123
}
'
{
  "maxOrderSize": 123,
  "maxDailyLoss": 123,
  "maxOpenPositions": 123,
  "maxOrdersPerMinute": 123,
  "cooldownAfterLossSec": 123,
  "requireApprovalAbove": 123
}
Use this endpoint to change account-wide safeguards such as max order size, daily loss, open positions, order rate, cooldowns, and approval thresholds. Review changes carefully before saving. These settings affect live trading controls for the authenticated account. API keys need risk:write.
curl https://api.useblueprints.ai/api/risk-rules \
  -X PUT \
  -H "Authorization: Bearer bp_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"maxOrderSize":100,"maxDailyLoss":250,"maxOpenPositions":5}'

Authorizations

Authorization
string
header
default:bp_YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
maxOrderSize
number
maxDailyLoss
number
maxOpenPositions
number
maxOrdersPerMinute
number
cooldownAfterLossSec
number
requireApprovalAbove
number

Response

Updated risk rules.

maxOrderSize
number
maxDailyLoss
number
maxOpenPositions
number
maxOrdersPerMinute
number
cooldownAfterLossSec
number
requireApprovalAbove
number