Custom Webhooks
REST API Integration
Build custom integrations with Nyria using our REST API. Send trading signals from any platform that can make HTTP requests—Python scripts, custom bots, QuantConnect, or any other system.
REST APIJSON PayloadNo Rate Limits
webhook.py
import requests
webhook = "https://api.nyria.io/..."
requests.post(webhook, json={
"ticker": "AAPL",
"action": "buy",
"quantity": 10
})Why Custom Webhooks?
Universal Compatibility
Send alerts from any platform that can make HTTP POST requests. Python, Node.js, cURL, anything.
Instant Execution
Direct API access means no third-party delays. Your signals reach us immediately.
Secure by Default
Each strategy has a unique, cryptographically-secure webhook URL. No API keys to manage.
Code Examples
Python
import requests
webhook_url = "https://api.nyria.io/webhook/your-unique-id"
# Simple stock trade
requests.post(webhook_url, json={
"ticker": "AAPL",
"action": "buy",
"quantity": 10
})JavaScript
const webhookUrl = "https://api.nyria.io/webhook/your-unique-id";
// Options trade
await fetch(webhookUrl, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
ticker: "SPY",
action: "BTO",
strike: 450,
expiry: "2026-06-19",
type: "call"
})
});cURL
curl -X POST https://api.nyria.io/webhook/your-unique-id \
-H "Content-Type: application/json" \
-d '{"ticker": "BTC", "action": "buy", "price": 100000}'Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
| ticker | string | Yes | Symbol to trade (e.g., AAPL, BTC, SPY) |
| action | string | Yes | Trade action: buy, sell, BTO, STC, exit |
| quantity | number | No | Number of shares/contracts (uses strategy default if omitted) |
| price | number | No | Limit price for limit orders |
| strike | number | Options | Strike price for options |
| expiry | string | Options | Expiration date (YYYY-MM-DD) |
| type | string | Options | Option type: call or put |
Other Signal Sources
Ready to build your integration?
Create a strategy and get your unique webhook URL to start sending signals.