Guide
Which order types does Nyria send to Alpaca?
Nyria sends Alpaca market and limit orders, on paper and on live. Alpaca paper also takes stop orders on stocks and ETFs. A live account takes market and limit orders only. An alert the account can't take is refused.
Official documentation
Send an Alpaca order from an alert in five steps
- 1
Connect Alpaca
Open the Alpaca card on Integrations and add your keys.
- 2
Deploy a bot
Pick the Alpaca account when you deploy the bot.
- 3
Set the order type
Use market or limit in the alert's order_type key.
- 4
Add stops on paper
On Alpaca paper, add a stop price for stocks and ETFs.
- 5
Test on paper first
Send a test alert before you use a live account.
On paper and live
- Market orders, for entries and exits.
- Limit orders, for entries and exits.
- A flatten action cancels working orders, then closes.
- A spread goes as one order for all its legs.
Beyond market and limit
- Stop orders on stocks and ETFs.
- Stop loss and take-profit on stocks and ETFs, never crypto.
- On live, percent closes part of a spot crypto position.
Duration
- Stock orders take the strategy's Duration as set.
- Alpaca takes option orders as Day only.
- Crypto orders go as Good till canceled.
When an alert is refused
- Nyria refuses an alert the account can't take.
- Check the alert's keys against the docs table.
Questions
- Does Nyria send market orders to Alpaca?
- Yes. Market orders work on paper and live.
- Does Nyria send limit orders to Alpaca?
- Yes. Limit orders work on paper and live.
- Can I use stop orders on Alpaca?
- On Alpaca paper, yes, for stocks and ETFs. Not on a live account.
- Does Alpaca crypto take stop loss and take-profit?
- No. They work on stocks and ETFs only.
- Can I test before using real money?
- Yes. Run the strategy on Nyria Paper first.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to Alpaca.
- Step by step for one account: how to automate TradingView to Nyria Paper.
- Alpaca integration.
Guides
How to connect TradingView to Alpaca
One Alpaca API key, paper or live. A webhook URL turns alerts into orders.
Read guideAlpaca API TradingView setup
Where the Alpaca key goes and how a webhook becomes an order.
Read guideDoes Alpaca have an API?
Yes. Alpaca's Trading API uses a key ID and secret you generate.
Read guideDo I use a paper or live Alpaca key with Nyria?
A paper key works on paper only. A live key works on live only.
Read guideMore TradingView to Alpaca guides
Try a paper bot first
No card required. Paper is free. Live trading from $15 a month.