cURL
curl --request GET \
--url 'https://api.fastforex.io/metals/quote?api_key='import requests
url = "https://api.fastforex.io/metals/quote?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/metals/quote?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/metals/quote?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/metals/quote?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/metals/quote?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/metals/quote?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"quotes": {
"XAUUSD": {
"bid": "4127.32",
"ask": "4127.65",
"mid": "4127.49",
"spread": "0.33",
"tsp": 1793870621899,
"dtm": "2026-11-05T09:23:41Z",
"metal": "XAU",
"target": "USD",
"unit": "oz_t",
"purity": "1000",
"cross_rate": false
},
"XCUUSD": {
"bid": "14016.7",
"ask": "14023.8",
"mid": "14020.3",
"spread": "7.1",
"tsp": 1793870620879,
"dtm": "2026-11-05T09:23:40Z",
"metal": "XCU",
"target": "USD",
"unit": "metric_tonne",
"cross_rate": false
}
},
"source": "otc_aggregate",
"warnings": {
"invalid_instruments": [
"XYZUSD"
]
},
"ms": 8
}Metals
Real-time Metals bid/ask quote
Latest bid/ask for up to 10 metals instruments, quoted exactly as the feed supplies them - no unit, purity or currency conversion is applied.
Instruments beyond the first 10 are reported under warnings.ignored_instruments, and unrecognised ones under warnings.invalid_instruments. The request fails only if no valid instrument is supplied at all.
GET
/
metals
/
quote
cURL
curl --request GET \
--url 'https://api.fastforex.io/metals/quote?api_key='import requests
url = "https://api.fastforex.io/metals/quote?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/metals/quote?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/metals/quote?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/metals/quote?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/metals/quote?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/metals/quote?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"quotes": {
"XAUUSD": {
"bid": "4127.32",
"ask": "4127.65",
"mid": "4127.49",
"spread": "0.33",
"tsp": 1793870621899,
"dtm": "2026-11-05T09:23:41Z",
"metal": "XAU",
"target": "USD",
"unit": "oz_t",
"purity": "1000",
"cross_rate": false
},
"XCUUSD": {
"bid": "14016.7",
"ask": "14023.8",
"mid": "14020.3",
"spread": "7.1",
"tsp": 1793870620879,
"dtm": "2026-11-05T09:23:40Z",
"metal": "XCU",
"target": "USD",
"unit": "metric_tonne",
"cross_rate": false
}
},
"source": "otc_aggregate",
"warnings": {
"invalid_instruments": [
"XYZUSD"
]
},
"ms": 8
}