> For the complete documentation index, see [llms.txt](https://docs.anchored.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anchored.finance/trading-api/readme.md).

# RWA API

Documentation for integrators using the **Anchored** RWA API to build stock trading, cash movement, and portfolio services.

Authenticate with API key + HMAC on every request. Choose **self-submit on-chain** or **One Click delegated** execution for orders, cash operations, and stock operations.

Current mainnet deployments are on Base, Monad, and Ethereum. Use `x-api-p: Anchored` for the Anchored product unless your API key is explicitly provisioned for another product context.

## Base URL

Production:

```
https://rwa-api.anchored.finance/rwa/trading
```

All paths start with `/api/v1`. Example:

```
GET https://rwa-api.anchored.finance/rwa/trading/api/v1/symbols
```

For HMAC authentication, the `URI` uses `/api/v1/...` only — no domain or `/rwa/trading` prefix.

## Live reference

| Resource         | URL                                                                |
| ---------------- | ------------------------------------------------------------------ |
| OpenAPI snapshot | `reference/openapi.snapshot.json` (refreshed 2026-07-03 from test) |
| Live OpenAPI     | `https://rwa-api.anchored.finance/rwa/trading/api-docs`            |

## Reader path

| Step | Topic                                          | Doc                                                                                                                                        |
| ---- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| 1    | Product and contract mental model              | [getting-started/product-and-contracts.md](/trading-api/getting-started/product-and-contracts.md)                                          |
| 2    | API integration playbook                       | [getting-started/trader-questions.md](/trading-api/getting-started/trader-questions.md)                                                    |
| 3    | Setup and response format                      | [getting-started/](https://github.com/AnchoredLabs/anchored-knowledge/tree/api-doc/anchored/02-products/rwa/api/getting-started/README.md) |
| 4    | API key and HMAC authentication                | [authenticate/](https://github.com/AnchoredLabs/anchored-knowledge/tree/api-doc/anchored/02-products/rwa/api/authenticate/README.md)       |
| 5    | Holdings and positions                         | [portfolio/](https://github.com/AnchoredLabs/anchored-knowledge/tree/api-doc/anchored/02-products/rwa/api/portfolio/README.md)             |
| 6    | Symbols, quotes, history                       | [market/](https://github.com/AnchoredLabs/anchored-knowledge/tree/api-doc/anchored/02-products/rwa/api/market/README.md)                   |
| 7    | Market and limit orders                        | [trading/](https://github.com/AnchoredLabs/anchored-knowledge/tree/api-doc/anchored/02-products/rwa/api/trading/README.md)                 |
| 8    | Cash deposits and withdrawals                  | [cash/](/trading-api/cash-operations/cash.md)                                                                                              |
| 9    | Stock deposits and withdrawals                 | [stock/](/trading-api/stock-operations/stock.md)                                                                                           |
| 10   | First API trade quickstart                     | [guides/quickstart-first-trade.md](/trading-api/guides/quickstart-first-trade.md)                                                          |
| 11   | End-to-end flows                               | [guides/](/trading-api/guides/guides.md)                                                                                                   |
| 12   | Demo code (Node.js + viem)                     | [guides/demo-code.md](/trading-api/guides/demo-code.md)                                                                                    |
| 13   | Status, troubleshooting, and production checks | [reference/](/trading-api/reference/reference.md)                                                                                          |

## Execution modes

| Mode        | Who signs on-chain         | Use when                                              |
| ----------- | -------------------------- | ----------------------------------------------------- |
| Self-submit | Your wallet or custodian   | You control private keys; call `/calldata` then `/tx` |
| One Click   | Server via delegated proxy | User signs EIP-712 once; call `/send` endpoints       |

See [guides/self-submit-on-chain.md](/trading-api/guides/self-submit-on-chain.md) and [guides/one-click-flow.md](/trading-api/guides/one-click-flow.md).

## Production Helpers

| Need                           | Doc                                                                                             |
| ------------------------------ | ----------------------------------------------------------------------------------------------- |
| Debug stuck requests or txs    | [reference/troubleshooting.md](/trading-api/reference/troubleshooting.md)                       |
| Interpret lifecycle states     | [reference/status-model.md](/trading-api/reference/status-model.md)                             |
| Map API endpoints to contracts | [reference/api-contract-map.md](/trading-api/reference/api-contract-map.md)                     |
| Choose chain/product context   | [reference/environments-and-chains.md](/trading-api/reference/environments-and-chains.md)       |
| Review sample responses        | [reference/sample-responses.md](/trading-api/reference/sample-responses.md)                     |
| Test before production         | [reference/integration-test-checklist.md](/trading-api/reference/integration-test-checklist.md) |
