Set up FCM (push.freqdroid.com)

FreqTrade posts to a single endpoint at push.freqdroid.com. The relay encrypts each payload with your device's public key (X25519: a NaCl sealed box on Android, HPKE on iPhone) and forwards it to Google FCM (Android) or Apple's push service (iPhone). Your device decrypts and displays the notification — Google and Apple see only ciphertext, and the relay never logs payloads.

← Back to overview · Add the Python callback →

FreqTrade  →  POST  →  push.freqdroid.com  →  encrypt to your device's key  →  FCM (Android) / APNs (iPhone)  →  device

Android and iPhone. On iPhone the transport is called Push and goes through Apple’s push service instead of FCM; everything else on this page is the same. iPhone notifications arrive even when FreqDroid is closed: Apple delivers them with the placeholder text “New notification from your bot”, which the app replaces with your message on the phone.

Step 1 — Register in the app

  1. Open the app → hamburger menu → Settings → Notification Server.
  2. At the top, switch the transport to FCM (iPhone: Push).
  3. Tap Register & Save. The app generates a keypair (kept locally), uploads your push token (FCM’s, or Apple’s on iPhone) + public key to the relay, and the status changes to Registered.
  4. Tap Copy URL to put the webhook URL on your clipboard.
FCM notification settings

The URL is of the form:

https://push.freqdroid.com/v1/push/<deviceToken>

Treat the URL as a shared secret — anyone who knows it can post notifications to your device (they cannot read any of your trade data, only flood your notifications). Tap Unregister any time to invalidate it; tap Register & Save afterwards to get a fresh URL.

FreqDroid only registers with the relay when you pick FCM and tap Register & Save; nothing is sent to push.freqdroid.com before that.

How long the URL stays valid

Step 2 — Configure FreqTrade webhooks

Use format: json and include bot_name so the in-app notification list can group by bot. See the full event list and template tokens on the overview page.

Write bot_name as a literal, e.g. "bot_name": "MyBot". FreqTrade has no {bot_name} token, and a webhook with an unknown placeholder fails to format and is dropped without being sent. Likewise, use {order_rate} for the exit price, not {limit}.

Retries. retries and retry_delay make FreqTrade resend a message the relay couldn’t deliver right away (for example a 503 while Firebase is briefly down). Since FreqTrade 2026.10, webhooks are sent outside the bot loop, so a delay of a few seconds doesn’t slow trading; later notifications just wait their turn. On 2026.9 and older, each retry pauses the bot for retry_delay seconds, so keep it short (or drop retries) there.

"webhook": {
    "enabled": true,
    "url": "https://push.freqdroid.com/v1/push/PASTE_YOUR_DEVICE_TOKEN_HERE",
    "format": "json",
    "retries": 3,
    "retry_delay": 5,
    "allow_custom_messages": true,
    "entry": {
        "bot_name": "MyBot",
        "message": "Entry placed (#{trade_id})\n{direction} {pair} @ {open_rate:.6f} | stake {stake_amount:.2f} {stake_currency}"
    },
    "entry_fill": {
        "bot_name": "MyBot",
        "message": "Trade opened (#{trade_id})\n{pair} @ {open_rate:.6f} | stake {stake_amount:.2f} {stake_currency}"
    },
    "entry_cancel": {
        "bot_name": "MyBot",
        "message": "Entry cancelled (#{trade_id})\n{pair} entry order cancelled"
    },
    "exit": {
        "bot_name": "MyBot",
        "message": "Exit placed (#{trade_id})\n{pair} @ {order_rate:.6f}"
    },
    "exit_fill": {
        "bot_name": "MyBot",
        "message": "Trade closed (#{trade_id})\n{pair} | profit {profit_amount:.2f} {stake_currency} ({profit_ratio:.2%})"
    },
    "exit_cancel": {
        "bot_name": "MyBot",
        "message": "Exit cancelled (#{trade_id})\n{pair} exit order cancelled"
    },
    "protection_trigger": {
        "bot_name": "MyBot",
        "message": "Pair locked: {pair}\n{reason}\nLocked until {lock_end_time}"
    },
    "protection_trigger_global": {
        "bot_name": "MyBot",
        "message": "Protection triggered: {reason}\nAll pairs locked until {lock_end_time}"
    },
    "strategy_msg": {
        "bot_name": "MyBot",
        "message": "{msg}"
    },
    "status": {
        "bot_name": "MyBot",
        "message": "Status: {status}"
    },
    "startup": {
        "bot_name": "MyBot",
        "message": "{status}"
    },
    "warning": {
        "bot_name": "MyBot",
        "message": "Warning: {status}"
    },
    "exception": {
        "bot_name": "MyBot",
        "message": "Exception: {status}"
    },
    "liquidation_warning": {
        "bot_name": "MyBot",
        "type": "liquidation_warning",
        "message": "Liquidation warning (#{trade_id})\n{direction} {pair} {leverage}x @ {current_rate:.6f} | liquidation {liquidation_price:.6f}\n{remaining_ratio:.0%} of the margin distance left | {positions_at_risk}/{open_positions} positions at risk"
    }
}

