> For the complete documentation index, see [llms.txt](https://rwapact.gitbook.io/whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rwapact.gitbook.io/whitepaper/integrations-and-standards/robinhood-api.md).

# Robinhood API

## Proxy-based execution integration

The defined architecture places an RWAPACT proxy in front of a Robinhood API execution path. The proxy applies the Pact before it forwards a downstream trade request.

```
Agent → RWAPACT Proxy → Pact evaluation → Robinhood API
```

Robinhood API serves as the downstream execution interface. RWAPACT serves as risk and authorization middleware. This boundary ensures that an agent request does not directly become an execution request.

### Decision path

An autonomous agent may request a tokenized stock trade through the Robinhood API path. That request first reaches the RWAPACT proxy.

KRO evaluates RWA risk. KSO validates the agent session. KPV checks the trading policy. KGR evaluates gas and execution conditions. KAR records the decision.

When every required condition passes, the proxy can forward the request to Robinhood API. When any required condition fails, RWAPACT rejects the request before it reaches the downstream execution path.

### Execution-layer independence

The Pact retains the same responsibility when the downstream environment changes. It determines whether a proposed trade should proceed.

* **Uniswap v4** uses a hook at the swap boundary.
* **MCP** uses middleware at the tool-call boundary.
* **Robinhood API** uses a proxy before the trade request.

These integration forms differ by execution environment. The risk, session, policy, gas, and attestation logic remain part of the Pact.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://rwapact.gitbook.io/whitepaper/integrations-and-standards/robinhood-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
