MCPcopy Create free account

hub / github.com/Haehnchen/crypto-trading-bot / functions

Functions500 in github.com/Haehnchen/crypto-trading-bot

↓ 2 callersMethodfetchBalances
(profile: Profile)
src/profile/profile_service.ts:82
↓ 2 callersFunctionfetchMarketData
(exchange: ccxt.Exchange, pair: string)
src/profile/profile_order_service.ts:9
↓ 2 callersMethodfetchOpenPositions
* Fetch open swap/futures positions for a profile
src/profile/profile_service.ts:212
↓ 2 callersMethodfetchRaw
(exchange: string, symbol: string, period: string)
src/modules/system/ccxt_candle_prefill_service.ts:90
↓ 2 callersMethodformatStrategyName
* Format strategy name for display (convert snake_case to Title Case)
src/modules/strategy/v2/strategy_registry.ts:275
↓ 2 callersMethodgenerateId
()
src/profile/profile_service.ts:25
↓ 2 callersMethodgetAllCcxtExchanges
()
src/controller/ccxt_exchanges_controller.ts:147
↓ 2 callersMethodgetCcxtCandlePrefillService
()
src/modules/services.ts:184
↓ 2 callersMethodgetConfig
()
src/modules/system/dashboard_config_service.ts:8
↓ 2 callersFunctiongetCrossedSince
(lookbacks: number[])
src/modules/ta.ts:18
↓ 2 callersMethodgetDashboardSettingsController
(templateHelpers: any)
src/modules/services.ts:182
↓ 2 callersMethodgetDeskService
()
src/modules/services.ts:200
↓ 2 callersMethodgetExchangeCandleCombine
()
src/modules/services.ts:175
↓ 2 callersMethodgetFileCache
()
src/modules/services.ts:203
↓ 2 callersMethodgetLastPrices
Get the last N close prices (most recent last)
src/strategy/strategy.ts:158
↓ 2 callersMethodgetLogsRepository
()
src/modules/services.ts:169
↓ 2 callersMethodgetLookbacksForPair
( exchange: string, symbol: string, period: string, limit: number = 750, olderThen?: numbe
src/repository/candlestick_repository.ts:22
↓ 2 callersMethodgetLookbacksSince
(exchange: string, symbol: string, period: string, start: number)
src/repository/candlestick_repository.ts:51
↓ 2 callersMethodgetMarketsForExchange
* Get markets for an exchange with caching (public data, no auth needed)
src/modules/profile_pair_service.ts:123
↓ 2 callersMethodgetNotifier
()
src/modules/services.ts:164
↓ 2 callersMethodgetPairs
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:237
↓ 2 callersMethodgetPairsForProfile
(profile: Profile)
src/controller/profile_controller.ts:324
↓ 2 callersMethodgetProfileExchange
* Returns a cached authenticated exchange instance for the given profile. * Creates a new instance on first call, after the 1-hour TTL expires, or
src/modules/system/exchange_instance_service.ts:52
↓ 2 callersMethodgetSignalRepository
()
src/modules/services.ts:160
↓ 2 callersMethodgetStrategies
* Get all available v2 strategies
src/controller/backtest_controller.ts:173
↓ 2 callersMethodgetStrategiesWithDefaults
()
src/controller/profile_controller.ts:334
↓ 2 callersMethodgetStrategyExecutor
()
src/modules/services.ts:165
↓ 2 callersFunctiongetTalib
()
test/modules/strategy/v2/indicator_calculator.test.ts:11
↓ 2 callersFunctiongetTrendingDirectionLastItem
(lookbacks: number[])
src/modules/ta.ts:14
↓ 2 callersMethodgetUsdtPrices
* Get USDT prices for all coins. * Returns a record of coin -> USDT price. * Uses cache if available and not expired.
src/utils/binance_price_service.ts:26
↓ 2 callersMethodgetWatchedPairs
* Returns all unique (exchange, symbol) pairs currently being watched via websocket. * Combines pairs from dashboard config and bot configs.
src/modules/system/ccxt_candle_watch_service.ts:42
↓ 2 callersMethodinvalidateProfile
* Removes the cached authenticated instance for a profile. * Call this whenever a profile's credentials or exchange name change.
src/modules/system/exchange_instance_service.ts:83
↓ 2 callersMethodisPathWithinStrategiesDir
* Validate that a resolved file path is within the allowed strategies directory. * Prevents path traversal attacks.
src/modules/strategy/v2/strategy_registry.ts:64
↓ 2 callersMethodloadFromFile
* Load a strategy class from file (fresh, not cached)
src/modules/strategy/v2/strategy_registry.ts:128
↓ 2 callersMethodnodeVersion
()
src/controller/base_controller.ts:13
↓ 2 callersMethodonTick
()
src/strategy/bot_runner.ts:72
↓ 2 callersMethodparseDeskForm
(body: any)
src/controller/desks_controller.ts:166
↓ 2 callersMethodparseIntOrNull
(value: string | undefined)
src/controller/settings_controller.ts:167
↓ 2 callersMethodparsePair
* Parse pair into asset and currency (e.g., "BTC/USDT:USDT" -> { asset: "BTC", currency: "USDT" })
src/controller/orders_controller.ts:197
↓ 2 callersMethodresolveFilePath
* Resolve strategy name/path to a file path
src/modules/strategy/v2/strategy_registry.ts:73
↓ 2 callersMethodrunBacktest
* Run a backtest with the v2 engine
src/controller/backtest_controller.ts:203
↓ 2 callersMethodsaveBotSettings
(settings: Partial<BotSettings>)
src/modules/system/config_service.ts:214
↓ 2 callersMethodstart
()
src/modules/http.ts:93
↓ 2 callersMethodstartSubscriptions
()
src/modules/system/ccxt_candle_watch_service.ts:123
↓ 2 callersMethodtransaction
(fn: () => void)
src/repository/candlestick_repository.ts:6
↓ 2 callersMethodtrendChange
* Detect trend change based on Heikin Ashi candle patterns * - 'up' trend: 3 bearish candles followed by 3 bullish candles * - 'down' trend: 3 b
var/strategies/playground/playground.ts:53
↓ 1 callersMethodboot
(projectDir: string, portOverride?: number)
src/modules/services.ts:156
↓ 1 callersFunctionbuildCandleChartData
* Build candle chart data from backtest result (presentation logic)
src/controller/backtest_controller.ts:49
↓ 1 callersFunctionbuildTalibRequestFromCandles
* Build talib request from candles or price array
src/utils/indicators.ts:144
↓ 1 callersFunctionbuildTalibRequestFromPrices
* Build talib request from price array
src/utils/indicators.ts:176
↓ 1 callersFunctioncalculateDashboardIndicators
(candles: Candlestick[])
src/modules/ta.ts:32
↓ 1 callersMethodcancelAllOrders
* Cancel all orders for a pair
src/profile/profile_service.ts:228
↓ 1 callersFunctioncancelOrder
( exchange: ccxt.Exchange, orderId: string, pair: string )
src/profile/profile_order_service.ts:349
↓ 1 callersMethodcancelOrder
* Cancel an order
src/profile/profile_service.ts:204
↓ 1 callersFunctionchunkArray
(array: T[], size: number)
src/modules/system/candle_importer.ts:4
↓ 1 callersMethodclassNameToId
* Convert class name to strategy identifier * e.g., "DcaDipperV2" -> "dca_dipper_v2"
src/modules/strategy/v2/strategy_registry.ts:170
↓ 1 callersMethodclosePosition
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:212
↓ 1 callersMethodclosePosition
* Close a swap/futures position via limit or market order
src/profile/profile_service.ts:220
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/obv_pump_dump.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
* Test fixture: BTC/USDT 15m candles (DESC order - newest first)
test/modules/strategy/v2/strategies/playground.test.ts:23
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/cci.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/parabolicsar.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/trader.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/pivot_reversal_strategy.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/cci_macd.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
* Test fixture: BTC/USDT 15m candles (DESC order - newest first)
test/modules/strategy/v2/strategies/dca_dipper.test.ts:23
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/noop.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/dip_catcher.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/awesome_oscillator_cross_zero.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/modules/strategy/v2/strategies/macd.test.ts:17
↓ 1 callersFunctioncreateCandleFixtures
()
test/utils/technical_pattern.test.ts:31
↓ 1 callersFunctioncreateCandleFixtures
* Test fixture: BTC/USD 5m candles * * IMPORTANT: This fixture is in DESC order (newest first) * Indicators expect ASC order (oldest first) * Test
test/utils/indicators.test.ts:13
↓ 1 callersFunctioncreateCandlestickInstances
* Create Candlestick instances from raw fixture data
test/modules/strategy/v2/indicator_calculator.test.ts:240
↓ 1 callersMethodcreateMailer
()
src/modules/services.ts:177
↓ 1 callersMethodcreateProfile
(data: Partial<Profile>)
src/profile/profile_service.ts:39
↓ 1 callersMethodcreateTelegram
()
src/modules/services.ts:178
↓ 1 callersMethodcreateTradeInstance
()
src/modules/services.ts:176
↓ 1 callersMethodcreateUUID
()
src/utils/winston_sqlite_transport.ts:50
↓ 1 callersMethodcreateWebserverInstance
()
src/modules/services.ts:166
↓ 1 callersMethodexecute
* Execute strategy on candles and return raw signals * This is the core method reusable for both backtesting and live trading
src/modules/strategy/v2/typed_backtest.ts:97
↓ 1 callersMethodexecuteSignal
* Execute a trade signal via CCXT through ProfileService. * * close + futures pair → closePosition() at market * close + spot pair → sel
src/strategy/bot_runner.ts:137
↓ 1 callersMethodexecuteStrategy
* Execute a strategy for live trading — fetches candles, runs strategy, returns the latest signal. * Requires live trading deps to be passed to the
src/modules/strategy/v2/typed_backtest.ts:172
↓ 1 callersMethodfetchAndStore
([exchange, symbol, period]: PrefillJob)
src/modules/system/ccxt_candle_prefill_service.ts:84
↓ 1 callersMethodfetchCoinGeckoRankings
* Fetch top coins from CoinGecko (cached for 6 hours)
src/modules/profile_pair_service.ts:38
↓ 1 callersMethodfetchCombinedCandles
( mainExchange: string, symbol: string, period: string, exchanges: ExchangeSymbolPair[] = [],
src/modules/exchange/exchange_candle_combine.ts:12
↓ 1 callersMethodfetchCombinedCandlesSince
( mainExchange: string, symbol: string, period: string, exchanges: ExchangeSymbolPair[] = [],
src/modules/exchange/exchange_candle_combine.ts:28
↓ 1 callersMethodfetchDirect
* Fetch 500 candles from the exchange REST API and return them immediately. * No DB storage — caller uses the candles directly.
src/modules/system/ccxt_candle_prefill_service.ts:80
↓ 1 callersMethodfetchJSON
(url: string)
src/modules/system/symbol_search_service.ts:36
↓ 1 callersFunctionfetchOpenOrders
( exchange: ccxt.Exchange, pair?: string )
src/profile/profile_order_service.ts:176
↓ 1 callersMethodfetchTickerPublic
* Fetch ticker/market data using public (unauthenticated) exchange. * Use this for watch mode bots that don't need authentication.
src/profile/profile_service.ts:155
↓ 1 callersMethodflush
()
src/modules/system/ccxt_candle_watch_service.ts:111
↓ 1 callersFunctionformatPrice
(price)
web/static/js/orders.js:13
↓ 1 callersMethodformatResultForView
* Format backtest result for view template
src/controller/backtest_controller.ts:225
↓ 1 callersMethodgetAvailableStrategies
* Get list of all available strategy names (built-in + discovered from files)
src/modules/strategy/v2/strategy_registry.ts:187
↓ 1 callersMethodgetBacktestController
(templateHelpers: any)
src/modules/services.ts:190
↓ 1 callersMethodgetBacktestPairs
* Get available pairs for backtest dropdown
src/controller/backtest_controller.ts:191
↓ 1 callersMethodgetBinancePriceService
()
src/modules/services.ts:205
↓ 1 callersFunctiongetBollingerBandPercent
(currentPrice: number, upper: number, lower: number)
src/modules/ta.ts:2
↓ 1 callersMethodgetBot
(profileId: string, botId: string)
src/profile/profile_service.ts:240
↓ 1 callersMethodgetBotRunner
()
src/modules/services.ts:204
← previousnext →101–200 of 500, ranked by callers