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": "7",
"serverTimestamp": "2025-07-07T19:46:00-05:00",
"mode": "i",
"lastPrice": 209.95,
"tradeTimestamp": "2025-07-07T16:00:00-05:00",
"netChange": -3.6,
"percentChange": -1.69,
"unitCode": "2",
"open": 212.68,
"high": 216.23,
"low": 208.8,
"close": 209.95,
"numTrades": 670324,
"dollarVolume": 8628006023.048,
"flag": "s",
"volume": 50228900,
"previousVolume": 34954801,
"fiftyTwoWkHigh": 260.1,
"fiftyTwoWkHighDate": "2024-12-26",
"fiftyTwoWkLow": 169.21,
"fiftyTwoWkLowDate": "2025-04-08"
},
{
"symbol": "GOOG",
"name": "Alphabet Cl C",
"dayCode": "7",
"serverTimestamp": "2025-07-07T19:46:01-05:00",
"mode": "i",
"lastPrice": 177.56,
"tradeTimestamp": "2025-07-07T16:00:00-05:00",
"netChange": -2.99,
"percentChange": -1.66,
"unitCode": "2",
"open": 180.14,
"high": 180.34,
"low": 176.64,
"close": 177.56,
"numTrades": 322765,
"dollarVolume": 3576802049.615,
"flag": "s",
"volume": 20991300,
"previousVolume": 13287300,
"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>7</dayCode>
<serverTimestamp>2025-07-07T19:46:00-05:00</serverTimestamp>
<mode>i</mode>
<lastPrice>209.95</lastPrice>
<tradeTimestamp>2025-07-07T16:00:00-05:00</tradeTimestamp>
<netChange>-3.6</netChange>
<percentChange>-1.69</percentChange>
<unitCode>2</unitCode>
<open>212.68</open>
<high>216.23</high>
<low>208.8</low>
<close>209.95</close>
<numTrades>670324</numTrades>
<dollarVolume>8628006023.048</dollarVolume>
<flag>s</flag>
<volume>50228900</volume>
<previousVolume>34954801</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>7</dayCode>
<serverTimestamp>2025-07-07T19:46:01-05:00</serverTimestamp>
<mode>i</mode>
<lastPrice>177.56</lastPrice>
<tradeTimestamp>2025-07-07T16:00:00-05:00</tradeTimestamp>
<netChange>-2.99</netChange>
<percentChange>-1.66</percentChange>
<unitCode>2</unitCode>
<open>180.14</open>
<high>180.34</high>
<low>176.64</low>
<close>177.56</close>
<numTrades>322765</numTrades>
<dollarVolume>3576802049.615</dollarVolume>
<flag>s</flag>
<volume>20991300</volume>
<previousVolume>13287300</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","7","2025-07-07T19:46:00-05:00","i","209.95","2025-07-07T16:00:00-05:00","-3.6","-1.69","2","212.68","216.23","208.8","209.95","670324","8628006023.048","s","50228900","34954801","260.1","2024-12-26","169.21","2025-04-08"
"GOOG","Alphabet Cl C","7","2025-07-07T19:46:01-05:00","i","177.56","2025-07-07T16:00:00-05:00","-2.99","-1.66","2","180.14","180.34","176.64","177.56","322765","3576802049.615","s","20991300","13287300","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