API Documentation
Build AI agents that discover and consume services autonomously.
https://agentictrade.io/api/v1
Quick Start
Get your agent calling services in 3 steps:
Create an API Key
curl -X POST https://agentictrade.io/api/v1/keys \
-H "Content-Type: application/json" \
-d '{"owner_id": "my-agent-001", "role": "buyer"}'
# Response:
# {"key_id": "acf_a1b2c3...", "secret": "Sp8vKq9w...", "role": "buyer"}
# Save the secret — it won't be shown again!
Browse Available Services
curl https://agentictrade.io/api/v1/discover
# Returns all active services with pricing, categories, and free tier info
Call a Service
curl -X POST https://agentictrade.io/api/v1/proxy/{service_id}/api/scan \
-H "Authorization: Bearer acf_a1b2c3:Sp8vKq9w..." \
-H "Content-Type: application/json"
# The marketplace handles payment automatically.
# Response headers include billing info:
# X-ACF-Amount: 0.50
# X-ACF-Free-Tier: true
Authentication
All authenticated endpoints use Bearer token authentication:
Authorization: Bearer {key_id}:{secret}
Example:
Authorization: Bearer acf_a1b2c3d4e5f6g7h8:Sp8vKq9wRx2yZaA_B1C2D3E4F5G6H7
Roles
| Role | Can Do |
|---|---|
buyer | Call services via proxy, check balance, view usage |
provider | Register and manage services, view earnings |
admin | Full platform access |
Rate Limits
| Tier | Limit |
|---|---|
| Default | 60 requests / minute |
| Maximum | 300 requests / minute |
Available Services
CoinSifter Demo — Sample Results
Free demo endpoint returning sample CoinSifter scan results. No Binance API key required. Test integration before upgrad...
758c1057-191e-405e-a352-7f52bcd97a82
Strategy Catalog — Browse Templates
Browse available trading strategy templates and their configurable parameters. Free to access.
0a7ab758-ee00-4141-afcd-d86d5fd1536b
AI Result Validator
Two-layer AI task validation API. Rule-based fast screening (<100ms) catches errors, empty claims, and missing evidence....
69517247-9a7d-45d7-8ba7-bee3b3cc130b
Test Echo API
A simple echo service for testing
517f8fff-cd14-483d-9f17-1262832b64a4
CoinSifter Pro API
Real-time crypto scanner — scans 600+ USDT pairs across exchanges, applies multi-strategy filtering with technical indic...
7ed931d1-57fb-4d97-8a27-8efd3dad04a4
CoinSifter — Crypto Market Scanner
AI-powered cryptocurrency market scanner. Scans Binance USDT pairs with customizable technical indicators (RSI, EMA, MAC...
6a9939cf-583b-4e6d-897f-360dcf200f59
Shorts Script Factory API
Turn one topic into a production-ready Shorts script — returned as usable JSON with hooks, scenes, visual prompts, CTA, ...
43d2d4ad-f1b2-43e4-b91c-ea366b307588
Strategy Backtest API
Run backtests with pre-built crypto trading strategies. 3 strategies: BB Squeeze (momentum), MACD Divergence (reversal),...
3c6734ed-3d9c-472c-a8dd-b190d1d4ac05
Service Discovery
Returns all registered services with pricing info. No authentication required.
Query Parameters
| Param | Type | Description |
|---|---|---|
category | string | Filter by category |
query | string | Search by name/description |
limit | int | Max results (default: 50) |
offset | int | Pagination offset |
curl https://agentictrade.io/api/v1/services?category=crypto-analysis
Enhanced discovery with filtering, sorting, and tag matching.
Query Parameters
| Param | Type | Description |
|---|---|---|
tags | string | Comma-separated tag filter |
min_price | float | Minimum price per call |
max_price | float | Maximum price per call |
sort | string | Sort by: price, name, created |
curl "https://agentictrade.io/api/v1/discover?tags=crypto&max_price=1.0&sort=price"
Returns available service categories with service counts.
curl https://agentictrade.io/api/v1/discover/categories
Proxy — Call Services
Proxies your request to the service provider. Supports GET, POST, PUT, PATCH, DELETE.
Path Parameters
| Param | Description |
|---|---|
service_id | UUID of the target service |
path | The API path on the provider (e.g., api/scan) |
Response Headers
| Header | Description |
|---|---|
X-ACF-Usage-Id | Unique usage record ID |
X-ACF-Amount | Amount charged (USDC) |
X-ACF-Free-Tier | true true if free tier was used |
X-ACF-Latency-Ms | Request latency in milliseconds |
Example: CoinSifter Demo (free)
curl -H "Authorization: Bearer {key_id}:{secret}" \
"https://agentictrade.io/api/v1/proxy/758c1057-191e-405e-a352-7f52bcd97a82/api/demo"
# Returns real-time crypto scan results
Example: CoinSifter Scanner ($0.50/call)
curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
"https://agentictrade.io/api/v1/proxy/6a9939cf-583b-4e6d-897f-360dcf200f59/api/scan"
# Triggers a full market scan with your strategy
Example: Strategy Backtest ($2.00/call)
curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
-H "Content-Type: application/json" \
-d '{"symbol": "BTC/USDT", "strategy": "bb_squeeze", "timeframe": "4h"}' \
"https://agentictrade.io/api/v1/proxy/3c6734ed-3d9c-472c-a8dd-b190d1d4ac05/api/backtest"
# Returns win rate, profit factor, equity curve, trade list
Returns total calls, spend, and average latency for the authenticated buyer.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/usage/me
# {"buyer_id": "my-agent", "total_calls": 42, "total_spent_usd": "12.50", "avg_latency_ms": 35}
Billing & Deposits
Services are pre-paid. Deposit funds to your account, then call services.
curl https://agentictrade.io/api/v1/balance/my-agent-001
# {"buyer_id": "my-agent-001", "balance": 50.0, "total_deposited": 100.0, "total_spent": 50.0}
Creates a crypto payment invoice via NOWPayments. Supports USDT, USDC, BTC, ETH, and 300+ cryptocurrencies.
curl -X POST https://agentictrade.io/api/v1/deposits \
-H "Content-Type: application/json" \
-d '{"buyer_id": "my-agent-001", "amount": 50}'
# {"deposit_id": "...", "amount": 50, "status": "pending",
# "checkout_url": "https://nowpayments.io/payment/?iid=...",
# "message": "Pay $50 at the checkout URL..."}
After payment confirms, your balance is automatically credited via IPN webhook.
API Keys
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
owner_id | string | Yes | Your agent/user identifier |
role | string | No | buyer (default) or provider |
curl -X POST https://agentictrade.io/api/v1/keys \
-H "Content-Type: application/json" \
-d '{"owner_id": "my-trading-bot", "role": "buyer"}'
# {"key_id": "acf_...", "secret": "...", "role": "buyer", "rate_limit": 60}
# IMPORTANT: Save the secret! It cannot be retrieved later.
Provider
Endpoints for service providers to manage their services, view earnings, and track health. All require provider-role authentication.
Returns service count, total calls, revenue, and settlement status for the authenticated provider.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/provider/dashboard
Returns all services owned by the authenticated provider with usage stats.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/provider/services
Detailed analytics for a specific service: total calls, revenue, success rate, daily breakdown.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/provider/services/{service_id}/analytics
Returns total earned, settled, pending amounts, and settlement history.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/provider/earnings
Returns health scores for all your services based on latency, error rate, and uptime.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/provider/health
Tests connectivity to your service endpoint. Returns reachability, latency, and status code.
curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/provider/services/{service_id}/test
Track your onboarding progress: API key creation, service registration, first traffic, first settlement.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/provider/onboarding
Settlements
Admin endpoints for managing provider payouts.
Creates a new settlement for a provider. Requires admin role.
curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
-H "Content-Type: application/json" \
-d '{"provider_id": "prov-001", "period_start": "2026-01-01", "period_end": "2026-02-01"}' \
https://agentictrade.io/api/v1/settlements
Lists all settlements, optionally filtered by provider or status.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/settlements
Marks a settlement as paid and triggers the on-chain transfer.
curl -X PATCH -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/settlements/{settlement_id}/pay
Referrals
Referral program endpoints for generating and tracking referral codes.
Generates a unique referral code for the authenticated user.
curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/referrals/code
Apply a referral code during registration to link accounts.
curl -X POST -H "Content-Type: application/json" \
-d '{"code": "REF-ABC123"}' \
https://agentictrade.io/api/v1/referrals/apply
Lists all referrals made by the authenticated user.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/referrals
Aggregated referral statistics: total referrals, conversion rate, and earnings.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/referrals/stats
Webhooks
Subscribe to real-time event notifications.
Registers a new webhook endpoint to receive event notifications.
Request Body
| Field | Type | Description |
|---|---|---|
url | string | HTTPS endpoint to receive events |
events | array | Event types to subscribe: usage.created, settlement.completed, etc. |
curl -X POST -H "Authorization: Bearer {key_id}:{secret}" \
-H "Content-Type: application/json" \
-d '{"url": "https://myapp.com/webhooks", "events": ["usage.created"]}' \
https://agentictrade.io/api/v1/webhooks
Lists all registered webhooks for your account.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/webhooks
Removes a webhook subscription.
curl -X DELETE -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/webhooks/{webhook_id}
Audit
Security audit endpoints for tracking platform activity. Requires admin role.
Returns the security audit log with filtering options.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/admin/audit
Aggregated audit statistics: event counts by type and time period.
curl -H "Authorization: Bearer {key_id}:{secret}" \
https://agentictrade.io/api/v1/admin/audit/summary
Error Responses
All API errors return a consistent JSON structure with an appropriate HTTP status code.
Common Status Codes
| Status Code | Meaning | Description |
|---|---|---|
400 | Bad Request | Invalid parameters or malformed request body. |
401 | Unauthorized | Missing or invalid API key. |
403 | Forbidden | Insufficient permissions for the requested resource. |
404 | Not Found | The requested resource does not exist. |
429 | Too Many Requests | Rate limit exceeded. Wait and retry. |
500 | Internal Server Error | Unexpected server error. Contact support if persistent. |
Error Response Format
Every error response includes an error code, a human-readable message, and the HTTP status:
{
"error": "unauthorized",
"message": "Invalid API key. Check your key_id and secret.",
"status": 401
}
Fields:
| Field | Type | Description |
|---|---|---|
error | string | Machine-readable error code (e.g. "unauthorized", "bad_request", "rate_limited"). |
message | string | Human-readable description of what went wrong. |
status | int | HTTP status code (matches the response status). |
Rate Limit Headers
Every response includes rate limit headers so your agent can throttle requests proactively:
| Header | Description | Example |
|---|---|---|
X-RateLimit-Limit | Maximum number of requests allowed per window. | 60 |
X-RateLimit-Remaining | Number of requests remaining in the current window. | 42 |
X-RateLimit-Reset | Unix timestamp (seconds) when the rate limit window resets. | 1711324800 |
When a 429 response is returned, use these headers to determine when to retry:
# Example 429 response headers HTTP/1.1 429 Too Many Requests X-RateLimit-Limit: 60 X-RateLimit-Remaining: 0 X-RateLimit-Reset: 1711324800 Content-Type: application/json { "error": "rate_limited", "message": "Rate limit exceeded. Retry after 1711324800.", "status": 429 }
Python SDK
Install the SDK:
# Install from PyPI
pip install agentictrade
Use the bundled SDK for seamless integration:
from sdk.client import ACFClient client = ACFClient( base_url="https://agentictrade.io", api_key="acf_xxx:secret_yyy", ) # Discover services services = client.list_services(category="crypto-analysis") # Call a service through the proxy result = client.proxy( service_id="6a9939cf-583b-4e6d-897f-360dcf200f59", path="api/scan", method="POST", ) print(result["results"])
Agent Integration Guide
How an autonomous agent uses AgenticTrade:
Agent discovers available services
GET /api/v1/discover — finds services matching its task.
Agent checks its balance
GET /api/v1/balance/{buyer_id} — ensures sufficient funds.
Agent calls the service
POST /api/v1/proxy/{service_id}/{path} — marketplace handles payment.
Agent processes the response
Response body from the provider + billing headers from the marketplace.
Pricing
| Service | Price | Free Tier | Payment |
|---|---|---|---|
| CoinSifter Demo — Sample Results | FREE | Always free | Crypto (100+ coins) |
| Strategy Catalog — Browse Templates | FREE | Always free | Crypto (100+ coins) |
| AI Result Validator | $0.01 USDC | 20 calls | Crypto (100+ coins) |
| Test Echo API | $0.01 USDC | 10 calls | Crypto (100+ coins) |
| CoinSifter Pro API | $0.1 USDC | 10 calls | Crypto (100+ coins) |
| CoinSifter — Crypto Market Scanner | $0.5 USDC | 5 calls | Crypto (100+ coins) |
| Shorts Script Factory API | $0.79 USDC | Always free | Crypto (100+ coins) |
| Strategy Backtest API | $2.0 USDC | 3 calls | Crypto (100+ coins) |