@sei-code/analytics
Version:
Blockchain data analysis and monitoring for Sei network
33 lines • 1.51 kB
TypeScript
import { SeiAgent, BaseCapability } from '@sei-code/core';
import { SeiPrecompileManager } from '@sei-code/precompiles';
import type { MarketDataPoint, MarketIndicators, TradingSignal, MarketTrend, CorrelationMatrix } from './types';
export declare class MarketDataAgent extends BaseCapability {
private agent;
private precompiles;
private priceCache;
private cacheTimeout;
constructor(agent: SeiAgent, precompiles: SeiPrecompileManager);
execute(params: any): Promise<any>;
getMarketData(denom: string, timeframe?: string): Promise<MarketDataPoint[]>;
private getMultiTimeframeTWAP;
private buildMarketDataPoints;
private getIntervalsForTimeframe;
private getIntervalMs;
private estimateVolume;
private estimateMarketCap;
calculateTechnicalIndicators(denom: string, timeframe?: string): Promise<MarketIndicators>;
private calculateRSI;
private calculateMACD;
private calculateEMA;
private calculateMovingAverages;
private calculateBollingerBands;
private calculateSupportResistance;
generateTradingSignals(denom: string, timeframe?: string): Promise<TradingSignal[]>;
getMarketTrend(denom: string, timeframes?: string[]): Promise<MarketTrend[]>;
private isCacheValid;
calculateCorrelationMatrix(denoms: string[], timeframe?: string): Promise<CorrelationMatrix>;
private calculateCorrelationCoefficients;
private pearsonCorrelation;
private analyzeCorrelations;
}
//# sourceMappingURL=market-data.d.ts.map