API

PriceONN API

Access forex data and analysis tools with our powerful and easy-to-use REST API.

Ultra Fast

One of the fastest forex APIs with an average 50ms response time.

Secure

Secure access with SSL encryption and API key authentication.

Global

Access to 50+ forex pairs, commodities, and cryptocurrency data.

Authentication

You must send your API key in the Authorization header of all API requests.

HTTP Header
Authorization: Bearer YOUR_API_KEY

Base URL

The base URL for all API requests is as follows:

Base URL
https://api.priceonn.com/v1

Rate Limits

API rate limits vary by plan:

Plan Requests/Min Requests/Day
Free 10 1,000
Pro 60 50,000
Enterprise 300 Unlimited

Market Data

Access to real-time and historical market data.

GET /market/quote/{symbol}

Returns current price information for the specified symbol.

Parameters

symbol string Required Forex pair (e.g., XAUUSD, EURUSD)

Example Request

cURL
curl -X GET "https://api.priceonn.com/v1/market/quote/XAUUSD" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

JSON
{
  "symbol": "XAUUSD",
  "bid": 2645.50,
  "ask": 2645.70,
  "spread": 0.20,
  "high": 2658.30,
  "low": 2632.10,
  "change": 15.40,
  "changePercent": 0.58,
  "timestamp": "2026-01-23T12:00:00Z"
}

Analysis Endpoints

APIs for technical analysis and pattern recognition.

POST /analysis/patterns

Scans for patterns in the specified timeframe.

Request Body

JSON
{
  "symbol": "EURUSD",
  "timeframe": "H1",
  "patterns": ["head_and_shoulders", "double_top", "triangle"]
}

Prediction Endpoints

AI-powered price predictions and trend analysis.

GET /predictions/{symbol}

Returns AI-based price prediction for the specified symbol.

SDKs

Quick integration using our official SDKs:

Error Codes

The following HTTP error codes may be returned in API responses:

Code Meaning
400 Bad Request - Check parameters
401 Unauthorized - API key invalid or missing
403 Forbidden - No access to this resource
404 Not Found - Resource does not exist
429 Too Many Requests - Rate limit exceeded
500 Server Error - Please try again later