| .. | ||
| src | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Shared Types Library
This library contains domain-specific TypeScript type definitions used across the stock-bot project.
Directory Structure
market/- Market data structures (OHLCV, OrderBook, etc.)trading/- Trading types (Orders, Positions, etc.)strategy/- Strategy and signal typesevents/- Event definitions for the event busapi/- Common API request/response typesconfig/- Configuration type definitions
Usage
import { OHLCV, MarketData } from '@stock-bot/types';
// Use the types
const marketData: MarketData = {
symbol: 'AAPL',
price: 150.25,
bid: 150.20,
ask: 150.30,
volume: 1000000,
timestamp: new Date()
};