# Trading API

> Quote, place, monitor, cancel, and reconcile MyStocks master-account and sub-account orders.

The Trading API is the order and portfolio lane of the Partner API. It supports quote-gated market orders, resting order types, executions, portfolios, buying power, fractional cash-value investing, and order lifecycle events.

For analytics, use [Portfolio Performance](/partners/docs/portfolio-performance) for cash-flow-adjusted
daily P&L, linked time-weighted return, and optional benchmark comparison. `/portfolio/history` remains
the raw equity-snapshot surface.

<Cards>
  <Card title="Get started" href="/partners/docs/getting-started-trading">Place and monitor your first sandbox order.</Card>
  <Card title="Order lifecycles" href="/partners/docs/lifecycles">Understand pending, working, filled, rejected, and cancelled states.</Card>
  <Card title="Trading guide" href="/partners/docs/trading">Review quotes, order types, time-in-force, cancellation, and portfolios.</Card>
  <Card title="API Tester" href="/partners/docs/api-tester">Try quote, trade, order, and portfolio operations.</Card>
</Cards>

Trading writes require a fresh quote where specified, a valid idempotency key, and the required trading scope. See [Errors](/partners/docs/errors) and [Rate Limits](/partners/docs/rate-limits) before integrating retries.
