π€API Reference
Comprehensive API documentation for the AIQuant platform.
Overview
The AIQuant API provides programmatic access to AI-powered quantitative trading data, analyses, and signals for cryptocurrency markets. This API allows developers, traders, and funds to integrate AIQuant's advanced trading intelligence directly into their applications and systems.
With the AIQuant API, you can access performance reports, trade logs, evaluation results, alpha signals, and trading playbooks across multiple blockchain networks. The API is designed to support a wide range of use cases from simple data retrieval to complex trading strategy implementation.
Getting Started
1. Create an AIQuant Account
Visit AIQuant.fun to sign up for an account.
2. Launch a Quant
Create and configure your AI-powered trading quant. This will be your primary trading agent that generates signals and evaluations.
3. Select an API Plan
Choose the API plan that best suits your needs:
Basic API: For indie builders and hobbyist developers
Growth API: For scaling products, mid-sized funds, and onchain tools
Enterprise API: For quant funds, trading platforms, and strategic innovators
4. Generate an API Key
See Authentication section.
5. Start Integrating
Add your API key to the request headers:
Test your integration with a simple request:
Authentication
All API requests must be authenticated using an API key. To make authenticated requests, include your API key in the request header:
Getting Your API Key
API keys are tied to your AIQuant subscription plan. To obtain an API key:
Subscribe to one of the API plans (Basic, Growth, or Enterprise)
Navigate to the API section in your profile settings
Generate a new API key
For security reasons, store your API key securely and do not share it publicly.
Rate Limits and Quotas
The AIQuant API implements daily request limits based on your subscription plan:
Basic API
100 requests/day
Up to 1 chain
Developers & Hobbyists
Growth API
500 requests/day
Up to 2 chains
Scaling Products
Enterprise API
5,000 requests/day
Unlimited chains
Quant Funds & Advanced Traders
Rate limit information is included in the response headers:
When you exceed your daily limit, the API will return a 429 Too Many Requests response.
API Plans and Features
AIQuant offers three API subscription plans with different capabilities:
Basic API Plan
Performance reports & trade logs
Quick evaluation summaries
Support: Email
Growth API Plan
Everything in Basic, plus:
Detailed evaluation reports
Realtime alpha signals
Basic trading playbook
Support: Email + Telegram
Enterprise API Plan
Everything in Growth, plus:
Advanced trading playbook
AI-powered strategy optimizations
Support: Email + Telegram + Slack
Available Endpoints
Base URL: https://api.aiquant.fun
All endpoints should be prefixed with this base URL. For example, to access the Trade Statistics endpoint, use: https://api.aiquant.fun/api/trades/stats
Performance & Trades
Evaluation Results
Alpha Signals
Trading Playbook
Strategy Optimization
Performance & Trades
Trade Statistics
Trade Metrics
GET /api/trades/stats
Retrieves aggregated metrics for trades, including total trades, volume, and weekly performance changes.
Query Parameters:
quantId(integer, optional): Filter metrics by specific quant ID
Response:
Trade History
Trade List
GET /api/trades
Retrieves paginated trade history with filtering options.
Query Parameters:
quantId(integer, optional): Filter by quant IDpage(integer, optional): Page number for paginationpageSize(integer, optional): Number of trades per pagesortBy(string, optional): Field to sort bysortOrder(string, optional): Sort direction (ascordesc)filterStatus(string, optional): Filter by trade statussearch(string, optional): Search term for tokensstartDate(string, optional): Filter by start date (ISO format)endDate(string, optional): Filter by end date (ISO format)chain(string, optional): Filter by blockchain networkpositionClosed(string, optional): Filter by position status (true,false, orall)isTrackingEnabled(string, optional): Filter by tracking status (true,false, orall)tradingMode(string, optional): Filter by trading mode (live,paper, orall)tradingStatus(string, optional): Filter by model validation status:
- executed - Shows only trades that were executed after approval (default when not specified)
- delayed - Shows trades currently delayed by model (with active wait timers)
- rejected - Shows trades rejected by model validation
- recommended - Shows trades in recommended status
- all - Shows all trades regardless of model validation status
Response:
Trade Details
Trade Information
GET /api/trades/:id
Retrieves detailed information about a specific trade.
Path Parameters:
id(integer, required): Trade ID
Response:
Evaluation Results
Evaluation Results
Evaluation Results
GET /api/eval-results
Retrieves the latest token evaluation results with filtering options.
Query Parameters:
limit(integer, optional): Maximum number of results to returnoffset(integer, optional): Number of results to skipchain(string, optional): Filter by blockchain networksearch(string, optional): Search term for tokensquantId(string, optional): Filter by quant IDpassed(string, optional): Filter by pass/fail statusuniqueTokensOnly(string, optional): Return only unique tokensonlyScored(string, optional): Return only scored evaluationstimeTo(string, optional): End time for results (ISO format)timeFrom(string, optional): Start time for results (ISO format)evaluationResultType(string, optional): Filter by evaluation type
Response:
Evaluation Details
Evaluation Details
GET /api/eval-details
Retrieves detailed information about a specific evaluation.
Query Parameters:
evaluationId(string, required): ID of the evaluation
Response:
Evaluation History
Evaluation History
GET /api/eval-history
Retrieves the evaluation history for a specific token or evaluation.
Query Parameters:
evaluationId(string, required): ID of the evaluationtake(integer, optional): Maximum number of results to returnskip(integer, optional): Number of results to skipexcludeTypes(string, optional): Evaluation type to exclude from results. Valid values are:TOKEN_STATUS,TOKEN_BUY, orTOKEN_SELL
Response:
Alpha Signals
Alpha Signals List
Alpha Signals
GET /api/alpha-signals
Retrieves a list of alpha signals with filtering options.
Query Parameters:
quantId(integer, optional): Filter by quant IDlimit(integer, optional): Maximum number of results to returnchain(string, optional): Filter by blockchain network. Valid values are:SOLANA,BASE, orBSCincludeTokenDetails(boolean, optional): Include detailed token informationsearch(string, optional): Search term for tokens
Response:
Alpha Signal Details
Signal Details
GET /api/alpha-signals/:tokenId
Retrieves detailed information about a specific alpha signal.
Path Parameters:
tokenId(integer, required): ID of the token
Query Parameters:
quantId(integer, optional): ID of the quant
Response:
Trading Playbook
Degen Configuration
Trading Playbook Configuration
GET /api/degen/config
Retrieves the trading playbook configuration for a quant.
Query Parameters:
quantId(integer, required): ID of the quantconfigGroupId(string, optional): ID of the configuration group
Response:
PUT /api/degen/config
Updates the trading playbook configuration for a quant.
Request Body:
Response:
Strategy Optimization
Optimization Dashboard
Strategy Dashboard
GET /api/refine-eval/dashboard
Retrieves the strategy optimization dashboard with performance metrics and recommendations.
Query Parameters:
quantId(integer, optional): ID of the quant
Response:
Run Analysis
Analysis Executor
POST /api/refine-eval/analyze
Executes a strategy analysis to generate optimization recommendations.
Request Body:
apply(string, optional): Whether to automatically apply recommendations ("true"or"false")minCompletedTrades(integer, optional): Minimum number of completed trades required for analysis
Example Request:
Response:
Apply Recommendation
Apply Recommendation
POST /api/refine-eval/recs/:id/apply
Applies a specific optimization recommendation to the trading strategy.
Path Parameters:
id(integer, required): ID of the recommendation to apply
Response:
Code Examples
JavaScript/Node.js
Python
For urgent assistance, please contact our developer relations team at [email protected]
Last updated