import { Milliseconds, PercentageOutOfOne } from '..'; import { CurrencySymbol } from '../../constants'; import { Datapoint, Historical, PriceFloat, Trade } from '../market'; import { RecipeInterval, RecipeTimeRange } from './RecipeTime'; export interface RecipeRun { /** The timestamp the recipe was run. */ runTimestamp: Milliseconds; /** The interval that the backtest is run for. */ interval: RecipeInterval; /** The timeframe over which the backtest is run. */ timeRange: RecipeTimeRange; /** Trades performed during this run. */ trades: Trade[]; historical: Historical; /** The percentage returns, out of 1, when trading. */ pctReturnsTrading: PercentageOutOfOne; /** The percentage returns, out of 1, when holding. */ pctReturnsHolding: PercentageOutOfOne; /** The cash value at each timestamp. */ cashTrading: Datapoint[]; /** The cash the user started out with for the backtest. */ startingCash: PriceFloat; /** The close value of the coin for the first day. */ startingCoinValue: PriceFloat; /** The currency used for the run. Defaults to USD. */ currency: CurrencySymbol; }