API Reference PolymarketNotify v#0.1.0

Copy Markdown View Source

Modules

Notification controls + channels for the Polymarket bot.

Behaviour for a delivery channel — deliver/2 ships a plain-text message somewhere and returns :ok or {:error, reason}. May raise; PolymarketNotify.notify/3 isolates callers from that.

The notification control model — what the user wants to see and where, as per-category defaults plus per-strategy overrides. Pure data

Discord channel — POSTs %{"content" => message} to a Discord webhook URL (:webhook_url, or {:system, "VAR"}). :http injectable like Telegram. No url ⇒ {:error, :not_configured}.

Channel that logs the message (default-safe, zero-config).

Fan-out channel: deliver to several {channel, opts} targets. One target failing/raising never stops the others; :ok if any succeeds, else the last error.

Telegram channel — posts message to a chat via sendMessage.

Generic webhook channel — POSTs %{"text" => message} (+ any :extra) as JSON to :url. :http injectable.