Read time … min

AI-native runtime for CoinW trading strategies

Author in Cursor, Claude Code or any AI IDE. Deploy from GitHub into a managed cloud runtime with first-class MCP control, logs and region selection.

By the TradingHost engineering team

Section 01 · At a glance

At a glance

Venue
CoinW
Venue type
Crypto exchange (Dubai-HQ, global)
Asset class
Crypto
Supported products
Spot trading, perpetual futures (`/v1/perpum/` endpoints), copy trading and strategy-square (platform-only, partial API access). US, CA, JP, UK accounts geo-blocked.
Runtime model
Containerised strategy runtime
Deployment source
GitHub
Languages
Any language that runs in a container
Common integrations
Native CoinW OpenAPI (REST and WebSocket), CCXT, custom connectors. Separate base URLs for spot (api.coinw.com) and futures (ws.futurescw.com/perpum).
AI workflow integration
MCP control surface for Cursor, Claude Code, GitHub Copilot and CLI agents
TradingHost role
Runtime, deployment, logs, health checks, region selection, MCP control
CoinW role
Exchange account, API access, market access, execution venue
Affiliation
TradingHost is independent and is not affiliated with CoinW

Section 02 · What CoinW offers

What CoinW offers

CoinW offers spot and perpetual futures trading via the CoinW OpenAPI. The venue splits REST and WebSocket endpoints between spot (api.coinw.com) and futures (ws.futurescw.com/perpum) base URLs, so client wrappers must route by market type. Copy trading and strategy-square exist on the platform but expose only partial API access. Service denial applies at the IP and KYC level for US, CA, JP, UK accounts. Endpoint specifics change over time. The shape is durable; precise rate-limit weights, symbol lists and fee tiers live in CoinW’s docs.

Markets and strategy patterns

  • Spot trading on USDT, BTC and ETH-quote pairs
  • Perpetual futures (`/v1/perpum/` endpoints)
  • WebSocket subscriptions per endpoint family (spot and futures distinct)
  • OpenAPI client-side filtering for user-originated orders
  • Multi-strategy deployments across the spot/futures URL split
  • Funding-rate carry on USDT perpetuals
  • Strategy-square and copy-trade-aware order filtering (API returns errors on copy positions)
  • Geo-aware account jurisdiction handling (US, CA, JP, UK denied)

API surface

Product surfaces
Spot and perpetual futures. Copy trading and strategy-square exist on the platform but expose only partial API access; the OpenAPI returns errors when called against copy-trade positions even though the UI displays copy, strategy-square, and user-originated orders together.
Connection methods
REST API for spot orders and account queries at `https://api.coinw.com`. WebSocket for futures at `wss://ws.futurescw.com/perpum`. The base-URL split between spot REST and futures WebSocket is a CoinW-specific shape; integration clients must encode the routing per market type rather than assume a single endpoint family.
Authentication
API key and secret per strategy with HMAC-signed requests. Permissions can be scoped per key. Service denial applies at the IP and KYC residency level for US, CA, JP, UK; API keys issued under those jurisdictions cannot place orders.

For specifics, refer to CoinW

Specific endpoints, rate-limit weights, symbol lists, fee tiers and version history live in CoinW’s documentation. Treat these as the source of truth.

Section 03 · Build with AI

Build your CoinW strategy with AI

Pick an integration method, fork a TradingHost framework starter, and author your strategy in an AI IDE. Cursor, Claude Code, GitHub Copilot and CLI-based AI agents all work with the same GitHub-native deployment loop.

  • Native CoinW API

    Direct control over CoinW-specific behaviour, the spot vs futures URL split and the copy-trade API quirks.

  • CCXT

    Common interface across CoinW and other crypto exchanges. CCXT exposes CoinW through the unified `coinw` class for spot; futures coverage is partial.

  • Freqtrade or Hummingbot

    Neither framework lists CoinW as a first-class supported exchange today. Custom or CCXT-backed implementations are the documented path.

  • Custom connector

    Your own internal trading engine or proprietary CoinW integration across the api.coinw.com and ws.futurescw.com base URLs.

Framework support for CoinW products

Coverage varies by framework. CCXT exposes CoinW spot through its unified `coinw` class with partial futures coverage. Neither Freqtrade nor Hummingbot lists CoinW as a first-class supported exchange today. Native API access reaches both the spot (api.coinw.com) and futures (ws.futurescw.com/perpum) endpoint families directly.

FrameworkSpotFuturesMarginOptions
Native CoinW APISupportedSupportedNot documented as supportedNot documented as supported
CCXTSupportedPartially supportedNot documented as supportedNot documented as supported
FreqtradeNot documented as supportedNot documented as supportedNot documented as supportedNot documented as supported
HummingbotNot documented as supportedNot documented as supportedNot documented as supportedNot documented as supported

✓ confirmed support per official framework docs. "no" indicates not officially documented as supported. "partial" indicates limited coverage. Workflow links target /workflows/ pages currently in authoring.

