API Reference
Welcome to the chipa.trade API documentation. Our API provides programmatic access to trading data, token information, and platform features. All API endpoints require authentication using API keys.
Authentication & API Keys
All protected endpoints require an API key. You can manage your API keys in your account dashboard.
Getting API Keys
- Sign in to your chipa.trade account
- Navigate to Account Settings β API Keys
- Click "Create New API Key"
- Set permissions and rate limits
- Copy and securely store your API key
Request Header
curl -H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://chipa.trade/api/endpoint
Rate Limits
- β’ Default: 60 requests per minute
- β’ Premium: 300 requests per minute
- β’ Enterprise: Custom limits available
API Endpoints
GET /api/new-pairs
ProtectedDiscover newly listed trading pairs from Raydium and Pump.fun.
Query Parameters
hours
(number, optional) - Timeframe in hours (1-168). Default: 24source
(string, optional) - Filter by source:raydium
,pump.fun
, orall
. Default: all
Example Request
curl -H "x-api-key: YOUR_API_KEY" \
"https://chipa.trade/api/new-pairs?hours=24&source=raydium"
Example Response
{
"pairs": [
{
"mint": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"name": "Solana",
"source": "raydium",
"poolId": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"createdAt": "2025-06-17T10:30:00Z",
"liquidity": 125000.50,
"price": 150.25
}
],
"stats": {
"total": 1,
"timeframe": "24 hours",
"sources": {
"pump.fun": 0,
"raydium": 1
}
}
}
POST /api/market-data
ProtectedGet detailed market data for multiple tokens.
Request Body
{
"tokens": ["So11111111111111111111111111111111111111112"],
"timeframe": "5m",
"limit": 100
}
Example Request
curl -X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tokens":["So11111111111111111111111111111111111111112"],"timeframe":"5m"}' \
"https://chipa.trade/api/market-data"
GET /api/price/[mint]
ProtectedGet real-time price data for a specific token.
Path Parameters
mint
(string, required) - Token mint address
Example Request
curl -H "x-api-key: YOUR_API_KEY" \
"https://chipa.trade/api/price/So11111111111111111111111111111111111111112"
GET /api/status
PublicGet real-time system status and service health.
Example Request
curl "https://chipa.trade/api/status"
Error Codes
Client Errors (4xx)
400
- Bad Request401
- Unauthorized (Invalid API Key)403
- Forbidden404
- Not Found429
- Rate Limit Exceeded
Server Errors (5xx)
500
- Internal Server Error502
- Bad Gateway503
- Service Unavailable504
- Gateway Timeout
Rate Limit Headers
All API responses include rate limit headers:
X-RateLimit-Limit
- Maximum requests per minuteX-RateLimit-Remaining
- Remaining requests in current windowX-RateLimit-Reset
- Time when rate limit resets (Unix timestamp)
SDKs & Examples
JavaScript/TypeScript
npm install @chipa-trade/sdk
import { ChipaAPI } from '@chipa-trade/sdk';
const api = new ChipaAPI('your-api-key');
const pairs = await api.getNewPairs();
Python
pip install chipa-trade
import chipa_trade
client = chipa_trade.Client('your-api-key')
pairs = client.get_new_pairs()