Function removeMemory

  • Removes a memory entry for the current signal.

    Resolves the active pending or scheduled signal automatically from execution context. Automatically detects backtest/live mode from execution context.

    Parameters

    • dto: { bucketName: string; memoryId: string }
      • bucketName: string

        Memory bucket name

      • memoryId: string

        Unique memory entry identifier

    Returns Promise<void>

    Promise that resolves when removal is complete

    Error if no pending or scheduled signal exists

    import { removeMemory } from "backtest-kit";

    await removeMemory({ bucketName: "my-strategy", memoryId: "context" });