work on new engine
This commit is contained in:
parent
44476da13f
commit
a1e5a21847
126 changed files with 3425 additions and 6695 deletions
|
|
@ -1,9 +1,8 @@
|
|||
import { IServiceContainer } from '@stock-bot/di';
|
||||
import { TradingEngine } from '@stock-bot/engine';
|
||||
import { EventEmitter } from 'events';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { IServiceContainer } from '@stock-bot/di';
|
||||
import { ModeConfig, OrderRequest, OrderRequestSchema } from '../types';
|
||||
import { TradingEngine } from '@stock-bot/core';
|
||||
import axios from 'axios';
|
||||
import { StorageService } from './StorageService';
|
||||
|
||||
interface ExecutionReport {
|
||||
|
|
@ -233,7 +232,7 @@ export class ExecutionService extends EventEmitter {
|
|||
}
|
||||
|
||||
private async processFills(executionReport: ExecutionReport): Promise<void> {
|
||||
if (!this.tradingEngine) return;
|
||||
if (!this.tradingEngine) {return;}
|
||||
|
||||
for (const fill of executionReport.fills) {
|
||||
// Update position in engine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue