import requests
url = "https://api.fxdock.com/v1/signals"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = { "symbol": "ETH/USD", "interval": "4h" }
res = requests.post(url, headers=headers, json=data)
print(res.json())
const res = await fetch("https://api.fxdock.com/v1/signals", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({ symbol: "BTC/USD", interval: "1h" })
});
console.log(await res.json());
curl -X POST https://api.fxdock.com/v1/signals \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "symbol": "XAU/USD", "interval": "1h" }'
<?php
$ch = curl_init("https://api.fxdock.com/v1/signals");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => json_encode([
"symbol" => "ETH/USD",
"interval" => "4h"
])
]);
echo curl_exec($ch);