@righteffort/fidelity-helper
    Preparing search index...

    Class Fidelity

    Retrieve transactions from fidelity.com via browser fetch calls.

    Index

    Constructors

    Methods

    • Retrieve transactions for the logged in user.

      Parameters

      • accounts: string[]

        list of Fidelity account numbers to retrieve.

      • start: Date

        start date, inclusive. Should have time 00:00:00 and timezone UTC, but represent America/New_York.

      • end: Date

        end date, inclusive. Should have time 00:00:00 and timezone UTC, but represent America/New_York.

      Returns Promise<Transaction[]>

      Transactions for accounts between [start, end].

      if there is any error retrieving the transactions.

    • Encode name for use in Fidelity get transactions.

      Parameters

      • name: string

        the plain-text name.

      Returns string

      The encoded name.

    • Convert date to epoch seconds in Fidelity time zone (America/New_York).

      Parameters

      • d: Date

        date to convert.

      Returns string

      Epoch seconds for d interpreted as America/New_York at midnight.

    • Return the options argument for calling fetch to get accounts.

      Returns object

      JSON-compatible object options argument for fetch call.

    • Return the options argument for calling fetch to get transactions.

      Parameters

      • accounts: Account[]

        list of Fidelity accounts to retrieve.

      • start: Date

        start date, inclusive. Treated as midnight America/New_York.

      • end: Date

        end date, inclusive. Treated as midnight America/New_York.

      Returns object

      JSON-compatible object options argument for fetch call.

    • Human-friendly rendering of options used to get transactions.

      Parameters

      Returns string

      Printable string with embedded JSON strings parsed into objects.