OrbitYield API Overview
OrbitYield provides a comprehensive REST API that allows developers to integrate with our platform and access yield optimization features programmatically.
Introduction
The OrbitYield API enables developers to build applications that interact with our yield optimization platform. Whether you're building a portfolio tracker, a DeFi dashboard, or integrating yield opportunities into your own application, our API provides the tools you need.
Our API follows RESTful principles and uses standard HTTP response codes, authentication, and verbs. All responses are returned in JSON format, making it easy to parse and use in any programming language.
Base URL
https://api.orbityield.cc/v1
All API requests should be made to this base URL plus the endpoint path.
Authentication
The OrbitYield API uses API keys to authenticate requests. You can view and manage your API keys in the developer section of your OrbitYield dashboard.
Authentication is performed via the X-API-KEY
HTTP header:
X-API-KEY: your_api_key_here
API Key Security
Your API key carries many privileges, so be sure to keep it secure! Do not share your API key in publicly accessible areas such as GitHub, client-side code, or in your frontend application.
We recommend creating separate API keys for different applications and setting appropriate access permissions for each key.
Rate Limiting
To ensure the stability of our API and fair usage across all users, we implement rate limiting. The current limits are:
Plan | Rate Limit | Burst Limit |
---|---|---|
Free | 60 requests per minute | 100 requests |
Pro | 300 requests per minute | 500 requests |
Enterprise | Custom | Custom |
When you exceed the rate limit, the API will return a 429 Too Many Requests
response. Each response includes the following headers to help you manage your rate limits:
X-RateLimit-Limit
: The maximum number of requests you're permitted to make per minute.X-RateLimit-Remaining
: The number of requests remaining in the current rate limit window.X-RateLimit-Reset
: The time at which the current rate limit window resets in UTC epoch seconds.
Response Formats
All responses are returned in JSON format. A typical successful response will have the following structure:
{ "success": true, "data": { // Response data here }, "meta": { "pagination": { "total": 100, "count": 10, "per_page": 10, "current_page": 1, "total_pages": 10 } } }
Error responses will have the following structure:
{ "success": false, "error": { "code": "error_code", "message": "A descriptive error message", "details": { // Additional error details if available } } }
HTTP Status Codes
The OrbitYield API uses standard HTTP status codes to indicate the success or failure of an API request:
Status Code | Description |
---|---|
200 OK | The request was successful. |
201 Created | The resource was successfully created. |
400 Bad Request | The request was invalid or could not be understood. |
401 Unauthorized | Authentication failed or user doesn't have permissions. |
403 Forbidden | The authenticated user doesn't have permission to access the specified resource. |
404 Not Found | The requested resource does not exist. |
422 Unprocessable Entity | The request was well-formed but could not be processed due to semantic errors. |
429 Too Many Requests | The rate limit has been exceeded. |
500 Internal Server Error | An error occurred on the server. |
Pagination
For endpoints that return collections of resources, the OrbitYield API supports pagination through query parameters:
Parameter | Description | Default |
---|---|---|
page | The page number to retrieve. | 1 |
per_page | The number of items to return per page. | 10 |
Example request with pagination:
GET /strategies?page=2&per_page=15
API Versioning
The OrbitYield API is versioned to ensure backward compatibility as we develop new features. The current version is v1
, which is included in the base URL.
We will notify all API users well in advance of any changes that would break compatibility. When a new version is released, the previous version will remain available for a deprecation period of at least 6 months.
Version Lifecycle
1. Active: The current version that receives all new features and improvements.
2. Maintenance: Still supported but only receives critical bug fixes and security updates.
3. Deprecated: No longer receiving updates and scheduled for removal. Users should migrate to a newer version.
Client Libraries & SDKs
To make integration easier, we provide official client libraries for popular programming languages:
JavaScript/TypeScript
Perfect for web applications, Node.js backends, and React Native apps.
npm install @orbityield/api-client
Python
Ideal for data analysis, backend services, and scripting.
pip install orbityield-api
Java
For enterprise applications and Android development.
implementation 'cc.orbityield:api-client:1.0.0'
Next Steps
Now that you understand the basics of the OrbitYield API, explore our detailed documentation to learn about specific endpoints and features: