Class MetalPricingDataProvider

  • All Implemented Interfaces:
    com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>

    public class MetalPricingDataProvider
    extends PricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl>
    • Constructor Summary

      Constructors 
      Constructor Description
      MetalPricingDataProvider​(java.util.List<com.caplin.ret.trapi.rates.RatesService> ratesManagers, com.caplin.motif.fx.rates.FXRatesAdapter fxRatesAdapter, com.caplin.ret.trapi.admin.AdminService serviceManager, SubscriptionRequestFactory subscriptionRequestFactory, UnitConverter unitConverter, int serialExecutorPoolSize, com.caplin.motif.fx.ret.pricing.subject.MetalSubjectParserImpl subjectParser, java.lang.String namespace, java.lang.String adapterName)  
    • Constructor Detail

      • MetalPricingDataProvider

        public MetalPricingDataProvider​(java.util.List<com.caplin.ret.trapi.rates.RatesService> ratesManagers,
                                        com.caplin.motif.fx.rates.FXRatesAdapter fxRatesAdapter,
                                        com.caplin.ret.trapi.admin.AdminService serviceManager,
                                        SubscriptionRequestFactory subscriptionRequestFactory,
                                        UnitConverter unitConverter,
                                        int serialExecutorPoolSize,
                                        com.caplin.motif.fx.ret.pricing.subject.MetalSubjectParserImpl subjectParser,
                                        java.lang.String namespace,
                                        java.lang.String adapterName)
    • Method Detail

      • createQuotePublisher

        public com.caplin.motif.fx.rates.FXQuotePublisher createQuotePublisher()
        Specified by:
        createQuotePublisher in class PricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl>
      • createSubscriptionRequest

        public com.caplin.ret.trapi.rates.SubscriptionRequest createSubscriptionRequest​(com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl subjectInfo)
                                                                                 throws java.lang.Exception
        Specified by:
        createSubscriptionRequest in class PricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl>
        Throws:
        java.lang.Exception
      • getDisplayedGFA

        public java.lang.String getDisplayedGFA​(java.lang.String gfa,
                                                java.lang.String currencyPair,
                                                java.lang.String unit)
        Specified by:
        getDisplayedGFA in class PricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl>