Firstrade API Node - v1.0.2
    Preparing search index...

    Class Watchlist

    Provides watchlist management for a Firstrade session.

    Supports creating and deleting watchlists, adding and removing symbols from watchlists, and retrieving watchlist contents.

    Index

    Constructors

    Properties

    ftSession: FTSession

    Methods

    • Add a symbol to a watchlist.

      Parameters

      • listId: number

        The ID of the watchlist to add the symbol to.

      • symbol: string

        The ticker symbol to add.

      • secType: string = "1"

        Security type. "1" for equities/ETFs. Defaults to "1".

      Returns Promise<any>

      API response containing the watchlist item ID of the new item.

    • Create a new watchlist.

      Parameters

      • name: string

        Display name for the new watchlist.

      Returns Promise<any>

      API response containing the ID of the created watchlist.

    • Delete a watchlist.

      Parameters

      • listId: number

        The ID of the watchlist to delete.

      Returns Promise<any>

      API response confirming deletion.

    • Retrieve every item across all watchlists.

      Returns Promise<any>

      API response with all watchlist symbols.

    • Retrieve the contents of a specific watchlist.

      Parameters

      • listId: number

        The ID of the watchlist to retrieve.

      Returns Promise<any>

      API response containing the watchlist items with each symbol's quote data.

    • Retrieve all watchlists for the current user.

      Returns Promise<any>

      API response containing a list of watchlists.

    • Remove a symbol from a watchlist by its watchlist item ID.

      Note: watchlistId refers to the per-item ID returned by addSymbol, not the listId of the watchlist itself.

      Parameters

      • watchlistId: number

        The item-level watchlist ID to remove.

      Returns Promise<any>

      API response confirming deletion.