MCPcopy Create free account

hub / github.com/JakeNesler/Claude_Prophet / functions

Functions228 in github.com/JakeNesler/Claude_Prophet

↓ 33 callersFunctioncallTradingBot
(endpoint, method = 'GET', data = null)
mcp-server.js:30
↓ 9 callersMethodPlaceOrder
(ctx context.Context, order *Order)
interfaces/trading.go:10
↓ 8 callersMethodCancelOrder
(ctx context.Context, orderID string)
interfaces/trading.go:11
↓ 8 callersMethodsaveLog
saveLog saves the current log to disk
services/activity_logger.go:395
↓ 7 callersMethodfetchRSSFeed
fetchRSSFeed is a helper method to fetch and parse any RSS feed
services/news_service.go:153
↓ 7 callersFunctionmin
(a, b int)
controllers/intelligence_controller.go:236
↓ 6 callersMethodClose
Close closes the database connection
database/storage.go:351
↓ 6 callersMethodGetOrder
(ctx context.Context, orderID string)
interfaces/trading.go:12
↓ 6 callersFunctiongetEnvOrDefault
(key, defaultValue string)
config/config.go:47
↓ 6 callersMethodsavePositionToDB
savePositionToDB saves a managed position to database
services/position_manager.go:819
↓ 5 callersMethodGetPositions
(ctx context.Context)
interfaces/trading.go:14
↓ 4 callersMethodGetGoogleNewsByTopic
GetGoogleNewsByTopic fetches news for a specific topic Topics: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH
services/news_service.go:75
↓ 4 callersMethodGetGoogleNewsSearch
GetGoogleNewsSearch fetches news for a specific search query
services/news_service.go:98
↓ 3 callersFunctionCalculateSMA
CalculateSMA calculates Simple Moving Average
services/technical_analysis.go:60
↓ 3 callersMethodGetAccount
GetAccount retrieves account information
controllers/order_controller.go:199
↓ 3 callersMethodGetAccount
(ctx context.Context)
interfaces/trading.go:15
↓ 3 callersMethodGetLatestQuote
(ctx context.Context, symbol string)
interfaces/trading.go:29
↓ 3 callersMethodSaveOrder
(order *Order)
interfaces/trading.go:38
↓ 3 callersMethodStop
Stop stops the position manager
services/position_manager.go:787
↓ 3 callersMethodplaceStopLossOrder
placeStopLossOrder places or updates stop loss order
services/position_manager.go:374
↓ 2 callersMethodAnalyzeStock
AnalyzeStock provides comprehensive analysis for a single stock
services/stock_analysis_service.go:105
↓ 2 callersMethodBuy
Buy executes a buy order
controllers/order_controller.go:62
↓ 2 callersMethodCleanNewsForTrading
CleanNewsForTrading takes raw news items and creates a token-efficient summary optimized for trading decisions
services/gemini_service.go:77
↓ 2 callersMethodGetAllMarketWatchNews
GetAllMarketWatchNews aggregates all MarketWatch feeds
services/news_service.go:130
↓ 2 callersMethodGetHistoricalBars
(ctx context.Context, symbol string, start, end time.Time, timeframe string)
interfaces/trading.go:27
↓ 2 callersMethodGetLatestBar
(ctx context.Context, symbol string)
interfaces/trading.go:28
↓ 2 callersMethodGetMarketWatchBulletins
GetMarketWatchBulletins fetches breaking news bulletins from MarketWatch
services/news_service.go:118
↓ 2 callersMethodGetMarketWatchMarketPulse
GetMarketWatchMarketPulse fetches market pulse updates from MarketWatch
services/news_service.go:124
↓ 2 callersMethodGetMarketWatchTopStories
GetMarketWatchTopStories fetches top stories from MarketWatch
services/news_service.go:106
↓ 2 callersMethodSell
Sell executes a sell order
controllers/order_controller.go:108
↓ 2 callersMethodStartSession
StartSession initializes a new trading session for the day
services/activity_logger.go:119
↓ 2 callersFunctionaverage
Helper functions
services/technical_analysis.go:171
↓ 2 callersFunctioncalculateEMA
(bars []*interfaces.Bar, period int)
services/technical_analysis.go:182
↓ 2 callersFunctioncontains
Helper function for case-insensitive string matching
services/news_service.go:226
↓ 2 callersMethodconvertAlpacaOrder
Helper function to convert Alpaca order to our interface
services/alpaca_trading.go:185
↓ 2 callersMethodgenerateContent
generateContent calls the Gemini API
services/gemini_service.go:158
↓ 2 callersMethodgetCurrentPrice
(ctx context.Context, symbol string)
services/position_manager.go:733
↓ 2 callersFunctiongetEmbedding
(text)
vectorDB.js:56
↓ 2 callersFunctiongetEmbeddingCount
()
vectorDB.js:270
↓ 2 callersFunctionstoreTrade
(trade)
vectorDB.js:82
↓ 2 callersFunctionstoreTrade
(tradeData)
seed_data/load_seed_data.js:19
↓ 1 callersMethodAnalyzeStocks
AnalyzeStocks analyzes multiple stocks and returns comprehensive analysis
services/stock_analysis_service.go:87
↓ 1 callersFunctionCalculateMACD
CalculateMACD calculates MACD indicator
services/technical_analysis.go:109
↓ 1 callersFunctionCalculateRSI
CalculateRSI calculates Relative Strength Index
services/technical_analysis.go:75
↓ 1 callersMethodCancelOrder
CancelOrder cancels an existing order
controllers/order_controller.go:172
↓ 1 callersMethodCleanupOldData
(before time.Time)
interfaces/trading.go:41
↓ 1 callersMethodCloseManagedPosition
CloseManagedPosition manually closes a managed position
services/position_manager.go:625
↓ 1 callersMethodEndSession
EndSession closes the current trading session
services/activity_logger.go:144
↓ 1 callersMethodGetAllManagedPositions
GetAllManagedPositions retrieves all managed positions with optional status filter
database/storage.go:325
↓ 1 callersMethodGetBars
(symbol string, start, end time.Time)
interfaces/trading.go:37
↓ 1 callersMethodGetCurrentLog
GetCurrentLog returns the current session's log
services/activity_logger.go:348
↓ 1 callersMethodGetGoogleNews
GetGoogleNews fetches the latest news from Google News RSS feed
services/news_service.go:68
↓ 1 callersMethodGetLatestNews
GetLatestNews returns the most recent N news items
services/news_service.go:193
↓ 1 callersMethodGetLogForDate
GetLogForDate retrieves the log for a specific date
services/activity_logger.go:356
↓ 1 callersMethodGetManagedPosition
GetManagedPosition retrieves a managed position by ID
database/storage.go:313
↓ 1 callersMethodGetMarketWatchRealtimeHeadlines
GetMarketWatchRealtimeHeadlines fetches real-time headlines from MarketWatch
services/news_service.go:112
↓ 1 callersMethodGetOptionsChain
(ctx context.Context, underlying string, expiration time.Time)
interfaces/trading.go:19
↓ 1 callersMethodGetOptionsPosition
(ctx context.Context, symbol string)
interfaces/trading.go:21
↓ 1 callersMethodGetOrders
(status string)
interfaces/trading.go:40
↓ 1 callersMethodGetPositions
GetPositions retrieves current positions
controllers/order_controller.go:193
↓ 1 callersMethodListAvailableLogs
ListAvailableLogs returns a list of all available log dates
services/activity_logger.go:373
↓ 1 callersMethodListManagedPositions
ListManagedPositions returns all managed positions Filters out PENDING positions older than 24 hours (stale orders)
services/position_manager.go:595
↓ 1 callersMethodListOptionsPositions
(ctx context.Context)
interfaces/trading.go:22
↓ 1 callersMethodListOrders
(ctx context.Context, status string)
interfaces/trading.go:13
↓ 1 callersFunctionLoad
()
config/config.go:25
↓ 1 callersMethodLogActivity
LogActivity logs a general activity
services/activity_logger.go:169
↓ 1 callersMethodMonitorPositions
MonitorPositions monitors all active positions and manages risk
services/position_manager.go:271
↓ 1 callersFunctionNewActivityController
NewActivityController creates a new activity controller
controllers/activity_controller.go:16
↓ 1 callersFunctionNewActivityLogger
NewActivityLogger creates a new activity logger
services/activity_logger.go:103
↓ 1 callersFunctionNewAlpacaDataService
NewAlpacaDataService creates a new Alpaca data service
services/alpaca_data.go:20
↓ 1 callersFunctionNewAlpacaTradingService
NewAlpacaTradingService creates a new Alpaca trading service
services/alpaca_trading.go:28
↓ 1 callersFunctionNewGeminiService
NewGeminiService creates a new Gemini service
services/gemini_service.go:61
↓ 1 callersFunctionNewIntelligenceController
NewIntelligenceController creates a new intelligence controller
controllers/intelligence_controller.go:23
↓ 1 callersFunctionNewLocalStorage
NewLocalStorage creates a new local storage service
database/storage.go:24
↓ 1 callersFunctionNewNewsController
NewNewsController creates a new news controller
controllers/news_controller.go:17
↓ 1 callersFunctionNewNewsService
NewNewsService creates a new news service
services/news_service.go:59
↓ 1 callersFunctionNewOrderController
NewOrderController creates a new order controller
controllers/order_controller.go:23
↓ 1 callersFunctionNewPositionManagementController
NewPositionManagementController creates a new position management controller
controllers/position_controller.go:16
↓ 1 callersFunctionNewPositionManager
NewPositionManager creates a new position manager
services/position_manager.go:114
↓ 1 callersFunctionNewStockAnalysisService
NewStockAnalysisService creates a new stock analysis service
services/stock_analysis_service.go:22
↓ 1 callersFunctionNewTechnicalAnalysisService
NewTechnicalAnalysisService creates a new technical analysis service
services/technical_analysis.go:16
↓ 1 callersMethodPlaceManagedPosition
PlaceManagedPosition opens a new managed position with automated risk management
services/position_manager.go:145
↓ 1 callersMethodPlaceOptionsOrder
Options trading methods
interfaces/trading.go:18
↓ 1 callersMethodSaveAccountSnapshot
SaveAccountSnapshot saves an account snapshot
database/storage.go:266
↓ 1 callersMethodSaveManagedPosition
SaveManagedPosition saves a managed position to the database
database/storage.go:304
↓ 1 callersMethodSavePosition
Additional helper methods SavePosition saves a position snapshot
database/storage.go:243
↓ 1 callersMethodToCompact
ToCompact converts a NewsItem to a compact version
services/news_service.go:31
↓ 1 callersFunctionanalyzeVolume
(bars []*interfaces.Bar)
services/technical_analysis.go:217
↓ 1 callersFunctionbackfillAll
* Backfill all decision logs
backfill_embeddings.js:103
↓ 1 callersFunctioncalculateMomentum
(bars []*interfaces.Bar)
services/technical_analysis.go:200
↓ 1 callersMethodcalculatePartialExitPrice
(entryPrice, targetPercent float64, side string)
services/position_manager.go:774
↓ 1 callersMethodcalculateQuantity
(allocation, price float64)
services/position_manager.go:746
↓ 1 callersMethodcalculateRSI
calculateRSI calculates the Relative Strength Index
services/stock_analysis_service.go:257
↓ 1 callersMethodcalculateStopLoss
(entryPrice float64, stopPrice *float64, stopPercent *float64, side string)
services/position_manager.go:750
↓ 1 callersMethodcalculateTakeProfit
(entryPrice float64, profitPrice *float64, profitPercent *float64, side string)
services/position_manager.go:762
↓ 1 callersMethodcalculateTechnicalIndicators
calculateTechnicalIndicators calculates technical indicators from historical bars
services/stock_analysis_service.go:170
↓ 1 callersMethodcheckEntryOrder
checkEntryOrder checks if entry order has filled
services/position_manager.go:327
↓ 1 callersMethodcheckPositions
checkPositions checks all positions and manages their risk orders
services/position_manager.go:289
↓ 1 callersFunctionclearAllEmbeddings
()
vectorDB.js:261
↓ 1 callersFunctioncountUniqueSources
(items []NewsItem)
services/gemini_service.go:220
next →1–100 of 228, ranked by callers