### Install cnhkmcp Source: https://pypi.org/project/cnhkmcp/3.1.9 Use pip to install the package. ```bash pip install cnhkmcp ``` -------------------------------- ### Get Alpha Details Source: https://pypi.org/project/cnhkmcp/3.1.9 Retrieve details for a specific alpha factor by its ID. ```python from cnhkmcp import get_alpha_details alpha_info = await get_alpha_details("alpha_id_here") print(f"Alpha details: {alpha_info}") ``` -------------------------------- ### Initialize and Use BrainApiClient Source: https://pypi.org/project/cnhkmcp/3.1.9 Demonstrates initializing the client, authenticating, and creating a trading simulation. ```python from cnhkmcp import BrainApiClient # Initialize client client = BrainApiClient() # Authenticate await client.authenticate("your_email@example.com", "your_password") # Create a simulation simulation_data = { "type": "REGULAR", "settings": { "instrumentType": "EQUITY", "region": "USA", "universe": "TOP3000" }, "regular": "your_alpha_formula" } result = await client.create_simulation(simulation_data) print(f"Simulation created: {result}") ``` -------------------------------- ### Create Simulation with cnhkmcp Source: https://pypi.org/project/cnhkmcp/3.1.9 Create a trading simulation using the create_simulation function. ```python from cnhkmcp import create_simulation result = await create_simulation( type="REGULAR", instrument_type="EQUITY", region="USA", universe="TOP3000", regular="your_alpha_formula_here" ) ``` -------------------------------- ### Search Forum Posts Source: https://pypi.org/project/cnhkmcp/3.1.9 Search for forum posts using credentials and a query string. ```python from cnhkmcp import search_forum_posts results = await search_forum_posts( email="email@example.com", password="password", search_query="alpha formula" ) ``` -------------------------------- ### Authenticate with cnhkmcp Source: https://pypi.org/project/cnhkmcp/3.1.9 Perform authentication using the standalone authenticate function. ```python from cnhkmcp import authenticate result = await authenticate("email@example.com", "password") print(f"Authentication status: {result}") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.