Class PricingDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>

java.lang.Object
com.caplin.motif.fx.ret.pricing.provider.PricingDataProvider<T>
All Implemented Interfaces:
com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
Direct Known Subclasses:
FXPricingDataProvider, MetalPricingDataProvider

public abstract class PricingDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo> extends Object implements com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
  • Constructor Details

    • PricingDataProvider

      public PricingDataProvider(List<com.caplin.ret.trapi.rates.RatesService> ratesManagers, com.caplin.ret.trapi.admin.AdminService serviceManager, org.slf4j.Logger logger, int serialExecutorPoolSize, ExecutorService executorService, String adapterName)
  • Method Details

    • createQuotePublisher

      public abstract com.caplin.motif.fx.rates.FXQuotePublisher createQuotePublisher()
    • createSubscriptionRequest

      public abstract com.caplin.ret.trapi.rates.SubscriptionRequest createSubscriptionRequest(T subjectInfo) throws Exception
      Throws:
      Exception
    • getDisplayedGFA

      public abstract String getDisplayedGFA(String gfa, String currencyPair, String unit)
    • initialise

      public void initialise()
    • onRequest

      public void onRequest(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo)
      Specified by:
      onRequest in interface com.caplin.motif.datasource.CachedDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>
    • onDiscard

      public void onDiscard(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo)
      Specified by:
      onDiscard in interface com.caplin.motif.datasource.CachedDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>