import { IOrder } from '../IOrder' ; import { IPriceStrategy } from './IPriceStrategy' ; export class OrderCreationTimePickStrategy implements IPriceStrategy { pickPrice ( ask , bid ) { return ask . createdAt > bid . createdAt ? bid . price : ask . price ; } }