TradingHost does not force a framework. It runs your project.

Author with AI

The framework starters above pair naturally with AI IDEs. The TradingHost MCP control surface closes the loop: AI tools can inspect deployments, review logs and manage the runtime alongside you, never the trade execution path.

Section 04 · Run on TradingHost

Run your code on TradingHost

CoinW provides the exchange and API access. TradingHost provides the production environment where your CoinW-connected strategy runs.

Instead of running strategy code on a laptop, desktop machine, generic VPS or manually configured server, you deploy from GitHub into a TradingHost-managed container runtime.

You

  • Your repo contains your code.
  • Your deployment defines how it runs.
  • Your strategy connects to CoinW.

TradingHost

  • Keeps the runtime online.
  • Surfaces logs and health checks.
  • Region selection.
  • Controlled deployment surface.

Deployment flow

  1. STEP 01

    Connect GitHub

    Authorise TradingHost to access your GitHub account.

  2. STEP 02

    Link a repo or start from a framework

    Point TradingHost at your existing strategy repo, or fork a TradingHost framework runtime (CCXT) for a working baseline against the CoinW OpenAPI.

  3. STEP 03

    Deploy into a TradingHost container

    Pick a region (EU or US-East), supply the environment values your strategy needs (CoinW API key and secret, spot vs futures base-URL settings), and deploy. TradingHost builds your container from the repo and runs your strategy on managed Kubernetes infrastructure. No local Docker install required.

  4. STEP 04

    Monitor logs and health

    Watch live logs, health and runtime state from the TradingHost dashboard. The same surface is reachable through MCP from any AI IDE, so Cursor, Claude Code or a CLI agent can read deployment state and manage the runtime alongside you.

  5. STEP 05

    Update and redeploy

    Push changes to your GitHub main branch and TradingHost redeploys automatically.

Section 05 · Operational notes

Operational notes for CoinW

Things that bite you when you actually run a CoinW strategy in a containerised cloud runtime, not in CoinW’s docs, not in framework READMEs. Every claim below is paraphrased from CoinW’s own documentation; the deployment-side guidance is from running these strategies on TradingHost.

  1. 01 · URL split

    Spot REST and futures WebSocket sit on separate base URLs

    CoinW splits its API surface between two base URLs: REST and spot at `https://api.coinw.com`, futures WebSocket at `wss://ws.futurescw.com/perpum`. The split is unusual; most venues serve spot and derivatives off the same root domain with path-level differentiation. Integration clients must route by market type at the URL level, not just at the endpoint path. A strategy that hardcodes a single base URL for both products fails silently on the other market until the routing is fixed.

  2. 02 · Copy-trade quirk

    OpenAPI returns errors on copy-trade and strategy-square positions even though the UI lists them together

    The CoinW platform displays copy-trade positions, strategy-square positions and user-originated orders together in a unified order history view. The OpenAPI does not. Calls against copy-trade or strategy-square positions return errors, while calls against user-originated orders succeed. A strategy that iterates the order list without client-side filtering hits the errors on every copy or strategy-square position, polluting the success rate and triggering retry storms. Filter for user-originated orders client-side before calling order-management endpoints.

  3. 03 · Geo restriction

    Service denial for US, CA, JP, UK accounts at the IP and KYC level

    CoinW does not provision accounts or accept API traffic from users in the United States, Canada, Japan and the United Kingdom. The block is enforced at both the IP (geo-IP) and KYC residency level. Strategies authenticated against a US-residency CoinW account will fail on order placement regardless of the cloud-runtime egress IP; relocating the container to a non-blocked region does not work around a US-KYC account. Treat the account jurisdiction as the hard gate, not the runtime egress IP.

  4. 04 · Futures endpoints

    `/v1/perpum/` path family handles perpetual futures

    CoinW perpetual futures endpoints sit under the `/v1/perpum/` path family. Instrument-info, margin-requirement and order-management endpoints differ between spot and perpetuals; the spot path tree and the futures path tree are not interchangeable. A common silent bug is calling a spot-style instrument-info endpoint against a perpetual symbol and getting a 404 or empty response back. Encode the spot vs futures path family in your client wrapper.

  5. 05 · Error codes

    Lean on the documented error code reference rather than guessing from HTTP status

    CoinW publishes a structured error code reference that maps response codes to root causes (auth, parameters, rate-limit, business-rule). The HTTP status alone does not communicate the actual failure; the response body carries the CoinW-specific code that names the cause. A retry loop that branches on HTTP status will retry against business-rule rejections that will never succeed. Branch on the documented error codes instead.

  6. 06 · Withdrawal scope

    Strategies should never load a withdrawal-scoped key

    CoinW supports scoped API keys with separate read, trade and withdrawal permissions. Strategies should never need withdrawal. Keep withdrawal on a separate manually-managed key on a fixed host that no strategy loads, and ship strategy keys with the trade and read scopes only. A leaked trade-only key cannot move funds off the venue; a leaked withdrawal-capable key can.

