Skip to main content

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 the X-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. The sort query ranks results (for example, trending or top movers).
Response:

Step 2: Request a quote

Quote a $100 buy of AAPL. The response is a short-lived quote with an id and an expires_at; the fee and total are already computed.
Response:

Step 3: Accept the quote and place the order

Reference the quote id to execute. Create and save one Idempotency-Key for this logical order before sending it. Reuse the same key for every retry.
Response:
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.