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
↓ 1 callers
Method
dbToManagedPosition
dbToManagedPosition converts DBManagedPosition to ManagedPosition
services/position_manager.go:872
↓ 1 callers
Method
estimateMarketCap
estimateMarketCap provides rough market cap estimate based on symbol and price
services/stock_analysis_service.go:313
↓ 1 callers
Function
extractTradeInfo
* Extract trade info from decision JSON
backfill_embeddings.js:31
↓ 1 callers
Function
findSimilarTrades
(queryText, limit = 5, filters = {})
vectorDB.js:129
↓ 1 callers
Function
findSubstring
(s, substr string)
services/news_service.go:233
↓ 1 callers
Method
generatePositionID
()
services/position_manager.go:782
↓ 1 callers
Function
generateSignal
(result *AnalysisResult)
services/technical_analysis.go:248
↓ 1 callers
Method
generateTradeSetup
generateTradeSetup creates neutral trade setup data for AI interpretation
services/stock_analysis_service.go:330
↓ 1 callers
Function
getEmbedder
()
vectorDB.js:13
↓ 1 callers
Function
getNextFriday
getNextFriday returns the date of the next Friday
controllers/order_controller.go:575
↓ 1 callers
Function
getTradeStats
(filters = {})
vectorDB.js:197
↓ 1 callers
Method
loadPositionsFromDB
loadPositionsFromDB loads all active positions from database on startup
services/position_manager.go:792
↓ 1 callers
Function
loadSeedData
()
seed_data/load_seed_data.js:51
↓ 1 callers
Function
main
()
mcp-server.js:1692
↓ 1 callers
Method
manageRiskOrders
manageRiskOrders checks and updates risk management orders
services/position_manager.go:476
↓ 1 callers
Method
managedPositionToDB
managedPositionToDB converts ManagedPosition to DBManagedPosition
services/position_manager.go:825
↓ 1 callers
Function
maxInt
(a, b int)
services/stock_analysis_service.go:402
↓ 1 callers
Function
min
Helper functions
services/gemini_service.go:213
↓ 1 callers
Function
minInt
(a, b int)
services/stock_analysis_service.go:409
↓ 1 callers
Function
parseFilename
* Parse decision filename to extract metadata * Format: YYYY-MM-DDTHH-MM-SS-MMMZ_ACTION.json
backfill_embeddings.js:18
↓ 1 callers
Method
parseTimeframe
parseTimeframe converts string timeframe to Alpaca TimeFrame
services/alpaca_data.go:171
↓ 1 callers
Method
placeEntryOrder
placeEntryOrder places the initial entry order
services/position_manager.go:239
↓ 1 callers
Method
placePartialExitOrder
placePartialExitOrder places partial exit order
services/position_manager.go:440
↓ 1 callers
Method
placeRiskOrders
placeRiskOrders places stop loss and take profit orders
services/position_manager.go:354
↓ 1 callers
Method
placeTakeProfitOrder
placeTakeProfitOrder places take profit limit order
services/position_manager.go:407
↓ 1 callers
Function
setupRouter
(orderController *controllers.OrderController, newsController *controllers.NewsController, intelligenceControl
cmd/bot/main.go:150
↓ 1 callers
Method
standardDeviation
standardDeviation calculates standard deviation of a slice of floats
services/stock_analysis_service.go:289
↓ 1 callers
Function
startDataCleanup
Background task to clean up old data
cmd/bot/main.go:235
↓ 1 callers
Function
startPositionMonitor
Background task to monitor and save positions
cmd/bot/main.go:255
↓ 1 callers
Method
updatePositionPrice
updatePositionPrice updates current price and unrealized P&L
services/position_manager.go:559
↓ 1 callers
Method
updateTrailingStop
updateTrailingStop updates trailing stop loss based on current price
services/position_manager.go:520
↓ 1 callers
Method
validateRequest
Helper functions
services/position_manager.go:713
Method
Analyze
Analyze performs comprehensive technical analysis
services/technical_analysis.go:130
Method
CancelOrder
CancelOrder cancels an existing order
services/alpaca_trading.go:97
Method
CleanupOldData
CleanupOldData removes data older than the specified time
database/storage.go:218
Method
DeleteManagedPosition
DeleteManagedPosition deletes a managed position by ID
database/storage.go:342
Method
FilterNewsByKeywords
FilterNewsByKeywords filters news items by keywords in title or description
services/news_service.go:207
Method
FindOptionsNearDTE
FindOptionsNearDTE finds option contracts near a target DTE for an underlying
services/alpaca_options_data.go:209
Method
GetAccount
GetAccount retrieves account information
services/alpaca_trading.go:168
Method
GetBars
GetBars retrieves bars for a symbol within a time range
database/storage.go:97
Method
GetHistoricalBars
GetHistoricalBars retrieves historical bar data
services/alpaca_data.go:38
Method
GetLatestBar
GetLatestBar retrieves the most recent bar for a symbol
services/alpaca_data.go:82
Method
GetLatestQuote
GetLatestQuote retrieves the most recent quote for a symbol
services/alpaca_data.go:107
Method
GetLatestTrade
GetLatestTrade retrieves the most recent trade for a symbol
services/alpaca_data.go:130
Method
GetLatestTrade
(ctx context.Context, symbol string)
interfaces/trading.go:30
Method
GetManagedPosition
GetManagedPosition retrieves a managed position by ID
services/position_manager.go:581
Method
GetName
()
interfaces/trading.go:52
Method
GetOptionChain
GetOptionChain retrieves available options for an underlying symbol
services/alpaca_options_data.go:148
Method
GetOptionChain
(symbol string, expirationDate time.Time)
interfaces/options.go:49
Method
GetOptionChains
(symbol string)
interfaces/options.go:50
Method
GetOptionSnapshot
GetOptionSnapshot gets the latest snapshot for an option
services/alpaca_options_data.go:98
Method
GetOptionSnapshot
(optionSymbol string)
interfaces/options.go:51
Method
GetOptionsChain
GetOptionsChain handles GET /api/options/chain/:symbol?expiration=2025-11-22&delta_min=0.4&delta_max=0.6&min_bid=0.1
controllers/order_controller.go:467
Method
GetOptionsChain
GetOptionsChain retrieves the options chain for an underlying symbol
services/alpaca_trading.go:292
Method
GetOptionsPosition
GetOptionsPosition handles GET /api/options/position/:symbol
controllers/order_controller.go:437
Method
GetOptionsPosition
GetOptionsPosition retrieves a specific options position
services/alpaca_trading.go:377
Method
GetOptionsQuote
GetOptionsQuote retrieves a quote for a specific options contract
services/alpaca_trading.go:368
Method
GetOptionsQuote
(ctx context.Context, symbol string)
interfaces/trading.go:20
Method
GetOrder
GetOrder retrieves an order by ID
database/storage.go:154
Method
GetOrder
GetOrder retrieves a specific order
services/alpaca_trading.go:110
Method
GetOrder
(orderID string)
interfaces/trading.go:39
Method
GetOrders
GetOrders retrieves orders by status
database/storage.go:181
Method
GetPositions
GetPositions retrieves all current positions
services/alpaca_trading.go:143
Method
HandleAnalyzeMultipleStocks
HandleAnalyzeMultipleStocks provides comprehensive analysis for multiple stocks POST /api/v1/intelligence/analyze-multiple
controllers/intelligence_controller.go:200
Method
HandleAnalyzeStock
HandleAnalyzeStock provides comprehensive analysis for a single stock GET /api/v1/intelligence/analyze/:symbol
controllers/intelligence_controller.go:168
Method
HandleBuy
HTTP Handlers for Gin framework HandleBuy handles HTTP buy requests
controllers/order_controller.go:207
Method
HandleCancelOrder
HandleCancelOrder handles HTTP cancel order requests
controllers/order_controller.go:241
Method
HandleCloseManagedPosition
HandleCloseManagedPosition manually closes a managed position DELETE /api/v1/positions/managed/:id
controllers/position_controller.go:87
Method
HandleEndSession
HandleEndSession ends the current trading session
controllers/activity_controller.go:80
Method
HandleGetAccount
HandleGetAccount handles HTTP get account requests
controllers/order_controller.go:268
Method
HandleGetActivityByDate
HandleGetActivityByDate returns activity log for a specific date
controllers/activity_controller.go:34
Method
HandleGetAllMarketWatchNews
HandleGetAllMarketWatchNews fetches all MarketWatch news feeds aggregated GET /api/v1/news/marketwatch/all
controllers/news_controller.go:244
Method
HandleGetBar
HandleGetBar handles HTTP get latest bar requests GET /api/v1/market/bar/:symbol
controllers/order_controller.go:313
Method
HandleGetBars
HandleGetBars handles HTTP get historical bars requests GET /api/v1/market/bars/:symbol?start=2025-01-01&end=2025-01-10&timeframe=1D
controllers/order_controller.go:332
Method
HandleGetCleanedNews
HandleGetCleanedNews aggregates news from multiple sources and returns a cleaned summary POST /api/v1/intelligence/cleaned-news
controllers/intelligence_controller.go:44
Method
HandleGetCurrentActivity
HandleGetCurrentActivity returns the current day's activity log
controllers/activity_controller.go:23
Method
HandleGetManagedPosition
HandleGetManagedPosition retrieves a specific managed position GET /api/v1/positions/managed/:id
controllers/position_controller.go:51
Method
HandleGetMarketNews
HandleGetMarketNews fetches market-related news GET /api/v1/news/market?symbols=TSLA,NVDA,AAPL
controllers/news_controller.go:129
Method
HandleGetMarketWatchBulletins
HandleGetMarketWatchBulletins fetches MarketWatch breaking news bulletins GET /api/v1/news/marketwatch/bulletins
controllers/news_controller.go:206
Method
HandleGetMarketWatchMarketPulse
HandleGetMarketWatchMarketPulse fetches MarketWatch market pulse GET /api/v1/news/marketwatch/marketpulse
controllers/news_controller.go:225
Method
HandleGetMarketWatchRealtimeHeadlines
HandleGetMarketWatchRealtimeHeadlines fetches MarketWatch realtime headlines GET /api/v1/news/marketwatch/realtime
controllers/news_controller.go:187
Method
HandleGetMarketWatchTopStories
HandleGetMarketWatchTopStories fetches MarketWatch top stories GET /api/v1/news/marketwatch/topstories
controllers/news_controller.go:168
Method
HandleGetNews
HandleGetNews fetches the latest news GET /api/v1/news?limit=10
controllers/news_controller.go:25
Method
HandleGetNewsByTopic
HandleGetNewsByTopic fetches news for a specific topic GET /api/v1/news/topic/:topic?compact=true Topics: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTA
controllers/news_controller.go:50
Method
HandleGetOrders
HandleGetOrders handles HTTP get orders requests
controllers/order_controller.go:279
Method
HandleGetPositions
HandleGetPositions handles HTTP get positions requests
controllers/order_controller.go:257
Method
HandleGetQuickMarketIntelligence
HandleGetQuickMarketIntelligence provides a quick market overview GET /api/v1/intelligence/quick-market
controllers/intelligence_controller.go:127
Method
HandleGetQuote
HandleGetQuote handles HTTP get quote requests GET /api/v1/market/quote/:symbol
controllers/order_controller.go:294
Method
HandleListActivityLogs
HandleListActivityLogs returns list of available activity log dates
controllers/activity_controller.go:47
Method
HandleListManagedPositions
HandleListManagedPositions lists all managed positions GET /api/v1/positions/managed?status=ACTIVE
controllers/position_controller.go:74
Method
HandleLogActivity
HandleLogActivity logs a general activity
controllers/activity_controller.go:100
Method
HandlePlaceManagedPosition
HandlePlaceManagedPosition handles placing a new managed position POST /api/v1/positions/managed
controllers/position_controller.go:24
Method
HandleSearchNews
HandleSearchNews searches for news by query GET /api/v1/news/search?q=Tesla&limit=10
controllers/news_controller.go:91
Method
HandleSell
HandleSell handles HTTP sell requests
controllers/order_controller.go:224
Method
HandleStartSession
HandleStartSession starts a new trading session
controllers/activity_controller.go:61
Method
Initialize
(config map[string]interface{})
interfaces/trading.go:47
Method
ListOptionsPositions
ListOptionsPositions handles GET /api/options/positions
controllers/order_controller.go:453
Method
ListOptionsPositions
ListOptionsPositions retrieves all options positions
services/alpaca_trading.go:403
Method
ListOrders
ListOrders retrieves orders with optional status filter
services/alpaca_trading.go:120
Method
LogDecision
LogDecision logs a trading decision
services/activity_logger.go:317
← previous
next →
101–200 of 228, ranked by callers