cTrader Commander for Openclaw

A powerful local HTTP proxy that enables programmatic trading and account management on cTrader using standard RESTful commands.

elmoyeldo
v1.0.0
Feb 26, 2026
2
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ctrader-commander

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ctrader-commander using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is cTrader Commander?

cTrader Commander acts as a sophisticated bridge between your AI agent and the cTrader trading platform. By wrapping complex Protobuf connections into a simplified local REST API, it allows developers to execute trades, monitor positions, and retrieve historical data without managing complex authentication tokens in every request.

This skill leverages Openclaw Skills capabilities to provide a secure, local-first environment where credentials reside safely in environment variables. It eliminates the need for manual platform interaction by exposing essential trading functions through a simple localhost interface, making it ideal for developers building automated financial tools.

cTrader Commander Use Cases

  • Automated algorithmic trading based on real-time market signals.
  • Building custom trading dashboards that monitor balance, equity, and margin.
  • Executing complex order types like limit and stop orders via simple CLI commands.
  • Backtesting or analyzing market trends using historical OHLC (trendbar) data.
  • Integrating trading functionality into multi-agent workflows using Openclaw Skills.

How cTrader Commander Works

  1. The local proxy server is initialized using credentials stored in a .env file on the host machine.
  2. Users query the proxy to find broker-specific symbol IDs for their desired trading instruments.
  3. RESTful POST or GET requests are sent to the local endpoint (localhost:9009) to trigger trading actions or data fetches.
  4. The proxy translates these HTTP requests into cTrader's native Protobuf protocol and communicates with the broker's servers.
  5. The proxy receives the broker's response and returns a clean, parseable JSON object to the caller.

cTrader Commander Setup

First, clone the proxy repository and configure your environment variables to include your cTrader credentials:

git clone https://github.com/LogicalSapien/ctrader-openapi-proxy
cd ctrader-openapi-proxy
# Add your credentials to .env
make run

Ensure you have curl and python3 installed. To verify that the proxy is running and ready to be used with Openclaw Skills, run:

curl -s "http://localhost:9009/get-data?command=ProtoOAVersionReq"

cTrader Commander Data Schema & Taxonomy

The skill interacts with the cTrader API to provide structured data for trading analysis:

Data Type Description Key Fields
Symbols Metadata for tradable instruments symbolId, symbolName
Trendbars Historical OHLC price data high, low, open, close, timestamp
Orders Pending trade instructions orderId, symbolId, volume, price
Positions Currently active market trades positionId, entryPrice, tradeSide
Account Financial health and settings balance, equity, leverage, traderId

cTrader Commander Advanced Features

  • Generic command passthrough allowing access to any cTrader OpenAPI command via simple URL parameters.
  • Multi-account support with the ability to switch active trading accounts at runtime via the /api/set-account endpoint.
  • Relative stop loss and take profit parameters for market orders measured in pips for easier risk management.
  • High-resolution tick data retrieval with customizable time deltas (quoteType: BID or ASK).
  • Full compatibility with other Openclaw Skills for sophisticated data processing and reporting workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins curl
Github Stars: 0
forks: 0

Featured*