Skip to content

Guide

How do I set buy or sell in a TrendSpider alert for Nyria?

TrendSpider has no variable for the trade direction or the quantity, so you type them in. Write buy as the action in the note of an entry alert and sell as the action in the note of an exit alert. Leave quantity out and your Nyria bot sizes the order. TrendSpider fills in the symbol and last price when the alert fires.

Official documentation

Write the buy and sell payloads in TrendSpider

  1. 1

    Open the alert

    In TrendSpider, open the alert you want to send to Nyria.

  2. 2

    Paste the entry payload

    In the note, paste symbol, action buy and price, using TrendSpider's own variables.

  3. 3

    Make the exit alert

    Copy the alert, then change the action from buy to sell.

  4. 4

    Leave quantity out

    Your Nyria bot sizes the order from its own settings.

  5. 5

    Send a test

    Select Send Test Alert and read how Nyria parsed it in the Logs tab.

What TrendSpider fills in

  • The alert symbol, the last price, the alert name and the note text.
  • On a Strategy Bot, the bot symbol and whether the bot is in a position.
  • It does not fill in a direction or a quantity.

What you type

  • buy on entry alerts and sell on exit alerts.
  • entry, exit, open and close also work.
  • Nothing for quantity, so the bot's own size is used.

Limit orders

  • Add order_type limit and a price.
  • The price field takes TrendSpider's last-trade price.
  • A limit order needs a price.

Questions

Why does the note have to be valid JSON?
TrendSpider sends the note as application/json only when it is valid JSON.
Does a sell alert open a short?
That depends on the strategy's trading behavior, which sets how exits pair with entries.
Can I set the size in the alert?
Leave it out. Your Nyria bot sizes every order from its own settings.
Where do I see what Nyria read?
On the strategy's Logs tab, which shows each alert and how it was read.

Next

Try a paper bot first

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