Market data
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
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
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
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.