Skip to content

Commit

Permalink
fix(strategies): add schema to BotTemplate type
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed May 28, 2024
1 parent e441900 commit d9f2c27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bot-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"dependencies": {
"@opentrader/exchanges": "workspace:*",
"@opentrader/indicators": "workspace:*",
"@opentrader/tools": "workspace:*"
"@opentrader/tools": "workspace:*",
"zod": "3.22.4"
}
}
2 changes: 2 additions & 0 deletions packages/bot-processor/src/types/bot/bot-template.type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { ZodObject } from "zod";
import type { TBotContext } from "./bot-context.type";
import type { IBotConfiguration } from "./bot-configuration.interface";

export interface BotTemplate<T extends IBotConfiguration> {
(ctx: TBotContext<T>): Generator<unknown, unknown>;
requiredHistory?: number;
schema: ZodObject<any, any, any>;
}

0 comments on commit d9f2c27

Please sign in to comment.