getQuote API
getQuote
The getQuote API is used to request price data, either real-time, delayed or end-of-day, by symbol on stocks, indexes, mutual funds, ETFs, futures, foreign exchange, or cryptocurrencies.
View All APIssymbolsrequired
A symbol or code that identifies a financial instrument. Multiple symbols separated by a comma may be used. For futures, notation such as
AAPL,GOOG
fieldsoptional
The fields requested.
fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate
onlyoptional
Returns only specified fields
symbol,name
shareClassFigioptional
The unique share class code identifying an instrument globally.
BBG001S5S399
figioptional
The unique code identifying an instrument across all exchanges in a country.
BBG000BLNQ16
compositeFigioptional
BBG000BLNNH6
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
always returned
A sequence of characters. (example: GOOG)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A numeric type defining a whole number. (example: 2)
always returned
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A sequence of characters. (example: GOOG)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A date in the format of YYYY-MM-DD.
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A numeric type defining a whole number. (example: 2)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A numeric type defining a whole number. (example: 2)
always returned
A sequence of characters. (example: GOOG)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A sequence of characters. (example: GOOG)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a whole number. (example: 2)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A date in the format of YYYY-MM-DD.
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A date in the format of YYYY-MM-DD.
as requested
A numeric type defining a whole number. (example: 2)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A numeric type defining a whole number. (example: 2)
as requested
A sequence of characters. (example: GOOG)
as requested
A sequence of characters. (example: GOOG)
as requested
A date in the format of YYYY-MM-DD.
as requested
A sequence of characters. (example: GOOG)
as requested
A numeric type defining a number with fractional parts. (example: 2.14)
as requested
A date in the format of YYYY-MM-DD.
GET
GET https://marketdata.websol.barchart.com/getQuote.json?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Host: marketdata.websol.barchart.com
POST
POST https://marketdata.websol.barchart.com/getQuote.json
Host: marketdata.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Response
{
"status": {
"code": 200,
"message": "Success."
},
"results": [
{
"symbol": "AAPL",
"name": "Apple Inc",
"dayCode": "6",
"serverTimestamp": "2025-06-06T18:28:07-05:00",
"mode": "i",
"lastPrice": 203.92,
"tradeTimestamp": "2025-06-06T16:00:00-05:00",
"netChange": 3.29,
"percentChange": 1.64,
"unitCode": "2",
"open": 203,
"high": 205.7,
"low": 202.05,
"close": 203.92,
"numTrades": 555621,
"dollarVolume": 8628006023.048,
"flag": "s",
"volume": 46572902,
"previousVolume": 55221203,
"fiftyTwoWkHigh": 260.1,
"fiftyTwoWkHighDate": "2024-12-26",
"fiftyTwoWkLow": 169.21,
"fiftyTwoWkLowDate": "2025-04-08"
},
{
"symbol": "GOOG",
"name": "Alphabet Cl C",
"dayCode": "6",
"serverTimestamp": "2025-06-06T18:28:06-05:00",
"mode": "i",
"lastPrice": 174.92,
"tradeTimestamp": "2025-06-06T16:00:00-05:00",
"netChange": 5.11,
"percentChange": 3.01,
"unitCode": "2",
"open": 172.3,
"high": 175.83,
"low": 172.3,
"close": 174.92,
"numTrades": 406329,
"dollarVolume": 3576802049.615,
"flag": "s",
"volume": 22253213,
"previousVolume": 25422799,
"fiftyTwoWkHigh": 208.7,
"fiftyTwoWkHighDate": "2025-02-04",
"fiftyTwoWkLow": 142.66,
"fiftyTwoWkLowDate": "2025-04-07"
}
]
}
GET
GET https://marketdata.websol.barchart.com/getQuote.xml?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Host: marketdata.websol.barchart.com
POST
POST https://marketdata.websol.barchart.com/getQuote.xml
Host: marketdata.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Response
<?xml version="1.0" encoding="utf-8"?>
<getQuote>
<status>
<code>200</code>
<message>Success.</message>
</status>
<item>
<symbol>AAPL</symbol>
<name>Apple Inc</name>
<dayCode>6</dayCode>
<serverTimestamp>2025-06-06T18:28:07-05:00</serverTimestamp>
<mode>i</mode>
<lastPrice>203.92</lastPrice>
<tradeTimestamp>2025-06-06T16:00:00-05:00</tradeTimestamp>
<netChange>3.29</netChange>
<percentChange>1.64</percentChange>
<unitCode>2</unitCode>
<open>203</open>
<high>205.7</high>
<low>202.05</low>
<close>203.92</close>
<numTrades>555621</numTrades>
<dollarVolume>8628006023.048</dollarVolume>
<flag>s</flag>
<volume>46572902</volume>
<previousVolume>55221203</previousVolume>
<fiftyTwoWkHigh>260.1</fiftyTwoWkHigh>
<fiftyTwoWkHighDate>2024-12-26</fiftyTwoWkHighDate>
<fiftyTwoWkLow>169.21</fiftyTwoWkLow>
<fiftyTwoWkLowDate>2025-04-08</fiftyTwoWkLowDate>
</item>
<item>
<symbol>GOOG</symbol>
<name>Alphabet Cl C</name>
<dayCode>6</dayCode>
<serverTimestamp>2025-06-06T18:28:06-05:00</serverTimestamp>
<mode>i</mode>
<lastPrice>174.92</lastPrice>
<tradeTimestamp>2025-06-06T16:00:00-05:00</tradeTimestamp>
<netChange>5.11</netChange>
<percentChange>3.01</percentChange>
<unitCode>2</unitCode>
<open>172.3</open>
<high>175.83</high>
<low>172.3</low>
<close>174.92</close>
<numTrades>406329</numTrades>
<dollarVolume>3576802049.615</dollarVolume>
<flag>s</flag>
<volume>22253213</volume>
<previousVolume>25422799</previousVolume>
<fiftyTwoWkHigh>208.7</fiftyTwoWkHigh>
<fiftyTwoWkHighDate>2025-02-04</fiftyTwoWkHighDate>
<fiftyTwoWkLow>142.66</fiftyTwoWkLow>
<fiftyTwoWkLowDate>2025-04-07</fiftyTwoWkLowDate>
</item>
</getQuote>
GET
GET https://marketdata.websol.barchart.com/getQuote.csv?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Host: marketdata.websol.barchart.com
POST
POST https://marketdata.websol.barchart.com/getQuote.csv
Host: marketdata.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Response
symbol,name,dayCode,serverTimestamp,mode,lastPrice,tradeTimestamp,netChange,percentChange,unitCode,open,high,low,close,numTrades,dollarVolume,flag,volume,previousVolume,fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate
"AAPL","Apple Inc","6","2025-06-06T18:28:07-05:00","i","203.92","2025-06-06T16:00:00-05:00","3.29","1.64","2","203","205.7","202.05","203.92","555621","8628006023.048","s","46572902","55221203","260.1","2024-12-26","169.21","2025-04-08"
"GOOG","Alphabet Cl C","6","2025-06-06T18:28:06-05:00","i","174.92","2025-06-06T16:00:00-05:00","5.11","3.01","2","172.3","175.83","172.3","174.92","406329","3576802049.615","s","22253213","25422799","208.7","2025-02-04","142.66","2025-04-07"
<?php
$ondemand = new SoapClient('https://marketdata.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'symbols' => 'AAPL,GOOG',
'fields' => 'fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate',
'shareClassFigi' => 'BBG001S5S399',
'figi' => 'BBG000BLNQ16',
'compositeFigi' => 'BBG000BLNNH6',
];
$result = $ondemand->getQuote($params);
var_dump($result);
Dim ondemand
Dim result
Set ondemand = Server.CreateObject("MSSOAP.SoapClient30")
ondemand.ClientProperty("ServerHTTPRequest") = True
ondemand.MSSoapInit("https://marketdata.websol.barchart.com/service?wsdl")
Set result = ondemand.getQuote("YOUR_API_KEY", "AAPL,GOOG", "fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate", "BBG001S5S399", "BBG000BLNQ16", "BBG000BLNNH6")
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://marketdata.websol.barchart.com/service?wsdl');
my $result = $ondemand->getQuote('YOUR_API_KEY', 'AAPL,GOOG', 'fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate', 'BBG001S5S399', 'BBG000BLNQ16', 'BBG000BLNNH6');
print $result;
from suds.client import Client
ondemand = Client('https://marketdata.websol.barchart.com/service?wsdl')
result = ondemand.service.getQuote('YOUR_API_KEY', 'AAPL,GOOG', 'fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate', 'BBG001S5S399', 'BBG000BLNQ16', 'BBG000BLNNH6')
print(result)
require 'savon'
ondemand = Savon.client(wsdl: 'https://marketdata.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getQuote,
message: {
apikey: 'YOUR_API_KEY',
symbols: 'AAPL,GOOG',
fields: 'fiftyTwoWkHigh,fiftyTwoWkHighDate,fiftyTwoWkLow,fiftyTwoWkLowDate',
shareClassFigi: 'BBG001S5S399',
figi: 'BBG000BLNQ16',
compositeFigi: 'BBG000BLNNH6',
}
)
response.body