removed deprecated createLogger and replaced with getLogger
This commit is contained in:
parent
5d8b102422
commit
c10a524aa8
29 changed files with 93 additions and 136 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { createLogger } from '@stock-bot/logger';
|
||||
import { getLogger } from '@stock-bot/logger';
|
||||
|
||||
export interface Position {
|
||||
symbol: string;
|
||||
|
|
@ -34,7 +34,7 @@ export interface Trade {
|
|||
}
|
||||
|
||||
export class PortfolioManager {
|
||||
private logger = createLogger('PortfolioManager');
|
||||
private logger = getLogger('PortfolioManager');
|
||||
private positions: Map<string, Position> = new Map();
|
||||
private trades: Trade[] = [];
|
||||
private cashBalance: number = 100000; // Starting cash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue