com.quantarray.anaheim.finance.MarketItemReader2.scala Maven / Gradle / Ivy
The newest version!
package com.quantarray.anaheim.finance
import scala.annotation.implicitNotFound
/**
* Market item reader of 2 assets.
*/
@implicitNotFound("Cannot find MarketItemReader2 for assets ${A1} and ${A2} and market context type ${T}.")
trait MarketItemReader2[A1, A2, T] {
type Out
def item(asset1: A1, asset2: A2)(implicit mc: MarketContext[T]): Out
}
object MarketItemReader2 {
type Aux[A1, A2, T, Out0] = MarketItemReader2[A1, A2, T] {type Out = Out0}
}