Toolverse
All skills

ccxt-php

by ccxt

CCXT cryptocurrency exchange library for PHP developers. Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors in PHP

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
ccxt
Category
Security
Views
4

About this skill

CCXT cryptocurrency exchange library for PHP developers. Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors in PHP 8.1+. Use when working with crypto exchanges in PHP projects, trading bots, or web applications. Supports both sync and async (ReactPHP) usage.

How to use

  1. Zainstaluj bibliotekę CCXT za pomocą Composera poleceniem composer require ccxt/ccxt. Upewnij się, że masz zainstalowane wymagane rozszerzenia PHP: cURL, mbstring, PCRE, iconv oraz opcjonalnie gmp dla niektórych giełd.

  2. Ustaw strefę czasową na UTC na początku skryptu poleceniem date_default_timezone_set('UTC') — jest to wymagane dla poprawnego działania biblioteki.

  3. Dla synchronicznego pobierania danych (REST API) utwórz instancję giełdy, załaduj rynki i pobierz dane. Przykład: utwórz nową instancję \ccxt\binance(), wywołaj load_markets(), a następnie fetch_ticker('BTC/USDT') aby pobrać aktualne ceny.

  4. Jeśli potrzebujesz operacji asynchronicznych, użyj \ccxt\async\binance() zamiast zwykłej klasy i opakowaj wywołania funkcją await() z ReactPHP.

  5. Do transmisji danych w czasie rzeczywistym użyj WebSocket API z klasą \ccxt\pro\binance() i funkcją watch_ticker() w pętli while. Pamiętaj aby zamknąć połączenie po zakończeniu pracy metodą close().

  6. Obsługuj błędy autentykacji i połączenia za pomocą standardowych mechanizmów obsługi wyjątków PHP — biblioteka rzuca wyjątki dla błędów API i problemów z siecią.

Related skills

zendesk

by vm0-ai

Zendesk Support REST API for managing tickets, users, organizations, and support operations. Use this skill to create tickets, manage users, search, and automate customer support workflows.

Security
11100

ui-audit

by openclaw

AI skill for automated UI audits. Evaluate interfaces against proven UX principles for visual hierarchy, accessibility, cognitive load, navigation, and more. Based on Making UX Decisions by Tommy Geoco.

Security
1223

architect-review

by sickn33

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural

Security
2773

academic-researcher

by Shubhamsaboo

Academic research assistant for literature reviews, paper analysis, and scholarly writing.\nUse when: reviewing academic papers, conducting literature reviews, writing research summaries,\nanalyzing methodologies, formatting citations, or when user mentions academic research,

Security
1260

security-compliance

by davila7

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding

Security
1172

skill-writer

by pytorch

Guide users through creating Agent Skills for Claude Code. Use when the user wants to create, write, author, or design a new Skill, or needs help with SKILL.md files, frontmatter, or skill structure.

Security
15116