Add indicator and strategy interfaces

Introduce the typed interfaces that form the foundation of the
strategy framework: Indicator<T> for market analysis and Strategy
with Signal types for trading decisions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jon
2026-01-30 14:05:41 -07:00
parent 5e06c06987
commit 345ff933ec
2 changed files with 21 additions and 0 deletions

6
src/indicator.ts Normal file
View File

@@ -0,0 +1,6 @@
import { Alpaca } from "./alpaca";
export interface Indicator<T> {
name: string;
evaluate(alpaca: Alpaca): Promise<T>;
}