Skip to main content
Glama
live_insights.py840 B
# region imports from AlgorithmImports import * # endregion class LiveInsightsTestAlgorithm(QCAlgorithm): def initialize(self): self.set_start_date(2025, 7, 10) self._insights = 0 self._symbol = self.add_crypto('BTCUSD', Resolution.SECOND).symbol self.set_portfolio_construction( EqualWeightingPortfolioConstructionModel() ) def on_data(self, data: Slice): # Only emit 10 insights. if self._insights >= 10: return self._insights += 1 # Determine the direction. if self.portfolio.invested: direction = InsightDirection.FLAT else: direction = InsightDirection.UP # Emit the insight. self.emit_insights( Insight.price(self._symbol, timedelta(1), direction) )

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/i-dream-of-ai/quantconnect-mcp-jwt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server