getSymbolChange API
getSymbolChange
The getSymbolChange API from Barchart OnDemand provides the list of symbols that have gone through a change.
View All APIsContact Us to Get Access
Inputs
startDateoptional
The start date for which the symbol change records should be returned.
Type
date (A date in the format of YYYY-MM-DD.)
Example
2024-05-21
endDateoptional
The end date for which the symbol change records should be returned.
Type
date (A date in the format of YYYY-MM-DD.)
Example
2024-11-21
Default
2024-11-21
Outputs
oldSymbol
always returned
always returned
The old name of the symbol.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
newSymbol
always returned
always returned
The new name of the symbol.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
updatedOn
always returned
always returned
The date of the update. Format: YYYY-MM-DD.
date
A date in the format of YYYY-MM-DD.
A date in the format of YYYY-MM-DD.
availableOn
as requested
as requested
The date the update was available via the system. Format: YYYY-MM-DD
date
A date in the format of YYYY-MM-DD.
A date in the format of YYYY-MM-DD.
Status Code Responses
200
OK
Success
400
Bad Request
The request was invalid, please see the message for more information.
500
Internal Server Error
Something is not working correctly, please contact support.
JSON
GET
GET https://ondemand.websol.barchart.com/getSymbolChange.json?apikey=YOUR_API_KEY&startDate=2024-05-21&endDate=2024-11-21
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getSymbolChange.json
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&startDate=2024-05-21&endDate=2024-11-21
Response
{
"status": {
"code": 200,
"message": "Success."
},
"results": [
{
"oldSymbol": "LFSWF",
"newSymbol": "LFSWD",
"updatedOn": "2024-05-21"
},
{
"oldSymbol": "IMHC",
"newSymbol": "TOGI",
"updatedOn": "2024-05-21"
},
{
"oldSymbol": "IMHCW",
"newSymbol": "TOGIW",
"updatedOn": "2024-05-21"
},
{
"oldSymbol": "GEOUF",
"newSymbol": "GEOUD",
"updatedOn": "2024-05-21"
},
{
"oldSymbol": "GARLF",
"newSymbol": "GARLD",
"updatedOn": "2024-05-21"
},
{
"oldSymbol": "CFGPV",
"newSymbol": "CFGPL",
"updatedOn": "2024-05-21"
},
{
"oldSymbol": "AIH",
"newSymbol": "PAIYY",
"updatedOn": "2024-05-21"
},
{
"oldSymbol": "FDOCD",
"newSymbol": "FDOC",
"updatedOn": "2024-05-22"
},
{
"oldSymbol": "CZOO",
"newSymbol": "CZOOF",
"updatedOn": "2024-05-22"
},
{
"oldSymbol": "ABBRF",
"newSymbol": "ABBRD",
"updatedOn": "2024-05-22"
},
{
"oldSymbol": "RMESF",
"newSymbol": "RMESD",
"updatedOn": "2024-05-23"
},
{
"oldSymbol": "USCTF",
"newSymbol": "USCTD",
"updatedOn": "2024-05-24"
},
{
"oldSymbol": "STLXF",
"newSymbol": "STLXD",
"updatedOn": "2024-05-24"
},
{
"oldSymbol": "PLTXF",
"newSymbol": "PLTXD",
"updatedOn": "2024-05-24"
},
{
"oldSymbol": "PDGND",
"newSymbol": "PDGNF",
"updatedOn": "2024-05-24"
},
{
"oldSymbol": "CRNZF",
"newSymbol": "CRNZD",
"updatedOn": "2024-05-24"
},
{
"oldSymbol": "CBDLD",
"newSymbol": "CBDL",
"updatedOn": "2024-05-24"
},
{
"oldSymbol": "BGADF",
"newSymbol": "BGADD",
"updatedOn": "2024-05-24"
},
{
"oldSymbol": "YSBPW",
"newSymbol": "LSBPW",
"updatedOn": "2024-05-28"
},
{
"oldSymbol": "YS",
"newSymbol": "LSB",
"updatedOn": "2024-05-28"
}
]
}
XML
GET
GET https://ondemand.websol.barchart.com/getSymbolChange.xml?apikey=YOUR_API_KEY&startDate=2024-05-21&endDate=2024-11-21
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getSymbolChange.xml
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&startDate=2024-05-21&endDate=2024-11-21
Response
<?xml version="1.0" encoding="utf-8"?>
<getSymbolChange>
<status>
<code>200</code>
<message>Success.</message>
</status>
<item>
<oldSymbol>LFSWF</oldSymbol>
<newSymbol>LFSWD</newSymbol>
<updatedOn>2024-05-21</updatedOn>
</item>
<item>
<oldSymbol>IMHC</oldSymbol>
<newSymbol>TOGI</newSymbol>
<updatedOn>2024-05-21</updatedOn>
</item>
<item>
<oldSymbol>IMHCW</oldSymbol>
<newSymbol>TOGIW</newSymbol>
<updatedOn>2024-05-21</updatedOn>
</item>
<item>
<oldSymbol>GEOUF</oldSymbol>
<newSymbol>GEOUD</newSymbol>
<updatedOn>2024-05-21</updatedOn>
</item>
<item>
<oldSymbol>GARLF</oldSymbol>
<newSymbol>GARLD</newSymbol>
<updatedOn>2024-05-21</updatedOn>
</item>
<item>
<oldSymbol>CFGPV</oldSymbol>
<newSymbol>CFGPL</newSymbol>
<updatedOn>2024-05-21</updatedOn>
</item>
<item>
<oldSymbol>AIH</oldSymbol>
<newSymbol>PAIYY</newSymbol>
<updatedOn>2024-05-21</updatedOn>
</item>
<item>
<oldSymbol>FDOCD</oldSymbol>
<newSymbol>FDOC</newSymbol>
<updatedOn>2024-05-22</updatedOn>
</item>
<item>
<oldSymbol>CZOO</oldSymbol>
<newSymbol>CZOOF</newSymbol>
<updatedOn>2024-05-22</updatedOn>
</item>
<item>
<oldSymbol>ABBRF</oldSymbol>
<newSymbol>ABBRD</newSymbol>
<updatedOn>2024-05-22</updatedOn>
</item>
<item>
<oldSymbol>RMESF</oldSymbol>
<newSymbol>RMESD</newSymbol>
<updatedOn>2024-05-23</updatedOn>
</item>
<item>
<oldSymbol>USCTF</oldSymbol>
<newSymbol>USCTD</newSymbol>
<updatedOn>2024-05-24</updatedOn>
</item>
<item>
<oldSymbol>STLXF</oldSymbol>
<newSymbol>STLXD</newSymbol>
<updatedOn>2024-05-24</updatedOn>
</item>
<item>
<oldSymbol>PLTXF</oldSymbol>
<newSymbol>PLTXD</newSymbol>
<updatedOn>2024-05-24</updatedOn>
</item>
<item>
<oldSymbol>PDGND</oldSymbol>
<newSymbol>PDGNF</newSymbol>
<updatedOn>2024-05-24</updatedOn>
</item>
<item>
<oldSymbol>CRNZF</oldSymbol>
<newSymbol>CRNZD</newSymbol>
<updatedOn>2024-05-24</updatedOn>
</item>
<item>
<oldSymbol>CBDLD</oldSymbol>
<newSymbol>CBDL</newSymbol>
<updatedOn>2024-05-24</updatedOn>
</item>
<item>
<oldSymbol>BGADF</oldSymbol>
<newSymbol>BGADD</newSymbol>
<updatedOn>2024-05-24</updatedOn>
</item>
<item>
<oldSymbol>YSBPW</oldSymbol>
<newSymbol>LSBPW</newSymbol>
<updatedOn>2024-05-28</updatedOn>
</item>
<item>
<oldSymbol>YS</oldSymbol>
<newSymbol>LSB</newSymbol>
<updatedOn>2024-05-28</updatedOn>
</item>
</getSymbolChange>
CSV
GET
GET https://ondemand.websol.barchart.com/getSymbolChange.csv?apikey=YOUR_API_KEY&startDate=2024-05-21&endDate=2024-11-21
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getSymbolChange.csv
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&startDate=2024-05-21&endDate=2024-11-21
Response
oldSymbol,newSymbol,updatedOn
"LFSWF","LFSWD","2024-05-21"
"IMHC","TOGI","2024-05-21"
"IMHCW","TOGIW","2024-05-21"
"GEOUF","GEOUD","2024-05-21"
"GARLF","GARLD","2024-05-21"
"CFGPV","CFGPL","2024-05-21"
"AIH","PAIYY","2024-05-21"
"FDOCD","FDOC","2024-05-22"
"CZOO","CZOOF","2024-05-22"
"ABBRF","ABBRD","2024-05-22"
"RMESF","RMESD","2024-05-23"
"USCTF","USCTD","2024-05-24"
"STLXF","STLXD","2024-05-24"
"PLTXF","PLTXD","2024-05-24"
"PDGND","PDGNF","2024-05-24"
"CRNZF","CRNZD","2024-05-24"
"CBDLD","CBDL","2024-05-24"
"BGADF","BGADD","2024-05-24"
"YSBPW","LSBPW","2024-05-28"
"YS","LSB","2024-05-28"
PHP
<?php
$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'startDate' => '2024-05-21',
'endDate' => '2024-11-21',
];
$result = $ondemand->getSymbolChange($params);
var_dump($result);
Classic ASP
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.getSymbolChange("YOUR_API_KEY", "2024-05-21", "2024-11-21")
Perl
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://ondemand.websol.barchart.com/service?wsdl');
my $result = $ondemand->getSymbolChange('YOUR_API_KEY', '2024-05-21', '2024-11-21');
print $result;
Python
from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')
result = ondemand.service.getSymbolChange('YOUR_API_KEY', '2024-05-21', '2024-11-21')
print(result)
Ruby
require 'savon'
ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getSymbolChange,
message: {
apikey: 'YOUR_API_KEY',
startDate: '2024-05-21',
endDate: '2024-11-21',
}
)
response.body