ccxt-php

Integrate CCXT into PHP projects for exchange trading and market data access.

43.6k|8.8k|Updated May 14, 2017
One-click install
npx skills add https://github.com/ccxt/ccxt --skill ccxt-php
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ccxt-php
Source: https://github.com/ccxt/ccxt/tree/main/.claude/skills/ccxt-php
Command: npx skills add https://github.com/ccxt/ccxt --skill ccxt-php

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a practical, PHP-focused guide to using CCXT to connect to cryptocurrency exchanges, enabling programmatic trading, market data access, and account management from PHP applications.

Core Features & Use Cases

  • REST API access: Connect to multiple exchanges to fetch market data, tickers, order books, and place orders using REST endpoints.
  • WebSocket support (where available): Leverage real-time data streams for selected exchanges using CCXT Pro variants in PHP environments.
  • Use Case: Build a PHP-based trading bot or data-collection tool that loads markets, retrieves tickers, and executes orders across several exchanges.

Quick Start

Install via Composer: composer require ccxt/ccxt Create an exchange instance: $exchange = new \ccxt\binance(['enableRateLimit' => true]) Load markets and fetch ticker: $exchange->load_markets(); $ticker = $exchange->fetch_ticker('BTC/USDT')

Frequently Asked Questions about ccxt-php

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a cryptocurrency exchange API into a PHP trading bot?

To integrate a cryptocurrency exchange API into a PHP trading bot, install CCXT via Composer and instantiate an exchange class to load markets, fetch tickers, and place orders across REST endpoints.

Can I use WebSocket connections for real-time crypto market data in PHP?

Yes, you can use WebSocket connections for real-time crypto market data in PHP by leveraging CCXT Pro variants, which provide real-time data streams for selected exchanges where WebSocket support is available.

What PHP extensions and versions are needed for cryptocurrency trading with CCXT?

Cryptocurrency trading with CCXT requires a PHP environment with explicit PHP version and extensions configured, alongside Composer for package installation to ensure full compatibility with exchange REST and WebSocket endpoints.

How do I fetch order books and execute trades across multiple crypto exchanges in PHP?

Fetch order books and execute trades across multiple crypto exchanges in PHP by creating CCXT exchange instances, loading markets, and using built-in methods to retrieve data and submit REST orders programmatically.

What is the best way to collect cryptocurrency market data using a PHP application?

The best way to collect cryptocurrency market data using a PHP application is utilizing CCXT to connect to multiple exchanges, enabling programmatic access to tickers, order books, and account management through REST APIs.

Are there limitations when using PHP for cryptocurrency trading compared to other languages?

Limitations when using PHP for cryptocurrency trading include WebSocket support being restricted to selected exchanges via CCXT Pro variants, requiring explicit PHP version and extension management for REST and real-time data workflows.