cosmos-explorer/public/datafeeds/udf/src/udf-compatible-datafeed.ts
2021-11-21 09:42:01 +08:00

12 lines
498 B
TypeScript

import { UDFCompatibleDatafeedBase } from './udf-compatible-datafeed-base';
import { QuotesProvider } from './quotes-provider';
import { Requester } from './requester';
export class UDFCompatibleDatafeed extends UDFCompatibleDatafeedBase {
public constructor(datafeedURL: string, updateFrequency: number = 10 * 1000) {
const requester = new Requester();
const quotesProvider = new QuotesProvider(datafeedURL, requester);
super(datafeedURL, quotesProvider, requester, updateFrequency);
}
}