Discord Trading Bot — Alerts Direct to Channels
Poll /v1/indicator on a schedule, format a Discord embed, and POST to a webhook. Or use discord.js / discord.py for richer slash commands.
No credit card. $2.50 PAYG credit on sign up.
One Request. Instant Data.
import requests
WEBHOOK = "https://discord.com/api/webhooks/..."
data = requests.get(
"https://tickatlas.com/v1/indicator",
headers={"X-API-Key": "YOUR_API_KEY"},
params={"symbol": "EURUSD", "indicator": "RSI_14", "timeframe": "H1"}
).json()
if data["value"] < 30:
requests.post(WEBHOOK, json={"content": f"EURUSD RSI oversold: {data['value']:.1f}"}) Why Use TickAtlas?
Pre-Calculated, Sub-100ms
Indicator values are computed server-side on every new candle. Your app queries the result — no TA library, no candle history needed.
7 Timeframes
M1, M5, M15, M30, H1, H4, D1 — the same endpoint serves scalpers and position traders alike.
Forex, Crypto, Commodities
EURUSD, GBPUSD, XAUUSD, BTCUSD, USDJPY — data available for all symbols active on connected broker terminals.
Plug into any stack
- ChatGPT Custom GPTs
- Claude Tools
- Python / pandas
- Node.js
- Discord bots
- Slack webhooks
- n8n
- Zapier
- Google Sheets
How Does the Discord Bot Work?
There are two approaches: (1) Webhook-only — a simple script polls the TickAtlas API on a timer and uses Discord's Incoming Webhooks to post formatted messages to any channel. No Discord bot account needed. (2) Discord.js bot — a full Discord bot that responds to slash commands like /rsi EURUSD H1. Both approaches use the same TickAtlas REST API. We cover both in the code examples below.
Copy-Paste Ready Code
How to get a Discord Webhook URL
- Go to your Discord server → channel settings (gear icon)
- Click Integrations → Webhooks → New Webhook
- Give it a name (e.g., "ForexBot"), choose the channel
- Click "Copy Webhook URL" and paste it into the code above
What Your Discord Bot Can Alert On
RSI Overbought/Oversold
Alert your Discord channel when RSI crosses 70 (overbought) or 30 (oversold) on any symbol and timeframe combination.
MACD Crossovers
Detect when MACD line crosses above or below the signal line. Compare current vs previous call to identify the crossover bar in real time.
Hourly Market Summaries
Post a formatted embed every hour with RSI, MACD, ADX, and Bollinger Band status for your watchlist. Your server stays informed without manual checking.
Works with any polling scheduler
Frequently Asked Questions
Do I need a Discord bot account?
No. The webhook approach uses Discord's Incoming Webhooks feature — just a URL, no bot token needed. If you want slash commands or interactive features, you can build a full Discord bot using Discord.js or discord.py with the same TickAtlas API key.
How often should I poll the API to avoid rate limits?
The Starter plan allows 10K requests/day. If you check 5 symbols every 5 minutes during a 12-hour trading session, that's 5 × 12 × 12 = 720 requests/day — well within the limit. For higher frequency, upgrade to Pro.
Can I alert on multiple symbols?
Yes. Make separate API calls for each symbol in your loop. For example, check EURUSD, GBPUSD, XAUUSD, and USDJPY on every cycle. Each call is independent and fast (sub-100ms).
Can the bot send embed messages with charts?
Discord webhooks support rich embed messages with titles, fields, colors, and footers. You can format indicator data into a structured embed. For chart images, you would need to generate an image (e.g., with matplotlib) and attach it to the webhook POST.
Start Building in 5 Minutes
Sign up, grab your API key, make your first request.
Every new account gets $2.50 in free PAYG credits. No card required.