import { Alpaca } from "./alpaca";

export type SignalDirection = 'buy' | 'sell';

export interface Signal {
    symbol: string;
    direction: SignalDirection;
    allocation: number; // fraction of this strategy's capital to use (0-1)
}

export interface Strategy {
    name: string;
    capitalAllocation: number; // fraction of total account capital (0-1)
    execute(alpaca: Alpaca): Promise<Signal[]>;
}
