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

# RWA API

Documentation for integrators using the **Synfutures** 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: Synfutures` for the Synfutures product unless your API key is explicitly provisioned for another product context.

## Base URL

Production:

```
https://base-api.synfutures.com/rwa/trading
```

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

```
GET https://base-api.synfutures.com/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://base-api.synfutures.com/rwa/trading/api-docs`             |

## Reader path

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

## Production Helpers

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.synfutures.com/rwa-trading-apis/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
