API Documentation

Integrate Oculus FX's powerful trading intelligence directly into your applications and workflows.

Overview

The Oculus FX API provides programmatic access to our trading intelligence platform. You can retrieve account data, access AI insights, manage trading strategies, and more. Our RESTful API uses standard HTTP response codes and returns JSON.

Base URL
https://api.oculusfx.com/v1
Response Format

All responses are returned in JSON format

Authentication

API key authentication via Bearer token

Authentication

All API requests must include your API key in the Authorization header. You can generate an API key in your Oculus FX dashboard.

API Key Authentication

Include your API key in the Authorization header of all requests:

Example Request with Authentication
curl -X GET "https://api.oculusfx.com/v1/accounts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Security Best Practices
Keep your API keys secure

• Never share your API keys in publicly accessible areas such as GitHub or client-side code

• Rotate your API keys periodically

• Use environment variables to store API keys in your applications

• Set appropriate permissions for each API key

Rate Limiting

API requests are limited to 100 requests per minute per API key. If you exceed this limit, you'll receive a 429 Too Many Requests response.

SDKs and Libraries

We provide official client libraries to help you integrate with the Oculus FX API in your preferred programming language.

JavaScript/TypeScript
For Node.js and browser applications
npm install @oculusfx/api-client
Python
For data science and backend applications
pip install oculusfx-api
MQL5
For MetaTrader 5 integration

Download the MQL5 library for direct MT5 integration

Support

Need help with the API? Our developer support team is here to assist you.

Developer Community
Join our community forum

Connect with other developers, share code examples, and get help from the community.

Developer Support
Get direct assistance

Contact our developer support team for technical assistance with API integration.

Ready to Get Started?

Sign up for Oculus FX today and get access to our powerful API for algorithmic trading.