Skip to content

Traditional Brokers

ID: ibkr | Markets: Equities, options, futures, forex | API: Official TWS/Gateway API

IBKR requires a running TWS or IB Gateway instance. The agent connects via socket to the gateway.

ParameterTypeDefaultDescription
hoststring127.0.0.1TWS/Gateway hostname.
portstring4002Gateway port (4001=live, 4002=paper).
client_idstring1Unique client ID for this connection.
client.call_tool("connect_broker", broker_type="ibkr", connection_params={
"host": "127.0.0.1",
"port": "4002",
"client_id": "1",
})
Terminal window
curl -X POST https://agents.systemr.ai/v1/broker/connect \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"broker_type": "ibkr",
"connection_params": {
"host": "127.0.0.1",
"port": "4002",
"client_id": "1"
}
}'

ID: schwab | Markets: Equities, options | API: Official OAuth2 API

ParameterTypeDescription
app_keystringOAuth2 application key.
app_secretstringOAuth2 application secret.
callback_urlstringOAuth2 callback URL. Default: https://127.0.0.1:8182.
Terminal window
curl -X POST https://agents.systemr.ai/v1/broker/connect \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"broker_type": "schwab",
"connection_params": {
"app_key": "YOUR_APP_KEY",
"app_secret": "YOUR_APP_SECRET",
"callback_url": "https://127.0.0.1:8182"
}
}'

ID: alpaca | Markets: US equities, options, crypto | API: REST API (API-first broker)

ParameterTypeDefaultDescription
api_keystringRequiredAlpaca API key.
api_secretstringRequiredAlpaca API secret.
paperstring"true""true" for paper, "false" for live.
Terminal window
curl -X POST https://agents.systemr.ai/v1/broker/connect \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"broker_type": "alpaca",
"connection_params": {
"api_key": "PKXXXXXXXXXXXXXXXXXX",
"api_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"paper": "true"
}
}'

ID: tradier | Markets: US equities, options | API: Official REST API

ParameterTypeDefaultDescription
access_tokenstringRequiredTradier access token.
sandboxstring"false""true" for sandbox environment.
Terminal window
curl -X POST https://agents.systemr.ai/v1/broker/connect \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"broker_type": "tradier",
"connection_params": {
"access_token": "YOUR_ACCESS_TOKEN",
"sandbox": "false"
}
}'

ID: tastytrade | Markets: Equities, options, futures | API: Official API

ParameterTypeDescription
usernamestringTastytrade username.
passwordstringTastytrade password.
Terminal window
curl -X POST https://agents.systemr.ai/v1/broker/connect \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"broker_type": "tastytrade",
"connection_params": {
"username": "your_username",
"password": "your_password"
}
}'

ID: tradestation | Markets: Equities, options, futures | API: OAuth2 API

ParameterTypeDescription
client_idstringOAuth2 client ID.
client_secretstringOAuth2 client secret.
refresh_tokenstringOAuth2 refresh token.
Terminal window
curl -X POST https://agents.systemr.ai/v1/broker/connect \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"broker_type": "tradestation",
"connection_params": {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"refresh_token": "YOUR_REFRESH_TOKEN"
}
}'

ID: etrade | Markets: Equities, options | API: OAuth 1.0a (Morgan Stanley)

ParameterTypeDescription
consumer_keystringOAuth consumer key.
consumer_secretstringOAuth consumer secret.
oauth_tokenstringOAuth token.
oauth_token_secretstringOAuth token secret.
Terminal window
curl -X POST https://agents.systemr.ai/v1/broker/connect \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"broker_type": "etrade",
"connection_params": {
"consumer_key": "YOUR_CONSUMER_KEY",
"consumer_secret": "YOUR_CONSUMER_SECRET",
"oauth_token": "YOUR_OAUTH_TOKEN",
"oauth_token_secret": "YOUR_OAUTH_TOKEN_SECRET"
}
}'