create_trading_connection
Link a broker or exchange account using write-only credentials so an AI agent can trade while Pit Officer's limits check every order first.
Instructions
Create a trading connection with write-only credentials. The create is refused with loosening_refused, as a new connection widens what can be sent. Mutates Officer control-plane config; protected and disabled by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional connection id; omitted lets the store assign one | |
| mode | Yes | paper or live | |
| label | Yes | Display label for the trading connection | |
| enabled | Yes | Required: whether the trading connection is enabled | |
| provider | Yes | Trading provider type; e.g. alpaca, binance, ib or etoro | |
| credentials | Yes | Write-only provider credential object; Alpaca and Binance both use {apiKey, apiSecret} (Binance: an HMAC key pair); IB uses {host, port, clientId?}; eToro uses {apiKey, userKey} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes |