Function getPositionHighestProfitTimestamp

  • Returns the timestamp when the best profit price was recorded during this position's life.

    Returns null if no pending signal exists.

    Parameters

    • symbol: string

      Trading pair symbol

    Returns Promise<number>

    Promise resolving to timestamp in milliseconds or null

    import { getPositionHighestProfitTimestamp } from "backtest-kit";

    const ts = await getPositionHighestProfitTimestamp("BTCUSDT");
    // e.g. 1700000000000