Quickstart
Go from zero to a working integration in under five minutes. This guide walks you through creating a robot token, defining an instrument type, and creating your first instrument — all from the command line.
Prerequisites
Before you start, you need two things:
app.ptolemy.cloudand create a workspace. You’ll be automatically assigned as the workspace Admin.ptk_live_ and authenticate on every request via the Authorization: Bearerheader. Unlike human users, robot users don’t use a login/refresh flow — the token is all you need.Step 1 — Set up your environment
Save your base URL, workspace ID, and token as variables so you can reuse them throughout this guide.
If everything’s wired up, you’ll get back an empty response:
Step 2 — Create an instrument type
Instrument types define the schema for a class of instruments. Let’s create an “Equity” type with custom fields for exchange, ISIN, currency, and sector.
Note that type_id accepts either a UUID or the type’s identifier string. Field values come back in extra_fields_snapshot on the response.
Step 3 — Create an instrument
Now create an instrument that belongs to the Equity type. Custom field values go in the field_values object. The currency field has a default so we can omit it.
Step 4 — Query with the filter API
For simple lookups, use query parameters on GET /instruments. For complex queries, use the POST-based filter API with nested conditions.
Next steps
You’ve created a schema, added an instrument, and queried it back. Here’s where to go from here: