Skip to content

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

    Connect Alpaca

    Open the Alpaca card on Integrations and add your keys.

  2. 2

    Deploy a bot

    Pick the Alpaca account when you deploy the bot.

  3. 3

    Set the order type

    Use market or limit in the alert's order_type key.

  4. 4

    Add stops on paper

    On Alpaca paper, add a stop price for stocks and ETFs.

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

More TradingView to Alpaca guides

Try a paper bot first

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