public class BNCReferenceDataServiceImpl extends RestReferenceDataServiceImpl
ReferenceDataService.SecurityFamilyNamePrefix
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCHANGE_CODE |
accountDao, exchangeDao
Constructor and Description |
---|
BNCReferenceDataServiceImpl(BNCConfig bncConfig,
BNCRestAdapter bncRestAdapter,
BNCTickerTranslator bncTickerTranslator,
ForexDao forexDao,
ExchangeDao exchangeDao,
AccountDao accountDao) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getDefaultAccountName() |
protected void |
loadInitialReferenceData() |
void |
retrieve(long securityFamilyId)
|
void |
retrieveAll()
Retrieves all reference data available by the data provider.
|
void |
retrieveStocks(long securityFamilyId,
Security security)
Retrieves all
Stocks of the specified securityFamily
Retrieve here means both fetch from external service and persist into DB. |
addAccount, addExchange, addForex, addFuture, addIndex, addOption, addPerpetualSwap, addSecurityFamily, findAccountByAccountServiceTypeAndExchange, findExchangeByCngId, findExchangeByCnpId, findExchangeByNameThenCodeIgnoreCase, findExchangeNotNullByCode, findForexByCurrenciesAndExchange, findFutureBySymbolAndExchange, findIndexBySymbolAndExchange, findOptionBySymbolAndExchange, findPerpetualSwapBySymbolAndExchange, findSecurityFamilyByCurrenciesAndExchange, findSecurityFamilyByName, init, onEvent, saveAccounts, saveExchanges, saveForex, saveFutures, saveIndices, saveOptions, savePerpetualSwap, saveSecurityFamilies
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFutureSymbol, getFutureSymbol, getFutureYearMonth, getFutureYearMonth, getIIndexFamilyName, getSecurityDescription, getSecurityFamilyName, getSecuritySymbol, waitForMarketDataConnection
public BNCReferenceDataServiceImpl(BNCConfig bncConfig, BNCRestAdapter bncRestAdapter, BNCTickerTranslator bncTickerTranslator, ForexDao forexDao, ExchangeDao exchangeDao, AccountDao accountDao)
public void retrieve(long securityFamilyId)
ReferenceDataService
public void retrieveStocks(long securityFamilyId, Security security)
ReferenceDataService
Stocks
of the specified securityFamily
Retrieve here means both fetch from external service and persist into DB.public void retrieveAll()
ReferenceDataService
protected void loadInitialReferenceData()
loadInitialReferenceData
in class RestReferenceDataServiceImpl
public java.util.Optional<java.lang.String> getDefaultAccountName()