toggle menu
data-services
JVM
switch theme
search in API
data-services
/
org.cryptotrader.data.library.services.harvest
/
CurrencyHarvesterService
Currency
Harvester
Service
@
Service
@
ConditionalOnProperty
(
name
=
"cryptotrader.harvest.currency"
,
havingValue
=
"true"
,
matchIfMissing
=
false
)
open
class
CurrencyHarvesterService
Members
Constructors
Currency
Harvester
Service
Link copied to clipboard
@
Autowired
constructor
(
currencyRepository
:
CurrencyRepository
,
currencyHistoryRepository
:
CurrencyHistoryRepository
,
uniqueCurrencyRepository
:
UniqueCurrencyRepository
,
uniqueCurrencyHistoryRepository
:
UniqueCurrencyHistoryRepository
,
currencyDataRetriever
:
CurrencyDataRetriever
,
backfiller
:
MarketSnapshotsBackfiller
,
snapshotService
:
MarketSnapshotOperations
,
currencyJsonGenerator
:
CurrencyJsonGenerator
,
currencyService
:
CurrencyService
)
Functions
build
Market
Snapshots
Link copied to clipboard
open
fun
buildMarketSnapshots
(
fullRefresh
:
Boolean
)
save
Currencies
Link copied to clipboard
@
Scheduled
(
fixedRate
=
5000
)
open
fun
saveCurrencies
(
)