Get Symbols
curl --request GET \
--url https://api.example.com/api/symbolsimport requests
url = "https://api.example.com/api/symbols"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/symbols', 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.example.com/api/symbols",
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.example.com/api/symbols"
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.example.com/api/symbols")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/symbols")
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{
"success": true,
"symbols": [
{
"symbol": "<string>",
"company_name": "<string>"
}
],
"data_source": "<string>"
}Symbols
Get Symbols
Retrieves a list of all distinct stock symbols that have been traded
GET
/
api
/
symbols
Get Symbols
curl --request GET \
--url https://api.example.com/api/symbolsimport requests
url = "https://api.example.com/api/symbols"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/symbols', 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.example.com/api/symbols",
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.example.com/api/symbols"
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.example.com/api/symbols")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/symbols")
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{
"success": true,
"symbols": [
{
"symbol": "<string>",
"company_name": "<string>"
}
],
"data_source": "<string>"
}Endpoint
GET /api/symbols
Authentication
Requires OAuth 2.0 authentication via session cookies.Parameters
NoneResponse
boolean
required
Indicates if the request was successful
array
required
string
required
Database source (always “postgresql”)
Example
curl -X GET https://performance.miningwood.com/api/symbols \
-H "Cookie: session=your_session_cookie"
const response = await fetch('/api/symbols');
const data = await response.json();
if (data.success) {
data.symbols.forEach(item => {
console.log(`${item.symbol}: ${item.company_name}`);
});
}
import requests
response = requests.get('https://performance.miningwood.com/api/symbols')
data = response.json()
if data['success']:
for symbol in data['symbols']:
print(f"{symbol['symbol']}: {symbol['company_name']}")
Response Example
{
"success": true,
"symbols": [
{
"symbol": "AAPL",
"company_name": "Apple Inc."
},
{
"symbol": "TSLA",
"company_name": "Tesla, Inc."
},
{
"symbol": "MSFT",
"company_name": "Microsoft Corporation"
},
{
"symbol": "NVDA",
"company_name": "NVIDIA Corporation"
}
],
"data_source": "postgresql"
}
Related Endpoints
Symbols Summary
Get comprehensive trading statistics for all symbols
Symbol Details
Get detailed information for a specific symbol
Was this page helpful?
⌘I