-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the official documentation for the CoinQuant PHP & Laravel SDK! This library provides a seamless, strictly-typed PHP 8.1+ interface for the CoinQuant public API.
CoinQuant is an AI-powered no-code trading platform that allows you to describe trading strategies in plain English, build them using AI, and backtest them instantly on institutional-grade data. This SDK wraps the platform's intelligence layer, enabling you to integrate these capabilities directly into your PHP applications and Laravel projects without dealing with raw cURL requests, Server-Sent Events (SSE) parsing, or manual polling loops.
CoinQuant acts as the trust layer for both human traders and autonomous AI agents in the financial economy [1]. It provides a unified intelligence system combining:
- Institutional-grade backtesting with data from providers like Kaiko.
- AI-powered strategy optimization.
- Natural-language and voice-driven strategy building.
- One-click automation and execution.
The tigusigalpa/coinquant-php package is designed to be highly modular and Composer-compatible, working perfectly as a standalone library or seamlessly integrating into Laravel 10+ applications [2].
Key features include:
- Strict Typing: Built for PHP 8.1+ with strict type declarations.
-
Laravel Integration: Automatic
ServiceProviderregistration and a convenientCoinQuantfacade. - Full API Coverage: Supports all 37 public endpoints, including chats, strategies, backtests, reports, and community leaderboards.
- Streaming Support: Native handling of Server-Sent Events (SSE) via PHP generators for real-time AI responses.
-
Simplified Workflows: Helpers like
createBacktestAndWait()to handle asynchronous polling automatically. -
Actionable Exceptions: Detailed error handling with
CoinQuantExceptioncarrying HTTP status, request IDs, and machine codes. - Customizable HTTP Client: Built on top of Guzzle, allowing you to inject your own client for retries, proxies, or custom logging.
Ready to dive in? Follow our guides to get your integration up and running:
- Installation & Configuration: Learn how to install the package via Composer and set up your API token.
- Laravel Integration: Discover how to use the SDK within your Laravel application using the provided facade and service container.
- Core Concepts & Streaming: Understand how to interact with the AI engine, handle streaming responses, and materialize strategies.
- Backtesting Guide: Learn how to submit, poll, and retrieve results from your trading strategies.
- API Reference: Explore the complete list of available endpoints and methods.
- Author: Igor Sazonov (@tigusigalpa) [2]
- Email: sovletig@gmail.com
- CoinQuant Platform: coinquant.ai
- Repository: GitHub
If you encounter any issues or have feature requests, please feel free to open an issue on the GitHub repository.
[1] CoinQuant introduces trading infrastructure for the agent economy [2] CoinQuant PHP GitHub Repository