24 lines
684 B
TypeScript
24 lines
684 B
TypeScript
import "dotenv/config";
|
|
import { BybitService } from "./src/services/bybitService";
|
|
import * as indicatorService from "./src/services/indicatorService";
|
|
import {
|
|
analyzeCandleSequence,
|
|
isHighVolatilityCandle,
|
|
isPinBar,
|
|
} from "./src/helpers/candles";
|
|
import { analyzeCandlesJob } from "./src/schedule/candleAnalysisSchedule";
|
|
|
|
const bybitService = new BybitService(
|
|
process.env.BYBIT_API_KEY!,
|
|
process.env.BYBIT_API_SECRET!,
|
|
false
|
|
);
|
|
|
|
function toTimestamp(strTime: string): number {
|
|
return new Date(strTime).getTime();
|
|
}
|
|
|
|
(async () => {
|
|
// await analyzeCandlesJob("ETHUSDT", "15", toTimestamp("2025-07-08 23:59:59"));
|
|
await analyzeCandlesJob("ETHUSDT", "15");
|
|
})();
|