Stock Signals API
getSignal
The 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,GOOG
fieldsoptional
The fields requested.
Type
list (A comma or semi-colon delimited string.)
Example
trendspotterOpinion,adi7DayOpinion,parabolic50DaySignal
maxRecordsoptional
The maximum number of records to show in the return.
Type
int (A numeric type defining a whole number. (example: 2))
Example
10
Default
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
as requested
as requested
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
as requested
as requested
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
as requested
as requested
7-Day Average Strengthal Indicator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
adx7DayDirection
as requested
as requested
7 Day Average Directional Indicator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
maHiLo10_8DayOpinion
as requested
as requested
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
as requested
as requested
10 - 8 Day Moving Average Hilo Channel Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
maHiLo10_8DayDirection
as requested
as requested
10 - 8 Day Moving Average Hilo Channel Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma20DaySignal
as requested
as requested
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
as requested
as requested
20-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma20DayDirection
as requested
as requested
20-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_50DaySignal
as requested
as requested
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
as requested
as requested
20-50 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_50DayDirection
as requested
as requested
20-50 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_200DaySignal
as requested
as requested
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
as requested
as requested
20-200 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_200DayDirection
as requested
as requested
20-200 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bbands20DaySignal
as requested
as requested
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
as requested
as requested
20-Day Bollinger Bands Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bbands20DayDirection
as requested
as requested
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
as requested
as requested
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
as requested
as requested
40-Day Commodity Channel Index Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci40DayDirection
as requested
as requested
40-Day Commodity Channel Index Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma50DaySignal
as requested
as requested
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
as requested
as requested
50-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma50DayDirection
as requested
as requested
50-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_100DaySignal
as requested
as requested
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
as requested
as requested
20 - 100 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_100DayDirection
as requested
as requested
20 - 100 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_150DaySignal
as requested
as requested
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
as requested
as requested
50 - 150 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_150DayDirection
as requested
as requested
50 - 150 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_200DaySignal
as requested
as requested
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
as requested
as requested
50 - 200 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_200DayDirection
as requested
as requested
50 - 200 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
parabolic50DaySignal
as requested
as requested
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
as requested
as requested
50-Day Parabolic Time/Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
parabolic50DayDirection
as requested
as requested
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
as requested
as requested
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
as requested
as requested
60-Day Commodity Channel Index Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci60DayDirection
as requested
as requested
60-Day Commodity Channel Index Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma100DaySignal
as requested
as requested
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
as requested
as requested
100-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma100DayDirection
as requested
as requested
100-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma150DaySignal
as requested
as requested
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
as requested
as requested
150-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma150DayDirection
as requested
as requested
150-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma200DaySignal
as requested
as requested
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
as requested
as requested
200-Day Moving Average vs Price Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma200DayDirection
as requested
as requested
200-Day Moving Average vs Price Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_100DaySignal
as requested
as requested
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
as requested
as requested
50 - 100 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_100DayDirection
as requested
as requested
50 - 100 Day MACD Oscillator Direction
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd100_200DaySignal
as requested
as requested
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
as requested
as requested
100 - 200 Day MACD Oscillator Strength
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd100_200DayDirection
as requested
as requested
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
as requested
as requested
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
as requested
as requested
7-Day Average Directional Indicator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
maHiLo10_8DayNewSignal
as requested
as requested
10-8-Day Moving Average Hilo Channelю
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma20DayNewSignal
as requested
as requested
20-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_50DayNewSignal
as requested
as requested
20-50-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bbands20DayNewSignal
as requested
as requested
20-Day Bollinger Bands.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci40DayNewSignal
as requested
as requested
40-Day Commodity Channel Index.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma50DayNewSignal
as requested
as requested
50-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_100DayNewSignal
as requested
as requested
20-100-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
parabolic50DayNewSignal
as requested
as requested
50-Day Parabolic Time / Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
cci60DayNewSignal
as requested
as requested
60-Day Commodity Channel Index.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma100DayNewSignal
as requested
as requested
100-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_100DayNewSignal
as requested
as requested
50-100 Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd20_200DayNewSignal
as requested
as requested
20-200-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_150DayNewSignal
as requested
as requested
50-150-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd50_200DayNewSignal
as requested
as requested
50-200-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma150DayNewSignal
as requested
as requested
150-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
ma200DayNewSignal
as requested
as requested
200-Day Moving Average Versus Price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd100_200DayNewSignal
as requested
as requested
100-200-Day MACD Oscillator.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd9_18DaySignal
as requested
as requested
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
as requested
as requested
9-18 Day MACD Oscillator Strength.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd9_18DayDirection
as requested
as requested
9-18 Day MACD Oscillator Direction.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd9_18DayNewSignal
as requested
as requested
9-18 Day Mov Avg.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
macd12_26_9DayStrength
as requested
as requested
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
as requested
as requested
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
as requested
as requested
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
as requested
as requested
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": "Buy",
"trendspotterStrength": "Strong",
"trendspotterDirection": "Strengthening",
"shortTermAverageSignal": "Buy",
"shortTermAveragePercent": 100,
"parabolic50DaySignal": "Buy",
"mediumTermAverageSignal": "Buy",
"mediumTermAveragePercent": 100,
"longTermAverageSignal": "Buy",
"longTermAveragePercent": 100,
"overallAverageSignal": "Buy",
"overallAveragePercent": 100,
"overallAverageStrength": "Strong",
"overallAverageDirection": "Strongest",
"previousDaySignal": "Buy",
"previousDayPercent": 100,
"lastWeekSignal": "Buy",
"lastWeekPercent": 88,
"lastMonthSignal": "Buy",
"lastMonthPercent": 72
},
{
"symbol": "GOOG",
"name": "Alphabet Cl C",
"trendspotterOpinion": "Hold",
"trendspotterStrength": "Minimum",
"trendspotterDirection": "Bullish",
"shortTermAverageSignal": "Buy",
"shortTermAveragePercent": 100,
"parabolic50DaySignal": "Buy",
"mediumTermAverageSignal": "Buy",
"mediumTermAveragePercent": 50,
"longTermAverageSignal": "Buy",
"longTermAveragePercent": 100,
"overallAverageSignal": "Buy",
"overallAveragePercent": 80,
"overallAverageStrength": "Soft",
"overallAverageDirection": "Strengthening",
"previousDaySignal": "Buy",
"previousDayPercent": 80,
"lastWeekSignal": "Buy",
"lastWeekPercent": 64,
"lastMonthSignal": "Buy",
"lastMonthPercent": 56
}
]
}
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>Buy</trendspotterOpinion>
<trendspotterStrength>Strong</trendspotterStrength>
<trendspotterDirection>Strengthening</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>100</overallAveragePercent>
<overallAverageStrength>Strong</overallAverageStrength>
<overallAverageDirection>Strongest</overallAverageDirection>
<previousDaySignal>Buy</previousDaySignal>
<previousDayPercent>100</previousDayPercent>
<lastWeekSignal>Buy</lastWeekSignal>
<lastWeekPercent>88</lastWeekPercent>
<lastMonthSignal>Buy</lastMonthSignal>
<lastMonthPercent>72</lastMonthPercent>
</item>
<item>
<symbol>GOOG</symbol>
<name>Alphabet Cl C</name>
<trendspotterOpinion>Hold</trendspotterOpinion>
<trendspotterStrength>Minimum</trendspotterStrength>
<trendspotterDirection>Bullish</trendspotterDirection>
<shortTermAverageSignal>Buy</shortTermAverageSignal>
<shortTermAveragePercent>100</shortTermAveragePercent>
<parabolic50DaySignal>Buy</parabolic50DaySignal>
<mediumTermAverageSignal>Buy</mediumTermAverageSignal>
<mediumTermAveragePercent>50</mediumTermAveragePercent>
<longTermAverageSignal>Buy</longTermAverageSignal>
<longTermAveragePercent>100</longTermAveragePercent>
<overallAverageSignal>Buy</overallAverageSignal>
<overallAveragePercent>80</overallAveragePercent>
<overallAverageStrength>Soft</overallAverageStrength>
<overallAverageDirection>Strengthening</overallAverageDirection>
<previousDaySignal>Buy</previousDaySignal>
<previousDayPercent>80</previousDayPercent>
<lastWeekSignal>Buy</lastWeekSignal>
<lastWeekPercent>64</lastWeekPercent>
<lastMonthSignal>Buy</lastMonthSignal>
<lastMonthPercent>56</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","Buy","Strong","Strengthening","Buy","100","Buy","Buy","100","Buy","100","Buy","100","Strong","Strongest","Buy","100","Buy","88","Buy","72"
"GOOG","Alphabet Cl C","Hold","Minimum","Bullish","Buy","100","Buy","Buy","50","Buy","100","Buy","80","Soft","Strengthening","Buy","80","Buy","64","Buy","56"
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