Skip to main content

Root Information

GET /api/v1/ Returns general API information and WebSocket endpoints.

Request

curl "https://data.quantcite.com/api/v1/"

Response

{
  "message": "This API uses WebSocket-only communication for real-time data",
  "websocket_endpoint": "/api/v1/ws?api_key=YOUR_API_KEY",
  "authentication": {
    "required": true,
    "method": "API Key",
    "parameter": "api_key (query parameter)"
  },
  "connection_example": "wss://data.quantcite.com/api/v1/ws?api_key=your_api_key",
  "features": [
    "Real-time aggregated orderbook across multiple exchanges",
    "WebSocket-based streaming data",
    "50GB monthly data limits per API key",
    "Multi-exchange subscription management"
  ]
}

Response Fields

FieldTypeDescription
messagestringBrief description of the API
websocket_endpointstringWebSocket connection endpoint pattern
authenticationobjectAuthentication requirements and method
connection_examplestringExample WebSocket connection URL
featuresarrayList of key API features

Authentication Object

FieldTypeDescription
requiredbooleanWhether authentication is required
methodstringAuthentication method used
parameterstringHow to provide the API key

Usage Example

This endpoint is useful for API discovery and getting connection information:
import requests

def get_api_info():
    """Get QuantCite API information"""
    response = requests.get("https://data.quantcite.com/api/v1/")
    
    if response.status_code == 200:
        data = response.json()
        
        print("QuantCite API Information:")
        print(f"- {data['message']}")
        print(f"- WebSocket: {data['websocket_endpoint']}")
        print(f"- Authentication: {data['authentication']['method']}")
        
        print("\nFeatures:")
        for feature in data['features']:
            print(f"  • {feature}")
            
        return data
    else:
        print(f"Error: {response.status_code}")
        return None

# Get API information
api_info = get_api_info()

Error Handling

HTTP Status Codes

CodeDescription
200Success - API information returned
500Internal Server Error

Error Response

{
  "error": "internal_server_error",
  "message": "Unable to retrieve API information",
  "timestamp": "2025-09-18T10:30:00.000Z"
}
This endpoint provides general information about the API and is typically used for service discovery and initial connection setup.