Solana Index Fund API

Access Solana Index Fund data and functionality programmatically through our API.

API Overview

The Solana Index Fund API provides programmatic access to index data, token information, and other functionality. It allows developers to integrate Solana Index Fund data into their applications, create custom dashboards, or build trading bots.

Base URL

All API endpoints are available at the following base URL:

https://api.sindex.world/v1

Authentication

Some API endpoints require authentication. To authenticate, you need to include an API key in the request headers:

Authorization: Bearer YOUR_API_KEY

To obtain an API key, you need to register for API access.

API Categories

Index Data Endpoints

These endpoints provide access to index data, including composition, performance, and historical data.

  • /indexes - Get a list of all available indexes
  • /indexes/{index_id} - Get detailed information about a specific index
  • /indexes/{index_id}/composition - Get the current composition of an index
  • /indexes/{index_id}/performance - Get performance data for an index
  • /indexes/{index_id}/history - Get historical data for an index
  • /indexes/{index_id}/rebalancing - Get information about recent rebalancing events

Response Format

All API responses are in JSON format. A typical response has the following structure:

{
  "success": true,
  "data": {
    // Response data here
  },
  "meta": {
    "timestamp": "2023-05-15T12:34:56Z",
    "pagination": {
      "page": 1,
      "limit": 10,
      "total": 100
    }
  }
}

In case of an error, the response will have the following structure:

{
  "success": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Error message"
  },
  "meta": {
    "timestamp": "2023-05-15T12:34:56Z"
  }
}

Pagination

Endpoints that return lists of items support pagination. You can control pagination using the following query parameters:

  • page - The page number (default: 1)
  • limit - The number of items per page (default: 10, max: 100)

Example:

GET /tokens?page=2&limit=20

Error Codes

The API uses standard HTTP status codes to indicate the success or failure of a request. In addition, the response body includes an error code and message for more detailed information.

Common error codes include:

  • INVALID_API_KEY - The API key is invalid or missing
  • RATE_LIMIT_EXCEEDED - The rate limit has been exceeded
  • INVALID_PARAMETER - A request parameter is invalid
  • RESOURCE_NOT_FOUND - The requested resource was not found
  • INTERNAL_ERROR - An internal server error occurred

Learn More

API Endpoints

Detailed documentation for all API endpoints

Authentication

How to authenticate with the API