Stock Signals API
getSignalThe getSignal API provides the Barchart Technical Opinion / Signal (buy, sell or hold) based on a variety of short, medium and long-term technical indicators based on a symbol.
View All APIsContact Us to Get Access
Inputs
symbolsrequired
A symbol or code that identifies a financial instrument. Multiple symbols separated by a comma may be used. For futures, notation such as
Type
list (A comma or semi-colon delimited string.)
Example
AAPL,GOOGfieldsoptional
The fields requested.
Type
list (A comma or semi-colon delimited string.)
Example
trendspotterOpinion,adi7DayOpinion,parabolic50DaySignalmaxRecordsoptional
The maximum number of records to show in the return.
Type
int (A numeric type defining a whole number. (example: 2))
Example
10Default
30
Outputs
symbol
always returned
always returned
A symbol or code that identifies a financial instrument.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
name
always returned
always returned
The full name of the instrument.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
trendspotterOpinion
The Trend Seeker® (composite indicator) buy, sell or hold opinion.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
trendspotterStrength
always returned
always returned
The Trend Seeker® Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
trendspotterDirection
always returned
always returned
The Trend Seeker® Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
adx7DayOpinion
7-day Average Directional Indicator (short-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
adx7DayStrength
7-Day Average Strengthal Indicator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
adx7DayDirection
7 Day Average Directional Indicator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
maHiLo10_8DayOpinion
10 - 8 Day Moving Average Hilo Channel (short-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
maHiLo10_8DayStrength
10 - 8 Day Moving Average Hilo Channel Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
maHiLo10_8DayDirection
10 - 8 Day Moving Average Hilo Channel Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma20DaySignal
20-Day Moving Average vs Price Indicator (short-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma20DayStrength
20-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma20DayDirection
20-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_50DaySignal
20-50 Day MACD Oscillator (short-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_50DayStrength
20-50 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_50DayDirection
20-50 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_200DaySignal
20-200 Day MACD Oscillator (short-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_200DayStrength
20-200 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_200DayDirection
20-200 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bbands20DaySignal
20-Day Bollinger Bands (short-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bbands20DayStrength
20-Day Bollinger Bands Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bbands20DayDirection
20-Day Bollinger Bands Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
shortTermAverageSignal
always returned
always returned
Average signal based on all short-term indicators.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
shortTermAveragePercent
always returned
always returned
The percentage / weight of the average signal.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
cci40DaySignal
40-Day Commodity Channel Index (medium-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci40DayStrength
40-Day Commodity Channel Index Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci40DayDirection
40-Day Commodity Channel Index Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma50DaySignal
50-Day Moving Average vs Price (medium-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma50DayStrength
50-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma50DayDirection
50-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_100DaySignal
20 - 100 Day MACD Oscillator (medium-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_100DayStrength
20 - 100 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_100DayDirection
20 - 100 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_150DaySignal
50 - 150 Day MACD Oscillator (medium-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_150DayStrength
50 - 150 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_150DayDirection
50 - 150 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_200DaySignal
50 - 200 Day MACD Oscillator (medium-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_200DayStrength
50 - 200 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_200DayDirection
50 - 200 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
parabolic50DaySignal
50-Day Parabolic Time/Price (medium-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
parabolic50DayStrength
50-Day Parabolic Time/Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
parabolic50DayDirection
50-Day Parabolic Time/Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
mediumTermAverageSignal
always returned
always returned
Average signal based on all medium-term indicators.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
mediumTermAveragePercent
always returned
always returned
The percentage / weight of the average signal.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
cci60DaySignal
60-Day Commodity Channel Index (long-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci60DayStrength
60-Day Commodity Channel Index Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci60DayDirection
60-Day Commodity Channel Index Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma100DaySignal
100-Day Moving Average vs Price (long-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma100DayStrength
100-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma100DayDirection
100-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma150DaySignal
150-Day Moving Average vs Price (long-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma150DayStrength
150-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma150DayDirection
150-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma200DaySignal
200-Day Moving Average vs Price (long-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma200DayStrength
200-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma200DayDirection
200-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_100DaySignal
50 - 100 Day MACD Oscillator (long-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_100DayStrength
50 - 100 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_100DayDirection
50 - 100 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd100_200DaySignal
100 - 200 Day MACD Oscillator (long-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd100_200DayStrength
100 - 200 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd100_200DayDirection
100 - 200 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
longTermAverageSignal
always returned
always returned
Average signal based on all long-term indicators.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
longTermAveragePercent
always returned
always returned
The percentage / weight of the average signal.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
overallAverageSignal
always returned
always returned
Average signal based on all indicators.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
overallAveragePercent
always returned
always returned
The percentage / weight of the average signal.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
overallAverageStrength
always returned
always returned
Average strength based on all indicators.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
overallAverageDirection
always returned
always returned
Average direction based on all indicators.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
previousDaySignal
always returned
always returned
Signal based on previous business day's performance.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
previousDayPercent
always returned
always returned
The percentage / weight of previous business day's signal.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
lastWeekSignal
always returned
always returned
Average signal based on last week's performance.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
lastWeekPercent
always returned
always returned
The percentage / weight of last week's signal.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
lastMonthSignal
always returned
always returned
Average signal based on last month's performance.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
lastMonthPercent
always returned
always returned
The percentage / weight of last month's signal.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
trendspotterNewSignal
Indicates that the symbol made a NEW Trend Seeker® signal today.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
adx7DayNewSignal
7-Day Average Directional Indicator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
maHiLo10_8DayNewSignal
10-8-Day Moving Average Hilo Channelю
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma20DayNewSignal
20-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_50DayNewSignal
20-50-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bbands20DayNewSignal
20-Day Bollinger Bands.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci40DayNewSignal
40-Day Commodity Channel Index.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma50DayNewSignal
50-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_100DayNewSignal
20-100-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
parabolic50DayNewSignal
50-Day Parabolic Time / Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci60DayNewSignal
60-Day Commodity Channel Index.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma100DayNewSignal
100-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_100DayNewSignal
50-100 Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_200DayNewSignal
20-200-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_150DayNewSignal
50-150-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_200DayNewSignal
50-200-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma150DayNewSignal
150-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma200DayNewSignal
200-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd100_200DayNewSignal
100-200-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd9_18DaySignal
9-18 Day MACD Oscillator (short-term indicator) buy, sell or hold signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd9_18DayStrength
9-18 Day MACD Oscillator Strength.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd9_18DayDirection
9-18 Day MACD Oscillator Direction.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd9_18DayNewSignal
9-18 Day Mov Avg.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd12_26_9DayStrength
The strength of the signal compared to its historical performance where Maximum is the strongest this signal has been and Minimum is the weakest.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd12_26_9DayDirection
Indicates whether the Buy or Sell signal is strengthening or weakening or whether a Hold signal is heading towards a buy or sell signal.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd12_26_9DaySignal
The signal from the 12-26-9 Day eMACD, which uses a Exponential Moving Averages in its calculation.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd12_26_9DayNewSignal
Indicates that the symbol made a NEW 12-26-9 Day eMACD signal today.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
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/getSignal.json?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=trendspotterOpinion%2Cadi7DayOpinion%2Cparabolic50DaySignal&maxRecords=10
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getSignal.json
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=trendspotterOpinion%2Cadi7DayOpinion%2Cparabolic50DaySignal&maxRecords=10
Response
{
"status": {
"code": 200,
"message": "Success."
},
"results": [
{
"symbol": "AAPL",
"name": "Apple Inc",
"trendspotterOpinion": "Hold",
"trendspotterStrength": "Minimum",
"trendspotterDirection": "Bearish",
"shortTermAverageSignal": "Buy",
"shortTermAveragePercent": 50,
"parabolic50DaySignal": "Buy",
"mediumTermAverageSignal": "Buy",
"mediumTermAveragePercent": 50,
"longTermAverageSignal": "Buy",
"longTermAveragePercent": 100,
"overallAverageSignal": "Buy",
"overallAveragePercent": 64,
"overallAverageStrength": "Strong",
"overallAverageDirection": "Weakest",
"previousDaySignal": "Buy",
"previousDayPercent": 80,
"lastWeekSignal": "Buy",
"lastWeekPercent": 80,
"lastMonthSignal": "Buy",
"lastMonthPercent": 100
},
{
"symbol": "GOOG",
"name": "Alphabet Cl C",
"trendspotterOpinion": "Hold",
"trendspotterStrength": "Minimum",
"trendspotterDirection": "Bearish",
"shortTermAverageSignal": "Buy",
"shortTermAveragePercent": 100,
"parabolic50DaySignal": "Buy",
"mediumTermAverageSignal": "Buy",
"mediumTermAveragePercent": 100,
"longTermAverageSignal": "Buy",
"longTermAveragePercent": 100,
"overallAverageSignal": "Buy",
"overallAveragePercent": 96,
"overallAverageStrength": "Maximum",
"overallAverageDirection": "Average",
"previousDaySignal": "Buy",
"previousDayPercent": 96,
"lastWeekSignal": "Buy",
"lastWeekPercent": 96,
"lastMonthSignal": "Buy",
"lastMonthPercent": 100
}
]
}
XML
GET
GET https://ondemand.websol.barchart.com/getSignal.xml?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=trendspotterOpinion%2Cadi7DayOpinion%2Cparabolic50DaySignal&maxRecords=10
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getSignal.xml
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=trendspotterOpinion%2Cadi7DayOpinion%2Cparabolic50DaySignal&maxRecords=10
Response
<?xml version="1.0" encoding="utf-8"?>
<getSignal>
<status>
<code>200</code>
<message>Success.</message>
</status>
<item>
<symbol>AAPL</symbol>
<name>Apple Inc</name>
<trendspotterOpinion>Hold</trendspotterOpinion>
<trendspotterStrength>Minimum</trendspotterStrength>
<trendspotterDirection>Bearish</trendspotterDirection>
<shortTermAverageSignal>Buy</shortTermAverageSignal>
<shortTermAveragePercent>50</shortTermAveragePercent>
<parabolic50DaySignal>Buy</parabolic50DaySignal>
<mediumTermAverageSignal>Buy</mediumTermAverageSignal>
<mediumTermAveragePercent>50</mediumTermAveragePercent>
<longTermAverageSignal>Buy</longTermAverageSignal>
<longTermAveragePercent>100</longTermAveragePercent>
<overallAverageSignal>Buy</overallAverageSignal>
<overallAveragePercent>64</overallAveragePercent>
<overallAverageStrength>Strong</overallAverageStrength>
<overallAverageDirection>Weakest</overallAverageDirection>
<previousDaySignal>Buy</previousDaySignal>
<previousDayPercent>80</previousDayPercent>
<lastWeekSignal>Buy</lastWeekSignal>
<lastWeekPercent>80</lastWeekPercent>
<lastMonthSignal>Buy</lastMonthSignal>
<lastMonthPercent>100</lastMonthPercent>
</item>
<item>
<symbol>GOOG</symbol>
<name>Alphabet Cl C</name>
<trendspotterOpinion>Hold</trendspotterOpinion>
<trendspotterStrength>Minimum</trendspotterStrength>
<trendspotterDirection>Bearish</trendspotterDirection>
<shortTermAverageSignal>Buy</shortTermAverageSignal>
<shortTermAveragePercent>100</shortTermAveragePercent>
<parabolic50DaySignal>Buy</parabolic50DaySignal>
<mediumTermAverageSignal>Buy</mediumTermAverageSignal>
<mediumTermAveragePercent>100</mediumTermAveragePercent>
<longTermAverageSignal>Buy</longTermAverageSignal>
<longTermAveragePercent>100</longTermAveragePercent>
<overallAverageSignal>Buy</overallAverageSignal>
<overallAveragePercent>96</overallAveragePercent>
<overallAverageStrength>Maximum</overallAverageStrength>
<overallAverageDirection>Average</overallAverageDirection>
<previousDaySignal>Buy</previousDaySignal>
<previousDayPercent>96</previousDayPercent>
<lastWeekSignal>Buy</lastWeekSignal>
<lastWeekPercent>96</lastWeekPercent>
<lastMonthSignal>Buy</lastMonthSignal>
<lastMonthPercent>100</lastMonthPercent>
</item>
</getSignal>
CSV
GET
GET https://ondemand.websol.barchart.com/getSignal.csv?apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=trendspotterOpinion%2Cadi7DayOpinion%2Cparabolic50DaySignal&maxRecords=10
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getSignal.csv
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=AAPL%2CGOOG&fields=trendspotterOpinion%2Cadi7DayOpinion%2Cparabolic50DaySignal&maxRecords=10
Response
symbol,name,trendspotterOpinion,trendspotterStrength,trendspotterDirection,shortTermAverageSignal,shortTermAveragePercent,parabolic50DaySignal,mediumTermAverageSignal,mediumTermAveragePercent,longTermAverageSignal,longTermAveragePercent,overallAverageSignal,overallAveragePercent,overallAverageStrength,overallAverageDirection,previousDaySignal,previousDayPercent,lastWeekSignal,lastWeekPercent,lastMonthSignal,lastMonthPercent
"AAPL","Apple Inc","Hold","Minimum","Bearish","Buy","50","Buy","Buy","50","Buy","100","Buy","64","Strong","Weakest","Buy","80","Buy","80","Buy","100"
"GOOG","Alphabet Cl C","Hold","Minimum","Bearish","Buy","100","Buy","Buy","100","Buy","100","Buy","96","Maximum","Average","Buy","96","Buy","96","Buy","100"
PHP
<?php
$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'symbols' => 'AAPL,GOOG',
'fields' => 'trendspotterOpinion,adi7DayOpinion,parabolic50DaySignal',
'maxRecords' => '10',
];
$result = $ondemand->getSignal($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.getSignal("YOUR_API_KEY", "AAPL,GOOG", "trendspotterOpinion,adi7DayOpinion,parabolic50DaySignal", "10")
Perl
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://ondemand.websol.barchart.com/service?wsdl');
my $result = $ondemand->getSignal('YOUR_API_KEY', 'AAPL,GOOG', 'trendspotterOpinion,adi7DayOpinion,parabolic50DaySignal', '10');
print $result;
Python
from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')
result = ondemand.service.getSignal('YOUR_API_KEY', 'AAPL,GOOG', 'trendspotterOpinion,adi7DayOpinion,parabolic50DaySignal', '10')
print(result)
Ruby
require 'savon'
ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getSignal,
message: {
apikey: 'YOUR_API_KEY',
symbols: 'AAPL,GOOG',
fields: 'trendspotterOpinion,adi7DayOpinion,parabolic50DaySignal',
maxRecords: '10',
}
)
response.body