ctrader-commander
Place and manage cTrader orders (market, limit, stop), check open positions, fetch live quotes and OHLC candles, and query account balance and equity via a local HTTP proxy. No credentials or token required at call time.
Why use this skill?
Integrate cTrader into your OpenClaw agent. Place orders, monitor positions, and fetch live market data securely via a local HTTP proxy.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/elmoyeldo/ctrader-commanderWhat This Skill Does
The cTrader Commander skill provides a robust interface for algorithmic trading and market data retrieval through the cTrader OpenAPI. By leveraging a local HTTP proxy server running at http://localhost:9009, this skill allows the OpenClaw AI agent to execute complex trading operations without exposing sensitive API credentials to the environment. The skill enables users to query account information, fetch historical OHLC candles, monitor real-time tick data, and manage the full lifecycle of market, limit, and stop orders. It acts as a bridge between the agent's logic and your specific broker environment, ensuring that high-frequency data and trade commands are processed with low latency via the proxy's direct connection to cTrader's servers.
Installation
To use this skill, ensure you have the OpenClaw agent platform installed. First, clone the proxy repository at https://github.com/LogicalSapien/ctrader-openapi-proxy. Configure your clientId, clientSecret, and other required credentials in the local .env file within the repository. Install the skill using the command: clawhub install openclaw/skills/skills/elmoyeldo/ctrader-commander. Finally, launch the proxy by navigating to the cloned directory and executing make run. Verify connectivity by running the health check curl command provided in the skill documentation.
Use Cases
- Automated Trading Systems: Execute systematic strategies based on technical indicators by pulling historical candles and placing orders directly through the agent.
- Account Monitoring: Query real-time balance, equity, and margin levels to inform risk management decisions during active trading sessions.
- Market Analysis: Fetch live BID/ASK quotes for specific symbols to calculate spreads or identify entry points without needing a manual interface.
- Order Management: Programmatically manage existing positions by closing them or canceling pending limit/stop orders as market conditions change.
Example Prompts
- "Check my current account balance and list all open positions for symbol 158."
- "Place a market buy order for 0.1 lots on gold and set a take profit at 350 pips."
- "Fetch the last hour of M5 candles for symbol 158 and calculate the average close price."
Tips & Limitations
- Symbol IDs: Always run
ProtoOASymbolsListReqfirst, as IDs are unique to each broker and do not map globally. - Volume Units: Remember that volume is defined in units, not lots. 100,000 units equals 1.0 standard lot.
- Latency: Because this interacts with live financial markets, ensure the local proxy has a stable, low-latency internet connection.
- Risk: This skill enables direct market interaction. Test all strategies using demo accounts before committing real capital, and ensure the agent's logic includes robust safety checks.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-elmoyeldo-ctrader-commander": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api