Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JakeNesler/Claude_Prophet
/ functions
Functions
228 in github.com/JakeNesler/Claude_Prophet
⨍
Functions
228
◇
Types & classes
81
↓ 33 callers
Function
callTradingBot
(endpoint, method = 'GET', data = null)
mcp-server.js:30
↓ 9 callers
Method
PlaceOrder
(ctx context.Context, order *Order)
interfaces/trading.go:10
↓ 8 callers
Method
CancelOrder
(ctx context.Context, orderID string)
interfaces/trading.go:11
↓ 8 callers
Method
saveLog
saveLog saves the current log to disk
services/activity_logger.go:395
↓ 7 callers
Method
fetchRSSFeed
fetchRSSFeed is a helper method to fetch and parse any RSS feed
services/news_service.go:153
↓ 7 callers
Function
min
(a, b int)
controllers/intelligence_controller.go:236
↓ 6 callers
Method
Close
Close closes the database connection
database/storage.go:351
↓ 6 callers
Method
GetOrder
(ctx context.Context, orderID string)
interfaces/trading.go:12
↓ 6 callers
Function
getEnvOrDefault
(key, defaultValue string)
config/config.go:47
↓ 6 callers
Method
savePositionToDB
savePositionToDB saves a managed position to database
services/position_manager.go:819
↓ 5 callers
Method
GetPositions
(ctx context.Context)
interfaces/trading.go:14
↓ 4 callers
Method
GetGoogleNewsByTopic
GetGoogleNewsByTopic fetches news for a specific topic Topics: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH
services/news_service.go:75
↓ 4 callers
Method
GetGoogleNewsSearch
GetGoogleNewsSearch fetches news for a specific search query
services/news_service.go:98
↓ 3 callers
Function
CalculateSMA
CalculateSMA calculates Simple Moving Average
services/technical_analysis.go:60
↓ 3 callers
Method
GetAccount
GetAccount retrieves account information
controllers/order_controller.go:199
↓ 3 callers
Method
GetAccount
(ctx context.Context)
interfaces/trading.go:15
↓ 3 callers
Method
GetLatestQuote
(ctx context.Context, symbol string)
interfaces/trading.go:29
↓ 3 callers
Method
SaveOrder
(order *Order)
interfaces/trading.go:38
↓ 3 callers
Method
Stop
Stop stops the position manager
services/position_manager.go:787
↓ 3 callers
Method
placeStopLossOrder
placeStopLossOrder places or updates stop loss order
services/position_manager.go:374
↓ 2 callers
Method
AnalyzeStock
AnalyzeStock provides comprehensive analysis for a single stock
services/stock_analysis_service.go:105
↓ 2 callers
Method
Buy
Buy executes a buy order
controllers/order_controller.go:62
↓ 2 callers
Method
CleanNewsForTrading
CleanNewsForTrading takes raw news items and creates a token-efficient summary optimized for trading decisions
services/gemini_service.go:77
↓ 2 callers
Method
GetAllMarketWatchNews
GetAllMarketWatchNews aggregates all MarketWatch feeds
services/news_service.go:130
↓ 2 callers
Method
GetHistoricalBars
(ctx context.Context, symbol string, start, end time.Time, timeframe string)
interfaces/trading.go:27
↓ 2 callers
Method
GetLatestBar
(ctx context.Context, symbol string)
interfaces/trading.go:28
↓ 2 callers
Method
GetMarketWatchBulletins
GetMarketWatchBulletins fetches breaking news bulletins from MarketWatch
services/news_service.go:118
↓ 2 callers
Method
GetMarketWatchMarketPulse
GetMarketWatchMarketPulse fetches market pulse updates from MarketWatch
services/news_service.go:124
↓ 2 callers
Method
GetMarketWatchTopStories
GetMarketWatchTopStories fetches top stories from MarketWatch
services/news_service.go:106
↓ 2 callers
Method
Sell
Sell executes a sell order
controllers/order_controller.go:108
↓ 2 callers
Method
StartSession
StartSession initializes a new trading session for the day
services/activity_logger.go:119
↓ 2 callers
Function
average
Helper functions
services/technical_analysis.go:171
↓ 2 callers
Function
calculateEMA
(bars []*interfaces.Bar, period int)
services/technical_analysis.go:182
↓ 2 callers
Function
contains
Helper function for case-insensitive string matching
services/news_service.go:226
↓ 2 callers
Method
convertAlpacaOrder
Helper function to convert Alpaca order to our interface
services/alpaca_trading.go:185
↓ 2 callers
Method
generateContent
generateContent calls the Gemini API
services/gemini_service.go:158
↓ 2 callers
Method
getCurrentPrice
(ctx context.Context, symbol string)
services/position_manager.go:733
↓ 2 callers
Function
getEmbedding
(text)
vectorDB.js:56
↓ 2 callers
Function
getEmbeddingCount
()
vectorDB.js:270
↓ 2 callers
Function
storeTrade
(trade)
vectorDB.js:82
↓ 2 callers
Function
storeTrade
(tradeData)
seed_data/load_seed_data.js:19
↓ 1 callers
Method
AnalyzeStocks
AnalyzeStocks analyzes multiple stocks and returns comprehensive analysis
services/stock_analysis_service.go:87
↓ 1 callers
Function
CalculateMACD
CalculateMACD calculates MACD indicator
services/technical_analysis.go:109
↓ 1 callers
Function
CalculateRSI
CalculateRSI calculates Relative Strength Index
services/technical_analysis.go:75
↓ 1 callers
Method
CancelOrder
CancelOrder cancels an existing order
controllers/order_controller.go:172
↓ 1 callers
Method
CleanupOldData
(before time.Time)
interfaces/trading.go:41
↓ 1 callers
Method
CloseManagedPosition
CloseManagedPosition manually closes a managed position
services/position_manager.go:625
↓ 1 callers
Method
EndSession
EndSession closes the current trading session
services/activity_logger.go:144
↓ 1 callers
Method
GetAllManagedPositions
GetAllManagedPositions retrieves all managed positions with optional status filter
database/storage.go:325
↓ 1 callers
Method
GetBars
(symbol string, start, end time.Time)
interfaces/trading.go:37
↓ 1 callers
Method
GetCurrentLog
GetCurrentLog returns the current session's log
services/activity_logger.go:348
↓ 1 callers
Method
GetGoogleNews
GetGoogleNews fetches the latest news from Google News RSS feed
services/news_service.go:68
↓ 1 callers
Method
GetLatestNews
GetLatestNews returns the most recent N news items
services/news_service.go:193
↓ 1 callers
Method
GetLogForDate
GetLogForDate retrieves the log for a specific date
services/activity_logger.go:356
↓ 1 callers
Method
GetManagedPosition
GetManagedPosition retrieves a managed position by ID
database/storage.go:313
↓ 1 callers
Method
GetMarketWatchRealtimeHeadlines
GetMarketWatchRealtimeHeadlines fetches real-time headlines from MarketWatch
services/news_service.go:112
↓ 1 callers
Method
GetOptionsChain
(ctx context.Context, underlying string, expiration time.Time)
interfaces/trading.go:19
↓ 1 callers
Method
GetOptionsPosition
(ctx context.Context, symbol string)
interfaces/trading.go:21
↓ 1 callers
Method
GetOrders
(status string)
interfaces/trading.go:40
↓ 1 callers
Method
GetPositions
GetPositions retrieves current positions
controllers/order_controller.go:193
↓ 1 callers
Method
ListAvailableLogs
ListAvailableLogs returns a list of all available log dates
services/activity_logger.go:373
↓ 1 callers
Method
ListManagedPositions
ListManagedPositions returns all managed positions Filters out PENDING positions older than 24 hours (stale orders)
services/position_manager.go:595
↓ 1 callers
Method
ListOptionsPositions
(ctx context.Context)
interfaces/trading.go:22
↓ 1 callers
Method
ListOrders
(ctx context.Context, status string)
interfaces/trading.go:13
↓ 1 callers
Function
Load
()
config/config.go:25
↓ 1 callers
Method
LogActivity
LogActivity logs a general activity
services/activity_logger.go:169
↓ 1 callers
Method
MonitorPositions
MonitorPositions monitors all active positions and manages risk
services/position_manager.go:271
↓ 1 callers
Function
NewActivityController
NewActivityController creates a new activity controller
controllers/activity_controller.go:16
↓ 1 callers
Function
NewActivityLogger
NewActivityLogger creates a new activity logger
services/activity_logger.go:103
↓ 1 callers
Function
NewAlpacaDataService
NewAlpacaDataService creates a new Alpaca data service
services/alpaca_data.go:20
↓ 1 callers
Function
NewAlpacaTradingService
NewAlpacaTradingService creates a new Alpaca trading service
services/alpaca_trading.go:28
↓ 1 callers
Function
NewGeminiService
NewGeminiService creates a new Gemini service
services/gemini_service.go:61
↓ 1 callers
Function
NewIntelligenceController
NewIntelligenceController creates a new intelligence controller
controllers/intelligence_controller.go:23
↓ 1 callers
Function
NewLocalStorage
NewLocalStorage creates a new local storage service
database/storage.go:24
↓ 1 callers
Function
NewNewsController
NewNewsController creates a new news controller
controllers/news_controller.go:17
↓ 1 callers
Function
NewNewsService
NewNewsService creates a new news service
services/news_service.go:59
↓ 1 callers
Function
NewOrderController
NewOrderController creates a new order controller
controllers/order_controller.go:23
↓ 1 callers
Function
NewPositionManagementController
NewPositionManagementController creates a new position management controller
controllers/position_controller.go:16
↓ 1 callers
Function
NewPositionManager
NewPositionManager creates a new position manager
services/position_manager.go:114
↓ 1 callers
Function
NewStockAnalysisService
NewStockAnalysisService creates a new stock analysis service
services/stock_analysis_service.go:22
↓ 1 callers
Function
NewTechnicalAnalysisService
NewTechnicalAnalysisService creates a new technical analysis service
services/technical_analysis.go:16
↓ 1 callers
Method
PlaceManagedPosition
PlaceManagedPosition opens a new managed position with automated risk management
services/position_manager.go:145
↓ 1 callers
Method
PlaceOptionsOrder
Options trading methods
interfaces/trading.go:18
↓ 1 callers
Method
SaveAccountSnapshot
SaveAccountSnapshot saves an account snapshot
database/storage.go:266
↓ 1 callers
Method
SaveManagedPosition
SaveManagedPosition saves a managed position to the database
database/storage.go:304
↓ 1 callers
Method
SavePosition
Additional helper methods SavePosition saves a position snapshot
database/storage.go:243
↓ 1 callers
Method
ToCompact
ToCompact converts a NewsItem to a compact version
services/news_service.go:31
↓ 1 callers
Function
analyzeVolume
(bars []*interfaces.Bar)
services/technical_analysis.go:217
↓ 1 callers
Function
backfillAll
* Backfill all decision logs
backfill_embeddings.js:103
↓ 1 callers
Function
calculateMomentum
(bars []*interfaces.Bar)
services/technical_analysis.go:200
↓ 1 callers
Method
calculatePartialExitPrice
(entryPrice, targetPercent float64, side string)
services/position_manager.go:774
↓ 1 callers
Method
calculateQuantity
(allocation, price float64)
services/position_manager.go:746
↓ 1 callers
Method
calculateRSI
calculateRSI calculates the Relative Strength Index
services/stock_analysis_service.go:257
↓ 1 callers
Method
calculateStopLoss
(entryPrice float64, stopPrice *float64, stopPercent *float64, side string)
services/position_manager.go:750
↓ 1 callers
Method
calculateTakeProfit
(entryPrice float64, profitPrice *float64, profitPercent *float64, side string)
services/position_manager.go:762
↓ 1 callers
Method
calculateTechnicalIndicators
calculateTechnicalIndicators calculates technical indicators from historical bars
services/stock_analysis_service.go:170
↓ 1 callers
Method
checkEntryOrder
checkEntryOrder checks if entry order has filled
services/position_manager.go:327
↓ 1 callers
Method
checkPositions
checkPositions checks all positions and manages their risk orders
services/position_manager.go:289
↓ 1 callers
Function
clearAllEmbeddings
()
vectorDB.js:261
↓ 1 callers
Function
countUniqueSources
(items []NewsItem)
services/gemini_service.go:220
next →
1–100 of 228, ranked by callers