Mayson Monorepo Documentation
    Preparing search index...

    Interface IPriceAlert

    Price Alert for monitoring asset prices

    interface IPriceAlert {
        _id?: string;
        userId: string;
        symbol: string;
        targetPrice: number;
        direction: AlertDirection;
        notificationType: AlertNotificationType;
        status: AlertStatus;
        priceAtCreation?: number;
        triggeredAt?: Date;
        triggeredPrice?: number;
        createdAt: Date;
        updatedAt: Date;
    }
    Index

    Properties

    _id?: string
    userId: string

    User ID

    symbol: string

    Asset symbol (e.g., "BTC", "ETH")

    targetPrice: number

    Target price to monitor

    direction: AlertDirection

    Direction: alert when price goes above or below

    notificationType: AlertNotificationType

    How to notify the user

    status: AlertStatus

    Alert status

    priceAtCreation?: number

    Price when alert was created

    triggeredAt?: Date

    When the alert was triggered

    triggeredPrice?: number

    Price when triggered

    createdAt: Date

    Created timestamp

    updatedAt: Date

    Updated timestamp