Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Haehnchen/crypto-trading-bot
/ functions
Functions
500 in github.com/Haehnchen/crypto-trading-bot
⨍
Functions
500
◇
Types & classes
267
Method
addSub
(exchange: string, symbol: string, period: string)
src/modules/system/ccxt_candle_watch_service.ts:128
Method
all
(parameters?: any)
src/repository/signal_repository.ts:6
Method
all
(parameters?: any)
src/repository/logs_repository.ts:8
Function
cancelAllOrders
( exchange: ccxt.Exchange, pair: string )
src/profile/profile_order_service.ts:360
Method
cleanOldLogEntries
(days: number = 14)
src/repository/ticker_log_repository.ts:14
Function
constructor
(protected templateHelpers: TemplateHelpers)
src/controller/base_controller.ts:18
Function
constructor
(partialOptions?: Partial<TOptions>)
src/strategy/strategy.ts:208
Method
constructor
( private systemUtil: ConfigService, private readonly projectDir: string, private services: Servic
src/modules/http.ts:15
Method
constructor
(cache: FileCache, exchangeInstanceService: ExchangeInstanceService)
src/modules/profile_pair_service.ts:30
Method
constructor
( private notify: Notify, private logger: Logger, private logsRepository: LogsRepository, priv
src/modules/trade.ts:9
Method
constructor
(private candlestickRepository: CandlestickRepository)
src/modules/ta.ts:66
Method
constructor
(private candlestickRepository: CandlestickRepository)
src/modules/exchange/exchange_candle_combine.ts:10
Method
constructor
( private technicalAnalysisValidator: TechnicalAnalysisValidator, private exchangeCandleCombine: Excha
src/modules/strategy/v2/typed_backtest.ts:84
Method
constructor
( private exchangeCandleCombine: ExchangeCandleCombine, private executor: StrategyExecutor )
src/modules/strategy/v2/typed_backtest.ts:241
Method
constructor
(builtInStrategies: StrategyClassType[] = [])
src/modules/strategy/v2/strategy_registry.ts:46
Method
constructor
(private candlestickRepository: CandlestickRepository)
src/modules/system/candle_importer.ts:16
Method
constructor
(private configService: ConfigService)
src/modules/system/desk_service.ts:4
Method
constructor
( private candleImporter: CandleImporter, private logger: Logger, private exchangeInstanceService:
src/modules/system/ccxt_candle_prefill_service.ts:17
Method
constructor
(private readonly projectDir: string)
src/modules/system/config_service.ts:120
Method
constructor
( private candlestickRepository: CandlestickRepository, private ccxtCandleWatchService: CcxtCandleWatc
src/modules/system/candle_export_http.ts:10
Method
constructor
( private candleImporter: CandleImporter, private dashboardConfigService: DashboardConfigService,
src/modules/system/ccxt_candle_watch_service.ts:26
Method
constructor
(private logsRepository: LogsRepository)
src/modules/system/logs_http.ts:4
Method
constructor
(private configService: ConfigService)
src/modules/system/dashboard_config_service.ts:6
Method
constructor
()
src/utils/queue.ts:8
Method
constructor
(opts: WinstonSqliteTransportOptions)
src/utils/winston_sqlite_transport.ts:18
Method
constructor
()
src/utils/file_cache.ts:25
Method
constructor
(private cache: FileCache)
src/utils/binance_price_service.ts:19
Method
constructor
( templateHelpers: TemplateHelpers, private dashboardConfigService: DashboardConfigService, privat
src/controller/dashboard_settings_controller.ts:33
Method
constructor
(templateHelpers: TemplateHelpers, private signalRepository: SignalRepository)
src/controller/signals_controller.ts:6
Method
constructor
(templateHelpers: TemplateHelpers, private ta: Ta, private dashboardConfigService: DashboardConfigService)
src/controller/dashboard_controller.ts:7
Method
constructor
( templateHelpers: TemplateHelpers, private deskService: DeskService, private symbolSearchService:
src/controller/desks_controller.ts:7
Method
constructor
(templateHelpers: TemplateHelpers, private candleExportHttp: CandleExportHttp, private candleImporter: CandleI
src/controller/candles_controller.ts:8
Method
constructor
( templateHelpers: TemplateHelpers, private profileService: ProfileService )
src/controller/trades_controller.ts:7
Method
constructor
(templateHelpers: TemplateHelpers, private exchangeInstanceService: ExchangeInstanceService)
src/controller/ccxt_exchanges_controller.ts:45
Method
constructor
( templateHelpers: TemplateHelpers, private profileService: ProfileService, private pairService: P
src/controller/orders_controller.ts:9
Method
constructor
( templateHelpers: TemplateHelpers, private profileService: ProfileService, private pairService: P
src/controller/profile_controller.ts:10
Method
constructor
( templateHelpers: TemplateHelpers, exchangeCandleCombine: ExchangeCandleCombine, private strategy
src/controller/backtest_controller.ts:74
Method
constructor
(templateHelpers: TemplateHelpers, private logsHttp: LogsHttp)
src/controller/logs_controller.ts:6
Method
constructor
(templateHelpers: TemplateHelpers)
src/controller/tradingview_controller.ts:6
Method
constructor
( templateHelpers: TemplateHelpers, private configService: ConfigService )
src/controller/settings_controller.ts:9
Method
constructor
( private readonly _price: number, private readonly _indicators: IndicatorsResult<TIndicators>, pr
src/strategy/strategy.ts:143
Method
constructor
( private readonly profileService: ProfileService, private readonly strategyExecutor: StrategyExecutor
src/strategy/bot_runner.ts:35
Method
constructor
()
src/command/trade.ts:4
Method
constructor
( private configService: ConfigService, private exchangeInstanceService: ExchangeInstanceService,
src/profile/profile_service.ts:18
Method
constructor
(private readonly logger: Logger)
src/profile/profile_order_service.ts:49
Method
constructor
(private db: Database, private logger: Logger)
src/repository/ticker_repository.ts:21
Method
constructor
(private db: Database)
src/repository/ticker_log_repository.ts:12
Method
constructor
(private db: Database)
src/repository/signal_repository.ts:11
Method
constructor
(private db: Database)
src/repository/logs_repository.ts:13
Method
constructor
(private db: Database)
src/repository/candlestick_repository.ts:20
Method
constructor
(private telegraf: Telegraf, private config: TelegramConfig, private logger: Logger)
src/notify/telegram.ts:9
Method
constructor
(private config: SlackConfig)
src/notify/slack.ts:8
Method
constructor
(private mailer: any, private configService: ConfigService, private logger: Logger)
src/notify/mail.ts:5
Method
constructor
(private notifier: Notifier[])
src/notify/notify.ts:6
Method
constructor
( public exchange: string, public symbol: string, public period: string, public time: number,
src/dict/exchange_candlestick.ts:2
Method
constructor
( public time: number, public open: number, public high: number, public low: number, publi
src/dict/candlestick.ts:2
Function
convertMinuteToPeriod
(period: number)
src/utils/resample.ts:108
Method
create
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:101
Method
createBot
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:348
Method
createBot
(profileId: string, config: BotConfig)
src/profile/profile_service.ts:244
Method
decodeHtml
(text: any)
src/controller/base_controller.ts:11
Method
defineIndicators
()
src/strategy/strategies/pivot_reversal_strategy.ts:36
Method
defineIndicators
()
src/strategy/strategies/cci_macd.ts:74
Method
defineIndicators
()
src/strategy/strategies/trader.ts:33
Method
defineIndicators
()
src/strategy/strategies/noop.ts:38
Method
defineIndicators
()
src/strategy/strategies/cci.ts:34
Method
defineIndicators
()
src/strategy/strategies/parabolicsar.ts:31
Method
defineIndicators
()
src/strategy/strategies/obv_pump_dump.ts:33
Method
defineIndicators
()
src/strategy/strategies/awesome_oscillator_cross_zero.ts:31
Method
defineIndicators
()
src/strategy/strategies/macd.ts:37
Method
defineIndicators
()
src/strategy/strategies/dip_catcher/dip_catcher.ts:40
Method
defineIndicators
()
src/strategy/strategies/dca_dipper/dca_dipper.ts:35
Method
defineIndicators
()
var/strategies/playground/playground.ts:35
Method
deleteBot
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:404
Method
deleteBot
(profileId: string, botId: string)
src/profile/profile_service.ts:309
Method
deleteProfile
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:120
Method
deleteProfile
(id: string)
src/profile/profile_service.ts:74
Method
editBotForm
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:295
Method
editForm
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:84
Method
escapeHtml
(text: any)
src/controller/base_controller.ts:10
Method
execute
(context: TypedStrategyContext<PivotReversalStrategyIndicators>, signal: StrategySignal)
src/strategy/strategies/pivot_reversal_strategy.ts:46
Method
execute
(context: TypedStrategyContext<CciMacdIndicators>, signal: StrategySignal)
src/strategy/strategies/cci_macd.ts:87
Method
execute
(context: TypedStrategyContext<TraderIndicators>, signal: StrategySignal)
src/strategy/strategies/trader.ts:39
Method
execute
(context: TypedStrategyContext<NoopIndicators>, signal: StrategySignal)
src/strategy/strategies/noop.ts:46
Method
execute
(context: TypedStrategyContext<CciIndicators>, signal: StrategySignal)
src/strategy/strategies/cci.ts:42
Method
execute
(context: TypedStrategyContext<ParabolicSarIndicators>, signal: StrategySignal)
src/strategy/strategies/parabolicsar.ts:40
Method
execute
(context: TypedStrategyContext<ObvPumpDumpIndicators>, signal: StrategySignal)
src/strategy/strategies/obv_pump_dump.ts:40
Method
execute
(context: TypedStrategyContext<AwesomeOscillatorIndicators>, signal: StrategySignal)
src/strategy/strategies/awesome_oscillator_cross_zero.ts:38
Method
execute
(context: TypedStrategyContext<MacdIndicators>, signal: StrategySignal)
src/strategy/strategies/macd.ts:50
Method
execute
(context: TypedStrategyContext<DipCatcherIndicators>, signal: StrategySignal)
src/strategy/strategies/dip_catcher/dip_catcher.ts:67
Method
execute
(context: TypedStrategyContext<DcaDipperIndicators>, signal: StrategySignal)
src/strategy/strategies/dca_dipper/dca_dipper.ts:48
Method
execute
()
src/command/trade.ts:6
Method
execute
(context: TypedStrategyContext<PlaygroundIndicators>, signal: StrategySignal)
var/strategies/playground/playground.ts:89
Method
fetchAllOrders
* Fetch all orders (open and closed) for a profile
src/profile/profile_service.ts:179
Method
fetchCandlePeriods
(mainExchange: string, symbol: string)
src/modules/exchange/exchange_candle_combine.ts:44
Function
fetchClosedOrders
( exchange: ccxt.Exchange, pair?: string, limit?: number )
src/profile/profile_order_service.ts:215
Function
fetchOpenPositions
(exchange: ccxt.Exchange)
src/profile/profile_order_service.ts:256
Method
formatDate
(date: any, format: string)
src/controller/base_controller.ts:9
Method
getBalances
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:126
Method
getConfig
* Provide the configuration from var/config.json * * @param key eg "webserver.port" nested config supported * @param defaultValue value if co
src/modules/system/config_service.ts:150
← previous
next →
301–400 of 500, ranked by callers