Main clusters and core pages.
This guide explains how to connect Alpaca to AlgoWay, create or copy Alpaca API credentials, configure an Alpaca webhook inside AlgoWay, test the connection, and send TradingView alerts using the correct JSON format.
The setup has four main parts: get your Alpaca API key and secret, add them to AlgoWay, test the webhook, and configure your TradingView alert with the correct webhook URL and message body.
Log in to your Alpaca account and open the API section from the left-side menu. Alpaca provides separate API credentials for live trading and paper trading.
If you want to use demo trading first, use the credentials from the Paper Accounts section. For live trading, use the credentials from your live account section.
After generating new keys, Alpaca will show your Key and Secret. Copy both values before leaving the page.
The secret key may disappear after refreshing or navigating away from the page, so save it before continuing with the AlgoWay setup.
After your Alpaca API credentials are ready, log in to AlgoWay and create a webhook for Alpaca. This webhook will receive TradingView alerts and route them to your Alpaca account.
Fill in the webhook form with your Alpaca settings:
Then click Add Trial Webhook or create the selected paid webhook.
Before connecting TradingView, you can send a test webhook from AlgoWay to confirm that the Alpaca connection works.
AAPL or TSLA.Example test JSON:
{
"platform_name": "alpaca",
"symbol": "AAPL",
"order_action": "buy",
"order_contracts": 1
}
If you are using a TradingView Strategy, paste the following JSON into the alert message box. AlgoWay expects structured JSON, not plain text.
{
"platform_name": "alpaca",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}"
}
TradingView will automatically replace these placeholders with real strategy values when the alert is triggered:
{{ticker}} — chart ticker{{strategy.order.contracts}} — strategy order size{{strategy.market_position}} — current strategy position{{close}} — current close price
In the same TradingView alert window, open the Notifications tab, enable Webhook URL, and paste your AlgoWay webhook link.
Your webhook URL will look like this:
https://algoway.co/your-webhook-uuid
After adding the webhook URL, click Apply or Create to save the alert.
If you are using an indicator alert instead of a TradingView Strategy alert, you do not have to write the JSON manually.
For indicator-based alerts, use one of the tools available in the AlgoWay Dashboard menu:
This is useful when your indicator sends a custom text alert instead of strategy placeholders such as {{strategy.order.contracts}}.
To automate Alpaca through AlgoWay, you need three things: valid Alpaca API credentials, a properly configured Alpaca webhook in AlgoWay, and a correct TradingView alert with the AlgoWay webhook URL. Once these parts are set correctly, TradingView strategy alerts can be routed directly to Alpaca through AlgoWay.
Need help? Contact support via your AlgoWay dashboard.