liquidation_warning needs FreqTrade 2026.9+ and only fires for futures. The literal "type": "liquidation_warning" puts it on FreqDroid’s high-importance Liquidation warnings channel. See the overview for when FreqTrade sends it.

If you wire up the Python callback, drop entry_fill and exit_fill from this block — the callback emits richer messages via dp.send_msg(), and keeping the built-in fills would give you double notifications.

Field semantics — FreqDroid’s parser reads:

The examples above use bot_name + message because they’re the primary fields the parser looks for. status is also accepted as a body fallback if you prefer to keep parity with FreqTrade’s native field names.

Trade ID for tap-to-navigate — include (#{trade_id}) somewhere in the body so FreqDroid can route taps to the right trade.

Restart FreqTrade after editing config.json. Verify the path with curl using your copied URL:

curl -X POST "https://push.freqdroid.com/v1/push/<deviceToken>" \
  -H "Content-Type: application/json" \
  -d '{"bot_name":"Test","message":"Test entry (#1) BTC/USDT"}'

A notification should appear on the device within ~2 seconds. The relay returns {"status":"ok"} once it has handed the message to FCM.

Switching back to ntfy

Switch the transport segment to ntfy and tap Save. FreqDroid deletes the FCM registration when you switch away (you can also tap Unregister first), so the URL stops working and FreqTrade webhooks pointed at it will get {"detail":"unknown device token"}. If you switch back to FCM later you get a new URL. Update them to your ntfy URL — see the ntfy setup for the matching webhook block.


Troubleshooting

curl returns {"status":"ok"} but no notification appears

The relay successfully forwarded to FCM or Apple. On iPhone, check that notifications are allowed for FreqDroid in iOS Settings and that Focus isn’t holding them back. Most common cause on Android: an OEM battery manager blocked the background service. Try the curl test with the screen ON first; if it works that way, add FreqDroid to your phone’s battery whitelist or “auto-launch” list (Settings → Apps → FreqDroid → Battery → Unrestricted).

{"detail":"unknown device token"}

The URL is stale: you unregistered, switched away from FCM, or the device went unused for 365 days. Open the app, tap Register & Save if needed, and copy the current URL from Settings → Notification Server.

413 payload too large

The relay accepts webhook bodies up to 3000 bytes (about 2,900 on iPhone, where Apple’s limit includes the notification text). Shorten the message template, especially for strategy_msg messages built by a strategy.

429 too many pushes

The relay rate-limits each device URL. Wait for the Retry-After period; FreqTrade’s webhook retries / retry_delay settings can resend it for you, but a strategy that sends many messages in a burst should send fewer.

503 with a Retry-After header

Firebase was unreachable or rejected the message temporarily. The relay asks the sender to try again later; set "retries" (and a "retry_delay" of a few seconds) in the webhook block so FreqTrade resends it. See the retries note above for FreqTrade versions before 2026.10.

A notification sent as the bot stopped never arrived

From FreqTrade 2026.10, messages still waiting to be sent when the bot shuts down get about 10 seconds, then FreqTrade drops them. If the relay was slow or retrying at that moment, the last messages (such as the stop status) can be lost. Check freqtrade.log for “Could not call webhook url” or a “messages pending” warning.

Status reads “Failed”

Usually a network issue contacting push.freqdroid.com. Tap the button again to retry.

Tapping a notification doesn’t open the trade

The notification text must contain #<trade_id> (e.g. (#123)). Make sure your webhook templates include #{trade_id} — see the example above.