Error Handling
Last updated
Was this helpful?
All errors return a JSON body with an error field:
json
{
"error": "position account 7xKXtg... not found"
}200
Success
Request completed normally
400
Bad Request
Invalid pubkey format, invalid parameters, or configuration error
404
Not Found
Account or resource doesn't exist
429
Too Many Requests
Per-owner connection limit reached (5 per owner on streaming)
500
Internal Error
Server-side computation error
503
Service Unavailable
Global connection limit reached (10K) or required price data missing
Transaction builder and preview endpoints return 200 even when computation fails. Always check the err field before using response data.
json
Last updated
Was this helpful?
Was this helpful?
{
"newLeverage": "0",
"newEntryPrice": "0",
"err": "Target price not available"
}
