In this post I would like to explain how create new provider for Marketcetera.
I started from the CSV Market Data Adapter example, see instructions for install or compile via code.
After that if you want change provider name read the following instructions.
I started from the CSV Market Data Adapter example, see instructions for install or compile via code.
After that if you want change provider name read the following instructions.
- Refactor package name from
org.marketcetera.marketdata.csv;to
org.marketcetera.marketdata.YOUR_PREFERITE_PROVIDER;
- Edit file org.marketcetera.module.ModuleFactory and insert this line
org.marketcetera.marketdata.YOUR_PREFERITE_PROVIDER.MarketceteraFeedModuleFactory
- Edit file CSVFeedModuleFactory.java and overwrite this line
public static final String IDENTIFIER = "YOUR_PREFERITE_PROVIDER";
- Edit file CSVFeedFactory.java
- Edit file Message.java
static final I18NMessageProvider PROVIDER = new I18NMessageProvider("YOUR_PREFERITE_PROVIDER", Messages.class.getClassLoader());
- Rename all java source file according with YOUR_PREFERITE_PROVIDER
- Change provider name in your strategy
- Call mvn-package
- Overwrite generated jar
- Start strategy with new provider
Comments
Post a Comment