Skip to main content
Glama
live_orders.py417 B
# region imports from AlgorithmImports import * # endregion class LiveOrdersTestAlgorithm(QCAlgorithm): def initialize(self): self._trades = 0 self._btc = self.add_crypto('BTCUSD', Resolution.SECOND) def on_data(self, data: Slice): if self._trades >= 10: return self._trades += 1 self.set_holdings(self._btc.symbol, 0 if self.portfolio.invested else 1)

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