curl -X GET "https://api.api4trading.com/CheckConnect?id={{accountId}}" \
-H "x-api-key: YOUR_API_KEY"
"Connected"
const response = await fetch('https://api.api4trading.com/CheckConnect?id={{accountId}}', {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const status = await response.text();
"Connected"
req, _ := http.NewRequest("GET", "https://api.api4trading.com/CheckConnect?id={{accountId}}", nil)
req.Header.Add("x-api-key", "YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
body, _ := io.ReadAll(res.Body)
"Connected"
import requests
response = requests.get(
"https://api.api4trading.com/CheckConnect",
params={"id": "{{accountId}}"},
headers={"x-api-key": "YOUR_API_KEY"}
)
"Connected"
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.api4trading.com/CheckConnect?id={{accountId}}"))
.header("x-api-key", "YOUR_API_KEY")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
"Connected"
var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.api4trading.com/CheckConnect?id={{accountId}}");
var content = await response.Content.ReadAsStringAsync();
"Connected"