MCPcopy Create free account

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

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

↓ 52 callersMethodlog
(info: LogInfo, callback: () => void)
src/utils/winston_sqlite_transport.ts:33
↓ 49 callersMethodget
* Get a value from cache
src/utils/file_cache.ts:33
↓ 47 callersMethodexecute
(context: TypedStrategyContext<TIndicators>, signal: StrategySignal)
src/strategy/strategy.ts:201
↓ 35 callersMethodgetOptions
()
src/strategy/strategy.ts:202
↓ 32 callersFunctioncreateIndicator
(name: K, options: IndicatorOptions<K> = {})
src/strategy/strategy.ts:136
↓ 27 callersMethoddebugAll
(values: Record<string, any>)
src/strategy/strategy.ts:189
↓ 18 callersMethodgetConfig
()
src/modules/services.ts:179
↓ 18 callersMethodgetIndicatorSlice
(key: K, count: number)
src/strategy/strategy.ts:174
↓ 17 callersMethodset
* Set a value in cache with TTL in seconds * @throws Error if value contains non-JSON-serializable types (Map, Set, etc.)
src/utils/file_cache.ts:52
↓ 15 callersMethodall
(parameters?: any)
src/repository/candlestick_repository.ts:10
↓ 15 callersFunctioncreateOrderService
Create OrderService with mocked logger
test/profile/profile_order_service.test.ts:42
↓ 15 callersMethodgetProfile
(id: string)
src/profile/profile_service.ts:35
↓ 14 callersMethoddefineIndicators
()
src/strategy/strategy.ts:200
↓ 14 callersMethodgetDescription
()
src/strategy/strategy.ts:199
↓ 14 callersMethodprepare
(sql: string)
src/repository/candlestick_repository.ts:5
↓ 13 callersMethodgetProfiles
()
src/profile/profile_service.ts:31
↓ 13 callersMethodregisterRoutes
(router: express.Router)
src/controller/base_controller.ts:4
↓ 12 callersMethodclose
()
src/strategy/strategy.ts:188
↓ 12 callersMethodgoLong
()
src/strategy/strategy.ts:186
↓ 12 callersMethodnullIfEmpty
(value: string | undefined)
src/controller/settings_controller.ts:160
↓ 11 callersFunctioncalculateIndicators
( candles: Candlestick[], definitions: T )
src/modules/strategy/v2/indicator_calculator.ts:24
↓ 11 callersFunctionclosePosition
( exchange: ccxt.Exchange, symbol: string, type: 'limit' | 'market' )
src/profile/profile_order_service.ts:305
↓ 11 callersFunctionstubPositions
Stub fetchPositions directly on the exchange instance (avoids ts-mockito matcher-stack skew)
test/profile/profile_order_service.test.ts:32
↓ 10 callersFunctionconvertPeriodToMinute
(period: string)
src/utils/resample.ts:89
↓ 10 callersMethodcreateStrategy
* Create a strategy instance by name with options * Loads fresh from var/strategies if not a built-in strategy
src/modules/strategy/v2/strategy_registry.ts:217
↓ 10 callersMethodgetLogger
()
src/modules/services.ts:163
↓ 9 callersFunctionexecuteSimpleTalib
* Execute a simple talib indicator that returns a single array of values
src/utils/indicators.ts:202
↓ 9 callersMethodgetExchangeForProfile
* Get a cached exchange instance by profile ID (1-hour TTL).
src/profile/profile_service.ts:135
↓ 9 callersMethodgetIndicator
(key: K)
src/strategy/strategy.ts:164
↓ 9 callersMethodgoShort
()
src/strategy/strategy.ts:187
↓ 9 callersMethodplaceLimitOrder
* Places a limit order on the exchange
src/profile/profile_order_service.ts:54
↓ 9 callersMethodreadConfig
()
src/modules/system/config_service.ts:124
↓ 9 callersMethodsend
(message: string)
src/notify/notify.ts:2
↓ 8 callersMethodfetchTicker
* Fetch ticker/market data for a pair using authenticated exchange
src/profile/profile_service.ts:146
↓ 8 callersMethodgetDesks
()
src/modules/system/desk_service.ts:6
↓ 8 callersFunctionmockExchange
Build a non-Bybit exchange mock with a given id
test/profile/profile_order_service.test.ts:16
↓ 8 callersMethodplaceMarketOrder
* Places a market order on the exchange * If isQuoteCurrency is true, converts quote amount to base amount first
src/profile/profile_order_service.ts:114
↓ 8 callersFunctionroundAmountDown
(value: number, precision: number | undefined)
src/profile/profile_order_service.ts:39
↓ 8 callersFunctiontalibExecute
* Execute talib synchronously (talib now supports sync calls)
src/utils/indicators.ts:123
↓ 7 callersMethodgetDatabase
()
src/modules/services.ts:157
↓ 7 callersMethodrun
(parameters?: any)
src/repository/candlestick_repository.ts:11
↓ 6 callersMethodgetCcxtCandleWatchService
()
src/modules/services.ts:185
↓ 6 callersMethodgetSystemUtil
()
src/modules/services.ts:167
↓ 6 callersMethodisFlat
()
src/strategy/strategy.ts:162
↓ 6 callersMethodsaveProfiles
(profiles: Profile[])
src/modules/system/config_service.ts:185
↓ 5 callersMethodfetchOpenOrders
* Fetch open orders for a profile/pair
src/profile/profile_service.ts:163
↓ 5 callersMethodgetAllPairs
* Get all pairs for a list of profiles with caching per exchange
src/modules/profile_pair_service.ts:74
↓ 5 callersMethodgetProfileService
()
src/modules/services.ts:198
↓ 5 callersMethodgetStrategyClass
* Find a strategy class by name (loads fresh from file if not built-in)
src/modules/strategy/v2/strategy_registry.ts:196
↓ 5 callersFunctiongetTechnicalIndicators
()
src/utils/indicators.ts:70
↓ 5 callersFunctionpluck
(result: any[], key: string)
test/modules/strategy/v2/indicator_calculator.test.ts:250
↓ 5 callersMethodstripHtml
(html: string)
src/modules/system/symbol_search_service.ts:57
↓ 4 callersMethodassetVersion
()
src/controller/base_controller.ts:12
↓ 4 callersMethodenqueue
(jobs: PrefillJob[])
src/modules/system/ccxt_candle_prefill_service.ts:23
↓ 4 callersFunctionexecuteCandleTalib
* Execute a candle-based talib indicator that returns a single array of values
src/utils/indicators.ts:216
↓ 4 callersMethodgetAllStrategyInfo
* Get info for all strategies (discovers from var/strategies each time)
src/modules/strategy/v2/strategy_registry.ts:238
↓ 4 callersMethodgetBotSettings
()
src/modules/system/config_service.ts:206
↓ 4 callersMethodgetCandlestickRepository
()
src/modules/services.ts:161
↓ 4 callersMethodgetExchangeInstanceService
()
src/modules/services.ts:197
↓ 4 callersMethodgetPublicExchange
* Returns a cached public (unauthenticated) exchange instance with markets already loaded. * Creates a new instance on first call or after the 1-ho
src/modules/system/exchange_instance_service.ts:26
↓ 4 callersMethodgetStrategyId
* Get strategy identifier from class
src/modules/strategy/v2/strategy_registry.ts:180
↓ 4 callersMethodinsertCandles
(candles: ExchangeCandlestick[])
src/modules/system/candle_importer.ts:39
↓ 4 callersMethodkey
([exchange, symbol, period]: PrefillJob)
src/modules/system/ccxt_candle_prefill_service.ts:40
↓ 4 callersMethodrestart
* Called when dashboard settings are saved. Stops old subscriptions and * starts new ones reflecting the updated pairs/periods configuration.
src/modules/system/ccxt_candle_watch_service.ts:92
↓ 4 callersFunctionroundToPrecision
(value: number, precision: number | undefined)
src/profile/profile_order_service.ts:31
↓ 4 callersMethodwriteConfig
(config: Config)
src/modules/system/config_service.ts:136
↓ 3 callersFunctionbuildTradingViewSymbol
(exchange: string, pair: string)
src/utils/tradingview_util.ts:5
↓ 3 callersFunctioncalcPercent
(value: number, total: number)
src/utils/indicators.ts:865
↓ 3 callersFunctioncalculateBollingerBandsPadded
* Calculate BB (padded version - what we expect)
test/modules/strategy/v2/indicator_calculator.test.ts:29
↓ 3 callersFunctioncalculateHmaPadded
* Calculate HMA (padded version)
test/modules/strategy/v2/indicator_calculator.test.ts:78
↓ 3 callersFunctioncalculateWMA
* Simple WMA helper for custom indicators (HMA)
src/utils/indicators.ts:324
↓ 3 callersFunctiondraw
()
web/static/js/backtest.js:257
↓ 3 callersMethodfetchClosedOrders
* Fetch closed/filled orders for a profile
src/profile/profile_service.ts:171
↓ 3 callersMethodgetCandleImporter
()
src/modules/services.ts:159
↓ 3 callersMethodgetDashboardConfigService
()
src/modules/services.ts:183
↓ 3 callersFunctiongetMaTypeFromString
(maType: string)
src/utils/indicators.ts:628
↓ 3 callersMethodgetProfilePairService
()
src/modules/services.ts:199
↓ 3 callersMethodgetProfiles
()
src/modules/system/config_service.ts:180
↓ 3 callersMethodgetSupportedExchanges
()
src/profile/profile_service.ts:125
↓ 3 callersMethodgetV2StrategyRegistry
()
src/modules/services.ts:202
↓ 3 callersMethodisValidCandleStickLookback
(lookbackNewestFirst: CandlestickLookback[], period: string)
src/utils/technical_analysis_validator.ts:8
↓ 3 callersMethodisValidStrategy
* Check if a strategy name is valid
src/modules/strategy/v2/strategy_registry.ts:226
↓ 3 callersMethodmemoryUsage
()
src/controller/base_controller.ts:14
↓ 3 callersFunctionmockBybit
Build a Bybit exchange mock (id contains 'bybit')
test/profile/profile_order_service.test.ts:24
↓ 3 callersMethodplaceOrder
* Place an order (limit or market)
src/profile/profile_service.ts:191
↓ 3 callersFunctionresampleMinutes
(lookbackNewestFirst: Candlestick[], minutes: number)
src/utils/resample.ts:19
↓ 3 callersMethodsaveDesks
(desks: Desk[])
src/modules/system/desk_service.ts:14
↓ 3 callersFunctionwma
(data: number[], p: number)
test/modules/strategy/v2/indicator_calculator.test.ts:83
↓ 2 callersMethodadd
(promise: () => Promise<any>)
src/utils/queue.ts:28
↓ 2 callersFunctioncalcPercent
(v: number, t: number)
test/utils/indicators.test.ts:373
↓ 2 callersFunctioncalculateSMA
* Simple SMA helper for custom indicators
src/utils/indicators.ts:309
↓ 2 callersFunctioncalculateSmaPadded
* Calculate SMA (padded version)
test/modules/strategy/v2/indicator_calculator.test.ts:58
↓ 2 callersMethodcancelOrder
(req: express.Request, res: express.Response)
src/controller/profile_controller.ts:173
↓ 2 callersFunctioncandles2MarketData
( candles: CandleSource, length: number = 1000, keys: string[] = ['open', 'close', 'high', 'low', 'volum
src/utils/indicators.ts:77
↓ 2 callersMethodcleanOldLogEntries
(days: number = 7)
src/repository/logs_repository.ts:39
↓ 2 callersMethodcombinedCandles
( candlesAwait: Promise<Candlestick[]>, mainExchange: string, symbol: string, period: string,
src/modules/exchange/exchange_candle_combine.ts:48
↓ 2 callersFunctioncreateCandleFixtures
* Test fixture: BTC/USD 5m candles
test/modules/strategy/v2/indicator_calculator.test.ts:20
↓ 2 callersFunctioncreateCandleFixtures
()
test/utils/resample.test.ts:92
↓ 2 callersMethoddiscoverStrategyFiles
* Discover all strategy files in var/strategies directory * Returns array of {name, filePath}
src/modules/strategy/v2/strategy_registry.ts:95
↓ 2 callersMethodenqueuePrefill
()
src/controller/dashboard_settings_controller.ts:100
next →1–100 of 500, ranked by callers