updated files
This commit is contained in:
parent
f61d1aa0c3
commit
dd27f3bf2c
50 changed files with 54 additions and 7 deletions
|
|
@ -1,28 +0,0 @@
|
|||
# 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 types
|
||||
- `events/` - Event definitions for the event bus
|
||||
- `api/` - Common API request/response types
|
||||
- `config/` - Configuration type definitions
|
||||
|
||||
## Usage
|
||||
|
||||
```typescript
|
||||
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()
|
||||
};
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue