Bound backtest dataset preparation and preserve replay identity
This commit is contained in:
parent
cca5d71e6e
commit
6bd671d92a
20 changed files with 1420 additions and 155 deletions
|
|
@ -9,6 +9,20 @@ import {
|
|||
import { featuresSchema } from './features.schema';
|
||||
import { providersSchema } from './providers.schema';
|
||||
|
||||
const datasetLimit = z
|
||||
.number()
|
||||
.int()
|
||||
.positive()
|
||||
.max(Number.MAX_SAFE_INTEGER - 1);
|
||||
export const backtestDatasetLimitsSchema = z
|
||||
.object({
|
||||
maxInstruments: datasetLimit.optional(),
|
||||
maxBars: datasetLimit.optional(),
|
||||
maxSerializedBytes: datasetLimit.optional(),
|
||||
maxStoredBytes: datasetLimit.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
/**
|
||||
* Stock trading application configuration schema
|
||||
*/
|
||||
|
|
@ -93,6 +107,7 @@ export const stockAppSchema = baseAppSchema.extend({
|
|||
maxConcurrent: z.number().default(5),
|
||||
useRustEngine: z.boolean().default(true),
|
||||
executionTimeoutMs: z.number().int().positive().max(2_147_483_647).default(300_000),
|
||||
datasetLimits: backtestDatasetLimitsSchema.optional(),
|
||||
allowSyntheticData: z.boolean().default(false),
|
||||
syntheticSeed: z.number().int().default(42),
|
||||
defaultSpeed: z.string().default('max'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue