Quote Data API
getQuote
The getQuote API is used to request price data by symbol on stocks, indexes, mutual funds, ETFs, futures, foreign exchange, or cryptocurrencies. Price data is available in either real-time, delayed or end-of-day. Whether you want to power your charts, websites or apps this API will provide accurate price data that's easy to implement
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 <root_symbol*0> for the active contract or <root_symbol*1> for the first nearby is supported, as is <root_symbol^F> for all futures contracts for a given root symbol, as is <root_symbol^O> for all options contracts for a given underlying futures symbol.
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 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>.
as requested
A date in the format of YYYY-MM-DD.
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 numeric type defining a whole number. (example: 2)
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)
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)
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)
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 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 number with fractional parts. (example: 2.14)
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.
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)
as requested
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
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)
as requested
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
as requested
A numeric type defining a whole number. (example: 2)
as requested
A numeric type defining a whole number. (example: 2)
as requested
A numeric type defining a whole number. (example: 2)
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 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 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 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 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 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 number with fractional parts. (example: 2.14)
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 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)
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)
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)
as requested
A sequence of characters. (example: GOOG)
as requested
A sequence of characters. (example: GOOG)
GET
GET https://ondemand.websol.barchart.com/getQuote.json?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getQuote.json
Host: ondemand.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": "J",
"serverTimestamp": "2024-11-20T20:51:00-06:00",
"mode": "i",
"lastPrice": 229,
"tradeTimestamp": "2024-11-20T16:00:00-06:00",
"netChange": 0.72,
"percentChange": 0.32,
"unitCode": "2",
"open": 228.06,
"high": 229.93,
"low": 225.89,
"close": 229,
"numTrades": 358455,
"dollarVolume": 8830716862.5397,
"flag": "s",
"volume": 35169500,
"previousVolume": 36211699,
"fiftyTwoWkHigh": 237.49,
"fiftyTwoWkHighDate": "2024-10-15",
"fiftyTwoWkLow": 164.07,
"fiftyTwoWkLowDate": "2024-04-19"
},
{
"symbol": "GOOG",
"name": "Alphabet Cl C",
"dayCode": "J",
"serverTimestamp": "2024-11-20T20:51:01-06:00",
"mode": "i",
"lastPrice": 177.33,
"tradeTimestamp": "2024-11-20T16:00:00-06:00",
"netChange": -2.25,
"percentChange": -1.25,
"unitCode": "2",
"open": 178.83,
"high": 179.11,
"low": 175.33,
"close": 177.33,
"numTrades": 191121,
"dollarVolume": 3197774158.1903,
"flag": "s",
"volume": 15729800,
"previousVolume": 15392800,
"fiftyTwoWkHigh": 193.31,
"fiftyTwoWkHighDate": "2024-07-10",
"fiftyTwoWkLow": 129.4,
"fiftyTwoWkLowDate": "2023-12-04"
}
]
}
GET
GET https://ondemand.websol.barchart.com/getQuote.xml?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getQuote.xml
Host: ondemand.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>J</dayCode>
<serverTimestamp>2024-11-20T20:51:00-06:00</serverTimestamp>
<mode>i</mode>
<lastPrice>229</lastPrice>
<tradeTimestamp>2024-11-20T16:00:00-06:00</tradeTimestamp>
<netChange>0.72</netChange>
<percentChange>0.32</percentChange>
<unitCode>2</unitCode>
<open>228.06</open>
<high>229.93</high>
<low>225.89</low>
<close>229</close>
<numTrades>358455</numTrades>
<dollarVolume>8830716862.5397</dollarVolume>
<flag>s</flag>
<volume>35169500</volume>
<previousVolume>36211699</previousVolume>
<fiftyTwoWkHigh>237.49</fiftyTwoWkHigh>
<fiftyTwoWkHighDate>2024-10-15</fiftyTwoWkHighDate>
<fiftyTwoWkLow>164.07</fiftyTwoWkLow>
<fiftyTwoWkLowDate>2024-04-19</fiftyTwoWkLowDate>
</item>
<item>
<symbol>GOOG</symbol>
<name>Alphabet Cl C</name>
<dayCode>J</dayCode>
<serverTimestamp>2024-11-20T20:51:01-06:00</serverTimestamp>
<mode>i</mode>
<lastPrice>177.33</lastPrice>
<tradeTimestamp>2024-11-20T16:00:00-06:00</tradeTimestamp>
<netChange>-2.25</netChange>
<percentChange>-1.25</percentChange>
<unitCode>2</unitCode>
<open>178.83</open>
<high>179.11</high>
<low>175.33</low>
<close>177.33</close>
<numTrades>191121</numTrades>
<dollarVolume>3197774158.1903</dollarVolume>
<flag>s</flag>
<volume>15729800</volume>
<previousVolume>15392800</previousVolume>
<fiftyTwoWkHigh>193.31</fiftyTwoWkHigh>
<fiftyTwoWkHighDate>2024-07-10</fiftyTwoWkHighDate>
<fiftyTwoWkLow>129.4</fiftyTwoWkLow>
<fiftyTwoWkLowDate>2023-12-04</fiftyTwoWkLowDate>
</item>
</getQuote>
GET
GET https://ondemand.websol.barchart.com/getQuote.csv?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=fiftyTwoWkHigh%2CfiftyTwoWkHighDate%2CfiftyTwoWkLow%2CfiftyTwoWkLowDate&shareClassFigi=BBG001S5S399&figi=BBG000BLNQ16&compositeFigi=BBG000BLNNH6
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getQuote.csv
Host: ondemand.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","J","2024-11-20T20:51:00-06:00","i","229","2024-11-20T16:00:00-06:00","0.72","0.32","2","228.06","229.93","225.89","229","358455","8830716862.5397","s","35169500","36211699","237.49","2024-10-15","164.07","2024-04-19"
"GOOG","Alphabet Cl C","J","2024-11-20T20:51:01-06:00","i","177.33","2024-11-20T16:00:00-06:00","-2.25","-1.25","2","178.83","179.11","175.33","177.33","191121","3197774158.1903","s","15729800","15392800","193.31","2024-07-10","129.4","2023-12-04"
<?php
$ondemand = new SoapClient('https://ondemand.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://ondemand.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://ondemand.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://ondemand.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://ondemand.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