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
Write the strategy
Use Pine Script on TradingView, or any code that can send an HTTP request.
- 2
Make it send a message
Fire an alert with a plain message, such as BUY BTCUSDT. Exit with Close BTCUSDT long.
- 3
Create a Nyria strategy
Choose Crypto, with TradingView, a webhook or the REST API as the source.
- 4
Test on Nyria Paper
Paper is free and fills at any hour. Fix the script before real money.
- 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
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate Webhook to Nyria Paper.
- Step by step for one account: how to automate TradingView to Nyria Paper.
- Alert tester.
Guides
Python webhook alerts to your broker
The webhook URL, the documented fields, a minimal requests sender, the response and the Logs tab, paper first.
Read guideWhat do Nyria REST API errors 401, 409 and 429 mean?
Each status code names its own fix.
Read guideHow do I convert a TradingView indicator to a strategy for Nyria?
Swap indicator() for strategy(), then use one Order fills only alert.
Read guideHow do I send trade alerts from my own code with a REST API?
POST /v1/alerts with a Bearer token. The reply carries an order_id you can poll.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.