Start with a defined workflow.
Choose the portfolio problem, the input data and the criteria for accepting a result. Record constraints such as allocation bounds, turnover, tax budgets and account restrictions where the task supports them.
The API reference lists request fields, task types and response formats. Request a trial key before sending authenticated requests.
Check the service.
Every request goes to one base URL. With a key, start at the capabilities endpoint.
https://asymmetrycomputing.com/api/prism curl https://asymmetrycomputing.com/api/prism/v1/capabilities \
-H "X-API-Key: $KEY" Keep your key on the server.
Apart from /v1/access-requests, every route needs your key in the X-API-Key header. Store it in your server environment or secret manager, never in browser code, notebooks or source control.
X-API-Key: YOUR_API_KEYSee authentication in the reference for the access process.
Check the available capabilities.
Call GET /v1/capabilities to see supported task types and your key’s current limits. Judge account count, asset count, numerical quality and turnaround together on a representative workload.
The published benchmarks apply to their stated workload. Set acceptance criteria for your own data in the pilot.
Submit, poll, retrieve.
- Prepare the data. Use a demonstration dataset, or upload your own through the dataset endpoint.
- Submit the job. Send the task and its parameters to
POST /v1/jobsand keep the returned job identifier. - Check its status. Poll
GET /v1/jobs/{id}and handle the queued, running, completed and failed states. - Retrieve the result. When the job completes, fetch
/v1/jobs/{id}/resultand, when available, the matching/weightsoutput.
Validate the result in context.
Check the returned weights against the submitted constraints and your acceptance criteria. Review the run record and portfolio-level outcomes before anything moves downstream.
For tax-aware workflows, include holdings and lot data, and review proposed changes under your own investment and tax controls.
Make failure states explicit.
Handle authentication errors, input validation failures, service limits and job failures separately. Keep the job identifier for support, set a polling timeout, and check a job’s status before resubmitting.