Section 06 · Built for

Built for

TradingHost CoinW runtimes are best suited to:

  • Developers building strategies in AI IDEs (Cursor, Claude Code)
  • Systematic crypto traders
  • Quant developers
  • CCXT users
  • Teams moving from VPS hosting to containerised deployment

Connecting GitHub and creating your first strategy is free.

Section 08 · FAQ

FAQ

No. TradingHost is independent and is not affiliated with CoinW.

No. Your strategy code connects to CoinW and sends instructions according to your own logic, account permissions and integration method. TradingHost provides the runtime where that code runs.

No. CoinW API access is provided by CoinW. You are responsible for your CoinW account, API permissions, credentials and compliance with CoinW’s terms.

No. TradingHost is the cloud runtime where your strategy code runs. We do not provide signals, AI prediction models or pre-built bots. With TradingHost you write or generate the strategy yourself (often with Cursor or Claude Code), keep it in GitHub as your code, and use TradingHost to run it in production. 3Commas, Cryptohopper and similar products own the strategy logic; TradingHost runs your strategy.

AWS and DigitalOcean give you raw compute. You handle OS updates, container orchestration, log shipping, secret rotation, region failover and uptime monitoring yourself. TradingHost gives you a managed runtime purpose-built for trading strategies: GitHub-native deployment, MCP-driven control from AI IDEs, log and health surfaces out of the box. If you want to operate the infrastructure yourself, AWS works. If you want the runtime as a managed service, TradingHost is the shorter path.

Yes. TradingHost runs Python strategies; pick the framework runtime that matches your stack or deploy your own repo.

Yes. TradingHost supports any language that can run inside a container.

Yes. CCXT ships a unified `coinw` class that covers spot trading; futures coverage is partial. Drop your CCXT strategy into a container, point it at GitHub, and TradingHost runs it like any other Python or Node project. See the CCXT framework runtime for the full setup story.

Yes. CoinW perpetual futures are reachable through the `/v1/perpum/` endpoint family on a separate base URL (`wss://ws.futurescw.com/perpum` for WebSocket). The strategy code inside your container must route by market type because the spot endpoints sit on `api.coinw.com` while the futures endpoints sit on the perpum subdomain. TradingHost is venue-agnostic at the runtime level; what matters is that your code encodes the URL split correctly.

Yes, if your project is designed that way. You can run multiple strategy processes or services inside one runtime, or separate them into different runtimes for isolation and operational clarity. See the TradingHost runtime page for the multi-strategy model.

The fastest path is to fork a TradingHost framework runtime: CCXT for a ready-to-deploy project. Or connect your own GitHub strategy repo. Linking a GitHub repo and creating a strategy is free; runtime plans are listed on the pricing page.

In your GitHub-controlled secrets workflow. TradingHost reads them at runtime through GitHub repository secrets, environment secrets or your own approved secret-management process. TradingHost does not need custody of your API key and secret. See platform secrets for the full handling model.

No. Strategies should never need withdrawal permissions. Scope your API key down to trading and account-state reads only, and keep withdrawal off the key entirely.

Yes. TradingHost supports MCP-based control for AI IDEs including Cursor, Claude Code, GitHub Copilot and CLI-based AI agents. AI tools can inspect deployments, review logs, restart strategies and manage runtime workflows. MCP is a control and observability surface, not the trade execution path. See the MCP control surface for the full picture.

Both. The MCP control surface works equally well from CLI-based agents (Claude Code CLI, custom MCP clients, scripted MCP calls) and from inside an IDE. The GitHub-native deployment loop also works without any AI tooling: a regular git push to your main branch triggers a redeploy.

The runtime detects the crash and exposes the relevant logs and health information. Where supported, the affected strategy can be restarted without disrupting other strategies running in the same container. Your strategy code is still responsible for safe error handling, duplicate-order protection and risk controls. See observability for the logs and health surface.

The CoinW platform UI displays copy-trade positions, strategy-square positions, and user-originated orders together in a unified view. The OpenAPI returns errors when called against copy-trade or strategy-square positions, even though they appear alongside user-originated orders. A strategy that iterates the order list without client-side filtering hits the errors on every copy or strategy-square position, polluting the success rate and triggering retry storms. Filter for user-originated orders client-side before calling order-management endpoints. See the Operational notes section above for the full guidance.

TradingHost runs in the EU and US-East regions. Pick the region closest to the matching engine your strategy depends on. Note: CoinW geo-blocks US, CA, JP, UK accounts at the KYC residency level; choosing a non-blocked TradingHost region does not work around a blocked account residency. See the regions page for routing and proximity details.

No. TradingHost is focused on production runtime and deployment. Backtesting belongs in your research stack, framework or AlgoBuilder.