Skip to content
Signals/Custom Webhooks

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

FieldTypeRequiredDescription
tickerstringYesSymbol to trade (e.g., AAPL, BTC, SPY)
actionstringYesTrade action: buy, sell, BTO, STC, exit
quantitynumberNoNumber of shares/contracts (uses strategy default if omitted)
pricenumberNoLimit price for limit orders
strikenumberOptionsStrike price for options
expirystringOptionsExpiration date (YYYY-MM-DD)
typestringOptionsOption type: call or put

Ready to build your integration?

Create a strategy and get your unique webhook URL to start sending signals.