public async Task <IActionResult> Migrate(string assetPair)
        {
            var result = await _candlesMigrationManager.MigrateAsync(
                assetPair,
                _historyProvidersManager.GetProvider <MeFeedHistoryProvider>());

            return(Ok(result));
        }
Beispiel #2
0
        public async Task <IActionResult> Migrate(string assetPair)
        {
            if (!_candlesMigrationManager.MigrationEnabled)
            {
                return(Ok("Migration is currently disabled in application settings."));
            }

            var result = await _candlesMigrationManager.MigrateAsync(
                assetPair,
                _historyProvidersManager.GetProvider <MeFeedHistoryProvider>());

            return(Ok(result));
        }