r/algorithmictrading • • Oct 27 '26

Brokers Broker with separate read-only and trading API credentials on one account, in paper too?

I'm building an automated trading system and want the broker, not my own code, to keep the parts that watch the account separate from the part that trades.

Requirements:

  1. One account, two API credentials. One is read-only (positions, balances, orders, fills); the other can trade.
  2. Enforced by the broker. The read-only credential is refused if it tries to trade, not just blocked by a client-side setting.
  3. Revocable separately. I can kill the trading credential instantly and the read-only one keeps working.
  4. Neither credential can change account settings or permissions, or move money. Only my own login can.
  5. The same behaviour in paper or sandbox as in live, so I can test it before using real money.

What I've found:

  • tastytrade sandbox: one OAuth app per user and one grant per app. A read-scoped token can be minted, but it dies with the trading grant.
  • IBKR: a secondary user with trading rights, plus a Flex Web Service token for reads, looks close. But Flex is reports-only and paper allows one username.

Has anyone got this working, on any broker? Which one, and does paper behave the same as live?

1 Upvotes

5 comments sorted by

1

u/MarkGarcia2008 Oct 27 '26

Why do you want this sort of permission structure…

1

u/gendered_nightmare Oct 28 '26 edited Oct 28 '26

basically, the thing placing orders is an AI agent, and I want its limits enforced somewhere it can't reach, not just in my own code. Same idea as separation of duties at a firm: the part that watches the account shouldn't be able to trade it, and if I pull the trading key in an emergency, I still want to see what's in the account and what's still working, and I want the reasoning and analysis to continue. Most retail setups trust their own script; I don't want to trust mine that much so that I can encourage emergent behavior from the AI within the enforced boundaries.

2

u/MarkGarcia2008 Oct 28 '26

I’m not sure if I would do this since it’s complex - but you can try and get a secondary user with limited rights (eg. View only) access to the platform and use that users keys.

1

u/Aggressive_Listen849 Oct 28 '26

MT4/MT5 has it natively: investor password reads only, master password trades, same account number. the server refuses orders in investor mode and you can reset the master password without touching the other.