MCPcopy Create free account

hub / github.com/JakeNesler/Claude_Prophet / functions

Functions228 in github.com/JakeNesler/Claude_Prophet

↓ 1 callersMethoddbToManagedPosition
dbToManagedPosition converts DBManagedPosition to ManagedPosition
services/position_manager.go:872
↓ 1 callersMethodestimateMarketCap
estimateMarketCap provides rough market cap estimate based on symbol and price
services/stock_analysis_service.go:313
↓ 1 callersFunctionextractTradeInfo
* Extract trade info from decision JSON
backfill_embeddings.js:31
↓ 1 callersFunctionfindSimilarTrades
(queryText, limit = 5, filters = {})
vectorDB.js:129
↓ 1 callersFunctionfindSubstring
(s, substr string)
services/news_service.go:233
↓ 1 callersMethodgeneratePositionID
()
services/position_manager.go:782
↓ 1 callersFunctiongenerateSignal
(result *AnalysisResult)
services/technical_analysis.go:248
↓ 1 callersMethodgenerateTradeSetup
generateTradeSetup creates neutral trade setup data for AI interpretation
services/stock_analysis_service.go:330
↓ 1 callersFunctiongetEmbedder
()
vectorDB.js:13
↓ 1 callersFunctiongetNextFriday
getNextFriday returns the date of the next Friday
controllers/order_controller.go:575
↓ 1 callersFunctiongetTradeStats
(filters = {})
vectorDB.js:197
↓ 1 callersMethodloadPositionsFromDB
loadPositionsFromDB loads all active positions from database on startup
services/position_manager.go:792
↓ 1 callersFunctionloadSeedData
()
seed_data/load_seed_data.js:51
↓ 1 callersFunctionmain
()
mcp-server.js:1692
↓ 1 callersMethodmanageRiskOrders
manageRiskOrders checks and updates risk management orders
services/position_manager.go:476
↓ 1 callersMethodmanagedPositionToDB
managedPositionToDB converts ManagedPosition to DBManagedPosition
services/position_manager.go:825
↓ 1 callersFunctionmaxInt
(a, b int)
services/stock_analysis_service.go:402
↓ 1 callersFunctionmin
Helper functions
services/gemini_service.go:213
↓ 1 callersFunctionminInt
(a, b int)
services/stock_analysis_service.go:409
↓ 1 callersFunctionparseFilename
* Parse decision filename to extract metadata * Format: YYYY-MM-DDTHH-MM-SS-MMMZ_ACTION.json
backfill_embeddings.js:18
↓ 1 callersMethodparseTimeframe
parseTimeframe converts string timeframe to Alpaca TimeFrame
services/alpaca_data.go:171
↓ 1 callersMethodplaceEntryOrder
placeEntryOrder places the initial entry order
services/position_manager.go:239
↓ 1 callersMethodplacePartialExitOrder
placePartialExitOrder places partial exit order
services/position_manager.go:440
↓ 1 callersMethodplaceRiskOrders
placeRiskOrders places stop loss and take profit orders
services/position_manager.go:354
↓ 1 callersMethodplaceTakeProfitOrder
placeTakeProfitOrder places take profit limit order
services/position_manager.go:407
↓ 1 callersFunctionsetupRouter
(orderController *controllers.OrderController, newsController *controllers.NewsController, intelligenceControl
cmd/bot/main.go:150
↓ 1 callersMethodstandardDeviation
standardDeviation calculates standard deviation of a slice of floats
services/stock_analysis_service.go:289
↓ 1 callersFunctionstartDataCleanup
Background task to clean up old data
cmd/bot/main.go:235
↓ 1 callersFunctionstartPositionMonitor
Background task to monitor and save positions
cmd/bot/main.go:255
↓ 1 callersMethodupdatePositionPrice
updatePositionPrice updates current price and unrealized P&L
services/position_manager.go:559
↓ 1 callersMethodupdateTrailingStop
updateTrailingStop updates trailing stop loss based on current price
services/position_manager.go:520
↓ 1 callersMethodvalidateRequest
Helper functions
services/position_manager.go:713
MethodAnalyze
Analyze performs comprehensive technical analysis
services/technical_analysis.go:130
MethodCancelOrder
CancelOrder cancels an existing order
services/alpaca_trading.go:97
MethodCleanupOldData
CleanupOldData removes data older than the specified time
database/storage.go:218
MethodDeleteManagedPosition
DeleteManagedPosition deletes a managed position by ID
database/storage.go:342
MethodFilterNewsByKeywords
FilterNewsByKeywords filters news items by keywords in title or description
services/news_service.go:207
MethodFindOptionsNearDTE
FindOptionsNearDTE finds option contracts near a target DTE for an underlying
services/alpaca_options_data.go:209
MethodGetAccount
GetAccount retrieves account information
services/alpaca_trading.go:168
MethodGetBars
GetBars retrieves bars for a symbol within a time range
database/storage.go:97
MethodGetHistoricalBars
GetHistoricalBars retrieves historical bar data
services/alpaca_data.go:38
MethodGetLatestBar
GetLatestBar retrieves the most recent bar for a symbol
services/alpaca_data.go:82
MethodGetLatestQuote
GetLatestQuote retrieves the most recent quote for a symbol
services/alpaca_data.go:107
MethodGetLatestTrade
GetLatestTrade retrieves the most recent trade for a symbol
services/alpaca_data.go:130
MethodGetLatestTrade
(ctx context.Context, symbol string)
interfaces/trading.go:30
MethodGetManagedPosition
GetManagedPosition retrieves a managed position by ID
services/position_manager.go:581
MethodGetName
()
interfaces/trading.go:52
MethodGetOptionChain
GetOptionChain retrieves available options for an underlying symbol
services/alpaca_options_data.go:148
MethodGetOptionChain
(symbol string, expirationDate time.Time)
interfaces/options.go:49
MethodGetOptionChains
(symbol string)
interfaces/options.go:50
MethodGetOptionSnapshot
GetOptionSnapshot gets the latest snapshot for an option
services/alpaca_options_data.go:98
MethodGetOptionSnapshot
(optionSymbol string)
interfaces/options.go:51
MethodGetOptionsChain
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
MethodGetOptionsChain
GetOptionsChain retrieves the options chain for an underlying symbol
services/alpaca_trading.go:292
MethodGetOptionsPosition
GetOptionsPosition handles GET /api/options/position/:symbol
controllers/order_controller.go:437
MethodGetOptionsPosition
GetOptionsPosition retrieves a specific options position
services/alpaca_trading.go:377
MethodGetOptionsQuote
GetOptionsQuote retrieves a quote for a specific options contract
services/alpaca_trading.go:368
MethodGetOptionsQuote
(ctx context.Context, symbol string)
interfaces/trading.go:20
MethodGetOrder
GetOrder retrieves an order by ID
database/storage.go:154
MethodGetOrder
GetOrder retrieves a specific order
services/alpaca_trading.go:110
MethodGetOrder
(orderID string)
interfaces/trading.go:39
MethodGetOrders
GetOrders retrieves orders by status
database/storage.go:181
MethodGetPositions
GetPositions retrieves all current positions
services/alpaca_trading.go:143
MethodHandleAnalyzeMultipleStocks
HandleAnalyzeMultipleStocks provides comprehensive analysis for multiple stocks POST /api/v1/intelligence/analyze-multiple
controllers/intelligence_controller.go:200
MethodHandleAnalyzeStock
HandleAnalyzeStock provides comprehensive analysis for a single stock GET /api/v1/intelligence/analyze/:symbol
controllers/intelligence_controller.go:168
MethodHandleBuy
HTTP Handlers for Gin framework HandleBuy handles HTTP buy requests
controllers/order_controller.go:207
MethodHandleCancelOrder
HandleCancelOrder handles HTTP cancel order requests
controllers/order_controller.go:241
MethodHandleCloseManagedPosition
HandleCloseManagedPosition manually closes a managed position DELETE /api/v1/positions/managed/:id
controllers/position_controller.go:87
MethodHandleEndSession
HandleEndSession ends the current trading session
controllers/activity_controller.go:80
MethodHandleGetAccount
HandleGetAccount handles HTTP get account requests
controllers/order_controller.go:268
MethodHandleGetActivityByDate
HandleGetActivityByDate returns activity log for a specific date
controllers/activity_controller.go:34
MethodHandleGetAllMarketWatchNews
HandleGetAllMarketWatchNews fetches all MarketWatch news feeds aggregated GET /api/v1/news/marketwatch/all
controllers/news_controller.go:244
MethodHandleGetBar
HandleGetBar handles HTTP get latest bar requests GET /api/v1/market/bar/:symbol
controllers/order_controller.go:313
MethodHandleGetBars
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
MethodHandleGetCleanedNews
HandleGetCleanedNews aggregates news from multiple sources and returns a cleaned summary POST /api/v1/intelligence/cleaned-news
controllers/intelligence_controller.go:44
MethodHandleGetCurrentActivity
HandleGetCurrentActivity returns the current day's activity log
controllers/activity_controller.go:23
MethodHandleGetManagedPosition
HandleGetManagedPosition retrieves a specific managed position GET /api/v1/positions/managed/:id
controllers/position_controller.go:51
MethodHandleGetMarketNews
HandleGetMarketNews fetches market-related news GET /api/v1/news/market?symbols=TSLA,NVDA,AAPL
controllers/news_controller.go:129
MethodHandleGetMarketWatchBulletins
HandleGetMarketWatchBulletins fetches MarketWatch breaking news bulletins GET /api/v1/news/marketwatch/bulletins
controllers/news_controller.go:206
MethodHandleGetMarketWatchMarketPulse
HandleGetMarketWatchMarketPulse fetches MarketWatch market pulse GET /api/v1/news/marketwatch/marketpulse
controllers/news_controller.go:225
MethodHandleGetMarketWatchRealtimeHeadlines
HandleGetMarketWatchRealtimeHeadlines fetches MarketWatch realtime headlines GET /api/v1/news/marketwatch/realtime
controllers/news_controller.go:187
MethodHandleGetMarketWatchTopStories
HandleGetMarketWatchTopStories fetches MarketWatch top stories GET /api/v1/news/marketwatch/topstories
controllers/news_controller.go:168
MethodHandleGetNews
HandleGetNews fetches the latest news GET /api/v1/news?limit=10
controllers/news_controller.go:25
MethodHandleGetNewsByTopic
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
MethodHandleGetOrders
HandleGetOrders handles HTTP get orders requests
controllers/order_controller.go:279
MethodHandleGetPositions
HandleGetPositions handles HTTP get positions requests
controllers/order_controller.go:257
MethodHandleGetQuickMarketIntelligence
HandleGetQuickMarketIntelligence provides a quick market overview GET /api/v1/intelligence/quick-market
controllers/intelligence_controller.go:127
MethodHandleGetQuote
HandleGetQuote handles HTTP get quote requests GET /api/v1/market/quote/:symbol
controllers/order_controller.go:294
MethodHandleListActivityLogs
HandleListActivityLogs returns list of available activity log dates
controllers/activity_controller.go:47
MethodHandleListManagedPositions
HandleListManagedPositions lists all managed positions GET /api/v1/positions/managed?status=ACTIVE
controllers/position_controller.go:74
MethodHandleLogActivity
HandleLogActivity logs a general activity
controllers/activity_controller.go:100
MethodHandlePlaceManagedPosition
HandlePlaceManagedPosition handles placing a new managed position POST /api/v1/positions/managed
controllers/position_controller.go:24
MethodHandleSearchNews
HandleSearchNews searches for news by query GET /api/v1/news/search?q=Tesla&limit=10
controllers/news_controller.go:91
MethodHandleSell
HandleSell handles HTTP sell requests
controllers/order_controller.go:224
MethodHandleStartSession
HandleStartSession starts a new trading session
controllers/activity_controller.go:61
MethodInitialize
(config map[string]interface{})
interfaces/trading.go:47
MethodListOptionsPositions
ListOptionsPositions handles GET /api/options/positions
controllers/order_controller.go:453
MethodListOptionsPositions
ListOptionsPositions retrieves all options positions
services/alpaca_trading.go:403
MethodListOrders
ListOrders retrieves orders with optional status filter
services/alpaca_trading.go:120
MethodLogDecision
LogDecision logs a trading decision
services/activity_logger.go:317
← previousnext →101–200 of 228, ranked by callers