import { injectable , inject } from 'inversify' ; import symbols from './symbols' ; import { ConfigStore , SpreadAnalysisResult , LimitChecker , OrderPair } from './types' ; import PositionService from './PositionService' ; import MainLimitChecker from './MainLimitChecker' ; @ injectable ( ) export default class LimitCheckerFactory { constructor ( @ inject ( symbols . ConfigStore ) private readonly configStore , private readonly positionService ) { } create ( spreadAnalysisResult , orderPair ? ) { return new MainLimitChecker ( this . configStore , this . positionService , spreadAnalysisResult , orderPair ) ; } }