Verify a security
curl --request POST \
--url https://api.synci.io/api/v1/finance/securities/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_symbol": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider_symbol: '<string>'})
};
fetch('https://api.synci.io/api/v1/finance/securities/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.synci.io/api/v1/finance/securities/resolve"
payload = { "provider_symbol": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.synci.io/api/v1/finance/securities/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider_symbol' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.synci.io/api/v1/finance/securities/resolve"
payload := strings.NewReader("{\n \"provider_symbol\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Security verified.",
"data": {
"id": "<string>",
"provider": "MARKETSTACK",
"provider_symbol": "<string>",
"name": "<string>",
"type": "EQUITY",
"currency": "<string>",
"exchange_mic": "<string>",
"exchange_name": "<string>",
"country_code": "<string>",
"priced": true,
"price_status": "UNVERIFIED",
"last_price_at": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Verify a security
Confirms the price source has a usable close for a provider symbol and returns the catalogue security (created
on first use), so a search result can be verified before a first purchase is recorded. When it cannot be
priced the response is a 422 with errors.provider_symbol and a machine-readable reason: NO_DATA (the
provider has nothing for it), STALE_DATA (its last close is weeks old), PROVIDER_UNAVAILABLE (an outage,
try later), BUDGET_EXHAUSTED (the monthly request budget is used up) or SYMBOL_TOO_LONG.
POST
/
finance
/
securities
/
resolve
Verify a security
curl --request POST \
--url https://api.synci.io/api/v1/finance/securities/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider_symbol": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider_symbol: '<string>'})
};
fetch('https://api.synci.io/api/v1/finance/securities/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.synci.io/api/v1/finance/securities/resolve"
payload = { "provider_symbol": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.synci.io/api/v1/finance/securities/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider_symbol' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.synci.io/api/v1/finance/securities/resolve"
payload := strings.NewReader("{\n \"provider_symbol\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Security verified.",
"data": {
"id": "<string>",
"provider": "MARKETSTACK",
"provider_symbol": "<string>",
"name": "<string>",
"type": "EQUITY",
"currency": "<string>",
"exchange_mic": "<string>",
"exchange_name": "<string>",
"country_code": "<string>",
"priced": true,
"price_status": "UNVERIFIED",
"last_price_at": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
oauth2http
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
The symbol as the securities search returned it (exchange suffix included).
Maximum string length:
32