Developers / Integration guide

From portfolio data
to a reviewed result.

Prepare the input, submit a job to the job API, and review the returned weights and run record in your own workflow.

01 / Before you begin

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.

02 / Check the connection

Check the service.

Every request goes to one base URL. With a key, start at the capabilities endpoint.

Base URL
https://asymmetrycomputing.com/api/prism
Shell
curl https://asymmetrycomputing.com/api/prism/v1/capabilities \
  -H "X-API-Key: $KEY"
03 / Authenticate

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.

Header
X-API-Key: YOUR_API_KEY

See authentication in the reference for the access process.

04 / Define the workload

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.

05 / Submit and retrieve

Submit, poll, retrieve.

  1. Prepare the data. Use a demonstration dataset, or upload your own through the dataset endpoint.
  2. Submit the job. Send the task and its parameters to POST /v1/jobs and keep the returned job identifier.
  3. Check its status. Poll GET /v1/jobs/{id} and handle the queued, running, completed and failed states.
  4. Retrieve the result. When the job completes, fetch /v1/jobs/{id}/result and, when available, the matching /weights output.

Open the request examples

06 / Review the output

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.

07 / Handle failures

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.

Read the limits and errors reference

Run it on your own book.

Start with a trial key, or request a pilot on your universe, constraints, costs and tax rules, with a pass/fail metric agreed before we start.