> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trdrs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent prompts

> These prompts are meant to be copied into a coding agent with the target app open.

These prompts are meant to be copied into a coding agent with the target app open.

## Market data

```text theme={null}
Wire trdrs market data into this app.
Use TRDRS_API_BASE_URL and TRDRS_TENANT_KEY from server-side environment variables.
Call /api/market/config first, then implement symbols, symbol-info, history, quotes, and stream.
Do not put trdrs_sk_ values in browser code.
Link each helper to the matching API Reference operation.
```

## Trading

```text theme={null}
Wire trdrs trading actions into this app.
Every order intent must create one stable clientOrderId and reuse it across retries.
Handle 429 Retry-After, 423 risk_locked, and nullable broker money fields.
Add tests that prove retrying the same intent does not create a second intent.
```

## Connect

```text theme={null}
Wire trdrs Connect account registration for an operator.
Use TRDRS_PARTNER_KEY only on server-side calls to /api/partner/connect/accounts.
Never accept or send a trader password.
Show pending, linked, revoked, and expired registration states.
```

## Programmatic accounts

```text theme={null}
Automate trdrs Connect provisioning from our back office.
Use TRDRS_PARTNER_KEY server-side only.
Register each account with email and optional accountNumber and venueLogin.
Keep trader notification and credential delivery in our own customer onboarding process.
Reconcile by listing registrations before re-registering after a failure.
Revoke pending registrations when an account is reassigned.
Never touch or store a trader credential anywhere in the pipeline.
```
