getSignal API

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.

Pricing is based on the number of monthly queries and fields requested. We offer four packages: Small, Medium, Large, Enterprise. Contact us for additional details.


API Documentation

INPUTS:

symbols (required)
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. (list)
Example: AAPL,GOOG

fields (optional)
The fields requested. (list)
Example: trendspotterOpinion,adi7DayOpinion,parabolic50DaySignal

maxRecords (optional)
The maximum number of records to show in the return. (int)
Default: 30
Example: 10


OUTPUTS:

symbol (always returned)
A symbol or code that identifies a financial instrument. (string)
name (always returned)
The full name of the instrument. (string)
trendspotterOpinion (as requested)
The Trendspotter (composite indicator) buy, sell or hold opinion. (string)
trendspotterStrength (always returned)
The Trendspotter Strength (string)
trendspotterDirection (always returned)
The Trendspotter Direction (string)
adx7DayOpinion (as requested)
7-day Average Directional Indicator (short-term indicator) buy, sell or hold signal. (string)
adx7DayStrength (as requested)
7-Day Average Strengthal Indicator Strength (string)
adx7DayDirection (as requested)
7 Day Average Directional Indicator Direction (string)
maHiLo10_8DayOpinion (as requested)
10 - 8 Day Moving Average Hilo Channel (short-term indicator) buy, sell or hold signal. (string)
maHiLo10_8DayStrength (as requested)
10 - 8 Day Moving Average Hilo Channel Strength (string)
maHiLo10_8DayDirection (as requested)
10 - 8 Day Moving Average Hilo Channel Direction (string)
ma20DaySignal (as requested)
20-Day Moving Average vs Price Indicator (short-term indicator) buy, sell or hold signal. (string)
ma20DayStrength (as requested)
20-Day Moving Average vs Price Strength (string)
ma20DayDirection (as requested)
20-Day Moving Average vs Price Direction (string)
macd20_50DaySignal (as requested)
20-50 Day MACD Oscillator (short-term indicator) buy, sell or hold signal. (string)
macd20_50DayStrength (as requested)
20-50 Day MACD Oscillator Strength (string)
macd20_50DayDirection (as requested)
20-50 Day MACD Oscillator Direction (string)
bbands20DaySignal (as requested)
20-Day Bollinger Bands (short-term indicator) buy, sell or hold signal. (string)
bbands20DayStrength (as requested)
20-Day Bollinger Bands Strength (string)
bbands20DayDirection (as requested)
20-Day Bollinger Bands Direction (string)
shortTermAverageSignal (always returned)
Average signal based on all short-term indicators. (string)
shortTermAveragePercent (always returned)
The percentage / weight of the average signal. (int)
cci40DaySignal (as requested)
40-Day Commodity Channel Index (medium-term indicator) buy, sell or hold signal. (string)
cci40DayStrength (as requested)
40-Day Commodity Channel Index Strength (string)
cci40DayDirection (as requested)
40-Day Commodity Channel Index Direction (string)
ma50DaySignal (as requested)
50-Day Moving Average vs Price (medium-term indicator) buy, sell or hold signal. (string)
ma50DayStrength (as requested)
50-Day Moving Average vs Price Strength (string)
ma50DayDirection (as requested)
50-Day Moving Average vs Price Direction (string)
macd20_100DaySignal (as requested)
20 - 100 Day MACD Oscillator (medium-term indicator) buy, sell or hold signal. (string)
macd20_100DayStrength (as requested)
20 - 100 Day MACD Oscillator Strength (string)
macd20_100DayDirection (as requested)
20 - 100 Day MACD Oscillator Direction (string)
parabolic50DaySignal (as requested)
50-Day Parabolic Time/Price (medium-term indicator) buy, sell or hold signal. (string)
parabolic50DayStrength (as requested)
50-Day Parabolic Time/Price Strength (string)
parabolic50DayDirection (as requested)
50-Day Parabolic Time/Price Direction (string)
mediumTermAverageSignal (always returned)
Average signal based on all medium-term indicators. (string)
mediumTermAveragePercent (always returned)
The percentage / weight of the average signal. (int)
cci60DaySignal (as requested)
60-Day Commodity Channel Index (long-term indicator) buy, sell or hold signal. (string)
cci60DayStrength (as requested)
60-Day Commodity Channel Index Strength (string)
cci60DayDirection (as requested)
60-Day Commodity Channel Index Direction (string)
ma100DaySignal (as requested)
100-Day Moving Average vs Price (long-term indicator) buy, sell or hold signal. (string)
ma100DayStrength (as requested)
100-Day Moving Average vs Price Strength (string)
ma100DayDirection (as requested)
100-Day Moving Average vs Price Direction (string)
macd50_100DaySignal (as requested)
50 - 100 Day MACD Oscillator (long-term indicator) buy, sell or hold signal. (string)
macd50_100DayStrength (as requested)
50 - 100 Day MACD Oscillator Strength (string)
macd50_100DayDirection (as requested)
50 - 100 Day MACD Oscillator Direction (string)
longTermAverageSignal (always returned)
Average signal based on all long-term indicators. (string)
longTermAveragePercent (always returned)
The percentage / weight of the average signal. (int)
overallAverageSignal (always returned)
Average signal based on all indicators. (string)
overallAveragePercent (always returned)
The percentage / weight of the average signal. (int)

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.