Class FXPricingDataProvider
- java.lang.Object
-
- com.caplin.motif.fx.ret.pricing.provider.PricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl>
-
- com.caplin.motif.fx.ret.pricing.provider.fx.FXPricingDataProvider
-
- All Implemented Interfaces:
com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
public class FXPricingDataProvider extends PricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl>
-
-
Constructor Summary
Constructors Constructor Description FXPricingDataProvider(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 pricingSubscriptionRequestFactory, int serialExecutorPoolSize, com.caplin.motif.fx.ret.pricing.subject.FXSubjectParserImpl subjectParser, java.lang.String namespace, java.lang.String adapterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.caplin.motif.fx.rates.FXQuotePublisher
createQuotePublisher()
com.caplin.ret.trapi.rates.SubscriptionRequest
createSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo)
java.lang.String
getDisplayedGFA(java.lang.String gfa, java.lang.String currencyPair, java.lang.String unit)
-
Methods inherited from class com.caplin.motif.fx.ret.pricing.provider.PricingDataProvider
initialise, onDiscard, onRequest
-
-
-
-
Constructor Detail
-
FXPricingDataProvider
public FXPricingDataProvider(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 pricingSubscriptionRequestFactory, int serialExecutorPoolSize, com.caplin.motif.fx.ret.pricing.subject.FXSubjectParserImpl subjectParser, java.lang.String namespace, java.lang.String adapterName)
-
-
Method Detail
-
createQuotePublisher
public com.caplin.motif.fx.rates.FXQuotePublisher createQuotePublisher()
- Specified by:
createQuotePublisher
in classPricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl>
-
createSubscriptionRequest
public com.caplin.ret.trapi.rates.SubscriptionRequest createSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo) throws java.lang.Exception
- Specified by:
createSubscriptionRequest
in classPricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl>
- 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 classPricingDataProvider<com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl>
-
-