Trading Assistant API Documentation - v0.1.0
    Preparing search index...

    Interface Portfolio

    interface Portfolio {
        id: string;
        user_id: string;
        name: string;
        description?: string | null;
        strategy_type?: StrategyType | null;
        currency: Currency;
        is_default: boolean;
        is_active: boolean;
        initial_capital?: number | null;
        target_allocation?: Record<string, number> | null;
        risk_level?: number | null;
        max_position_size_pct?: number | null;
        max_drawdown_tolerance_pct?: number | null;
        questdb_portfolio_id?: string | null;
        external_provider?: string | null;
        data_source?: string | null;
        sync_enabled?: boolean | null;
        sync_frequency?:
            | "daily"
            | "weekly"
            | "manual"
            | "realtime"
            | "minute"
            | "hourly"
            | null;
        sync_status?: "failed"
        | "success"
        | "pending"
        | "syncing"
        | null;
        last_sync_at?: string | null;
        next_sync_at?: string | null;
        sync_error?: string | null;
        created_at: string;
        updated_at: string;
    }
    Index

    Properties

    id: string
    user_id: string
    name: string
    description?: string | null
    strategy_type?: StrategyType | null
    currency: Currency
    is_default: boolean
    is_active: boolean
    initial_capital?: number | null
    target_allocation?: Record<string, number> | null
    risk_level?: number | null
    max_position_size_pct?: number | null
    max_drawdown_tolerance_pct?: number | null
    questdb_portfolio_id?: string | null
    external_provider?: string | null
    data_source?: string | null
    sync_enabled?: boolean | null
    sync_frequency?:
        | "daily"
        | "weekly"
        | "manual"
        | "realtime"
        | "minute"
        | "hourly"
        | null
    sync_status?: "failed" | "success" | "pending" | "syncing" | null
    last_sync_at?: string | null
    next_sync_at?: string | null
    sync_error?: string | null
    created_at: string
    updated_at: string