Skip to content

Guide

What is a good crypto trading bot that lets you script your strategy?

Write the strategy as a Pine Script on TradingView or as a script in any language. Either one ends in an alert. Nyria receives it over a webhook or the REST API and places the order at your exchange with a key that can't withdraw.

Official documentation

Script a strategy into orders

  1. 1

    Write the strategy

    Use Pine Script on TradingView, or any code that can send an HTTP request.

  2. 2

    Make it send a message

    Fire an alert with a plain message, such as BUY BTCUSDT. Exit with Close BTCUSDT long.

  3. 3

    Create a Nyria strategy

    Choose Crypto, with TradingView, a webhook or the REST API as the source.

  4. 4

    Test on Nyria Paper

    Paper is free and fills at any hour. Fix the script before real money.

  5. 5

    Deploy on an exchange

    Connect a key that can trade but never withdraw. Deploy a bot with a budget per entry.

An alert from code

REST API, plain text

curl -X POST https://api.nyria.io/v1/alerts \
  -H "Authorization: Bearer YOUR_STRATEGY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"message": "BUY BTCUSDT"}'

Pine or any language

  • Pine alerts go to the strategy's webhook URL.
  • Code posts to the REST API.
  • Both take the same words.

What Nyria runs

  • Nyria doesn't run your script.
  • It places the orders your alerts ask for.
  • The bot sets the size from its budget per entry.

Limits to know

  • Each token allows 30 requests a minute.
  • The same alert twice in a row answers 409.

Questions

Can I script my strategy?
Yes. Script it in Pine or any language, and send its alerts to Nyria.
Does Nyria host my code?
No. Your code runs on your side.
Which language works?
Any language that can send an HTTP request or a TradingView alert.
Can I test the script first?
Yes. Run it against Nyria Paper. It's free.
Can the script withdraw funds?
No. Nyria has no feature that moves money.

Next

Try a paper bot first

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