Skip to content

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. 1

    Choose the environment

    Sign in at alpaca.markets and switch the dashboard to Paper or Live.

  2. 2

    Generate the key

    Open the API keys panel and select Generate New Keys.

  3. 3

    Copy both values

    Copy the API key ID and the secret key straight away.

  4. 4

    Match the section

    Open the Alpaca card in Nyria. Use the paper section for a paper key.

  5. 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

More TradingView to Alpaca guides

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.