Guide
Do I use a paper or live Alpaca key with Nyria?
Use the key from the same environment as the section you pick in Nyria. A paper key works on paper only. A live key works on live only. Nyria connects Alpaca with an API key you generate yourself. Paper account numbers start with PA.
Official documentation
Pick the right Alpaca key in five steps
- 1
Choose the environment
Sign in at alpaca.markets and switch the dashboard to Paper or Live.
- 2
Generate the key
Open the API keys panel and select Generate New Keys.
- 3
Copy both values
Copy the API key ID and the secret key straight away.
- 4
Match the section
Open the Alpaca card in Nyria. Use the paper section for a paper key.
- 5
Check the account number
Nyria fills it in. Paper account numbers start with PA.
Why the two keys differ
- A paper key works on paper only.
- A live key works on live only.
- Switch the dashboard to Paper or Live before you generate keys.
Where each key goes in Nyria
- The Alpaca card has a paper section and a live section.
- Paste a paper key into the paper section.
- Paste a live key into the live section.
- Read the Authorize Nyria screen, then select Accept and continue.
If Alpaca refuses the pair
- Copy the key ID and secret again, with no trailing space.
- Check the key came from the environment you chose.
- Alpaca shows the secret when you generate the keys.
Moving from paper to live
- Switch the Alpaca dashboard to Live and generate a key.
- Paste it into the live section of the card.
- Run the strategy on Nyria Paper first. It's free.
Questions
- Can a paper key trade a live Alpaca account?
- No. A paper key works on paper only.
- Can a live key trade paper?
- No. A live key works on live only.
- How do I know it's a paper account?
- Paper account numbers start with PA. Nyria fills the number in.
- Where do I find the secret key?
- Alpaca shows it when you generate the keys. Copy it straight away.
- Can I test before using real money?
- Yes. Run the strategy on Nyria Paper first. It's free.
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 guideWhy does Nyria say Alpaca didn't accept these keys?
Alpaca refused the key ID and secret you pasted.
Read guideMore TradingView to Alpaca guides
Try a paper bot first
No card required. Paper is free. Live trading from $15 a month.