API Reference
Complete reference for Asanat's REST API and WebSocket connections
API Keys
Get your API keys from your account dashboard to start using the Asanat API.
🔑 Getting Started
- Log in to your Asanat account
- Navigate to Settings → API Keys
- Generate a new API key
- Copy and securely store your key
Authentication
All API requests require authentication using your API key in the request header.
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://api.asanat.com/v1/portfolio
Rate Limits
📊 Free Plan
- 100 requests/hour
- Basic endpoints only
- No WebSocket access
🚀 Pro Plan
- 1,000 requests/hour
- All endpoints
- WebSocket access
Portfolio Endpoints
GET
/v1/portfolio
Get your complete portfolio data including holdings, performance, and analytics.
Response Example:
{
"portfolio": {
"total_value": 45234.67,
"total_change_24h": 2.34,
"holdings": [
{
"symbol": "BTC",
"amount": 0.5,
"value": 33500.00,
"change_24h": 1.2
}
]
}
}
Market Data Endpoints
GET
/v1/market/prices
Get current market prices for cryptocurrencies.
Parameters:
symbols
- Comma-separated list of symbols (e.g., BTC,ETH,ADA)vs_currency
- Base currency (default: USD)