Trading APIs
Get a product
Returns details for a single product pointer.
GET
Returns details for a single product pointer.
product_ptr*stringProduct pointer in hex format (0x prefix optional)
Product details
application/json- response
A single product. GET /products/{product_ptr}.
product*curl -X GET 'https://testnet-api.scalar.market/products/string'Example Response
{
"product": {
"cycle_duration_secs": 0,
"initial_cycle_ts": 0,
"name": "string",
"params_list": [
"string"
],
"product_ptr": "string",
"pyth_price_ids": [
0
],
"settler_id": "string"
}
}Get position and margin GET
Returns the current position, margin, and outstanding order sizes for a user address and instrument. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.
Health check GET
Performs a live round trip through the trading chain — validator, matching engine, chain executor — and reports each hop. Returns 200 when every hop is healthy, 503 otherwise. Requires no authentication and exposes no configuration, addresses, or versions.