Skip to main content

Overview

The Aster DEX Monitor tracks financial activity on the Aster DEX exchange. It supports two independent monitoring modes:
  • Portfolio mode — monitors the total USD value of an account’s holdings, requiring API credentials
  • Market mode — monitors the spot price of one or more assets using public endpoints, no credentials required
Each mode evaluates a flexible condition expression on every check. An alert is fired only when the condition evaluates to true.
To monitor both portfolio value and market prices simultaneously, create two separate detector instances — one in each mode.
All prices are sourced as {ASSET}USDT pairs from the Aster DEX public ticker endpoint. Assets without a USDT pair are skipped in portfolio valuation.

Monitoring Mode

Selects which data source and condition type to evaluate.

Portfolio Mode

API Key / API Secret

Credentials used to authenticate against the Aster DEX private account endpoint (/api/v1/account). Required only when monitoring_mode is portfolio. Requests are signed using HMAC SHA256 with a timestamp, following the Binance-compatible API signature scheme.

Portfolio Condition

A condition expression evaluated against the total account portfolio value in USD. An alert is sent when the condition is true. See the Condition Syntax section for the full list of supported expressions. Examples:

Mock Account Data (testing only)

Bypasses the /api/v1/account API call and uses a static JSON payload instead. Asset prices are still fetched from live public endpoints. Format:

Market Mode

Monitored Assets

A list of assets and per-asset conditions evaluated against the current spot price (in USDT). Each asset is checked independently. A separate alert is emitted for each asset whose condition is met. Examples:

Check Interval

Controls how often each monitor configuration is evaluated, in seconds. Each configuration can have its own independent interval, enabling different monitors to run at different frequencies.
  • Set to 3600 for hourly comparisons (price change over the last hour)
  • Set to 86400 for 24-hour comparisons (price change over the last day)
  • Minimum of 60 seconds is enforced to avoid API rate limits
On startup, each monitor initialises its comparison baseline from 24 hours ago to avoid flooding alerts on first run.

Condition Syntax

Both portfolio_condition and per-asset condition fields share the same expression syntax.

Operators

Value Modifiers

Modifiers can be combined: >> ++25% — alert once when the percentage increase exceeds 25%.

Once Operators (>> / <<)

The >> and << operators implement edge detection — the alert fires only on the transition from false to true. Once triggered, the condition must return to false before it can fire again. Use > / < if you want an alert every check while the condition holds.

Examples

Severity

Severity is automatically calculated based on the magnitude of the change. It is not a user-configurable field.

Portfolio mode

For absolute value conditions, severity is derived from the ratio of the current value to the threshold:

Market mode

If no previous price is available (first check), severity defaults to Medium (0.25).

Alert Types

Alert Metadata

asterex.portfolio.condition_met

asterex.market.condition_met