Trading Assistant API Documentation - v0.1.0
    Preparing search index...
    portfolioStore: {
        subscribe: (
            this: void,
            run: Subscriber<PortfolioState>,
            invalidate?: Invalidator<PortfolioState>,
        ) => Unsubscriber;
        load(userId: string): Promise<void>;
        refresh(userId: string): Promise<void>;
        changePeriod(
            userId: string,
            period: "week" | "month" | "quarter" | "year" | "all",
        ): Promise<void>;
        toggleShowClosed(): void;
        changeSort(sortBy: "symbol" | "pnl" | "value" | "percent"): void;
        clearError(): void;
        reset(): void;
    } = ...

    Type Declaration