Overview
This guide walks a full quote-to-execute flow: find an asset, quote a buy in USD, then accept the quote to place an order. Every call uses your Daya API key in theX-API-Key header.
Prerequisites: a Daya API key with
stocks:read and stocks:trade scopes. Issue keys in the Daya dashboard. See Authentication.Step 1: Find an asset
Search and sort the catalog. Thesort query ranks results (for example, trending or top movers).
Step 2: Request a quote
Quote a $100 buy ofAAPL. The response is a short-lived quote with an id and an expires_at; the fee and total are already computed.
Step 3: Accept the quote and place the order
Reference the quoteid to execute. Create and save one Idempotency-Key for this logical order before sending it. Reuse the same key for every retry.
Order placement is asynchronous. Do not allocate shares from the initial
pending response. Wait for an order.filled or order.failed webhook, or poll GET /orders/{id} for a terminal status.Quotes expire. If the quote
id is no longer valid, request a fresh quote and retry with a new logical-order idempotency key.Next steps
Concepts
How quotes, orders, and withdrawals fit together.
API Reference
Every Stocks endpoint with schemas and examples.