Know Sure Thing

Know Sure Thing Java API Documentation

The Know Sure Thing indicator (KST) is a momentum based oscillator that is calculated by measuring the momentum of four separate price cycles. KST fluctuates above and below a zero line and is used to identify overbought and oversold conditions, and is often used with additional indicators to boost signal strength.

API Class:
SecurityApi
Instance Method:
getSecurityPriceTechnicalsKst()

Stock Price Code Example

Use my API Key
import com.intrinio.api.*;
import com.intrinio.models.*;
import com.intrinio.invoker.*;
import com.intrinio.invoker.auth.*;
import org.threeten.bp.*;
import java.math.BigDecimal;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth auth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
auth.setApiKey("YOUR_API_KEY");
defaultClient.setAllowRetries(true);
SecurityApi securityApi = new SecurityApi();
String identifier = "AAPL";
Integer roc1 = 10;
Integer roc2 = 15;
Integer roc3 = 20;
Integer roc4 = 30;
Integer sma1 = 10;
Integer sma2 = 10;
Integer sma3 = 10;
Integer sma4 = 15;
String priceKey = "close";
String startDate = "2018-01-01";
String endDate = "2019-01-01";
Integer pageSize = 100;
String nextPage = null;
ApiResponseSecurityKnowSureThing result = securityApi.getSecurityPriceTechnicalsKst(identifier, roc1, roc2, roc3, roc4, sma1, sma2, sma3, sma4,
      priceKey, startDate, endDate, pageSize, nextPage);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
roc1IntegerThe number of observations, per period, to calculate the rate-of-change for RCMA1[optional] [default to 10]  
roc2IntegerThe number of observations, per period, to calculate the rate-of-change for RCMA2[optional] [default to 15]  
roc3IntegerThe number of observations, per period, to calculate the rate-of-change for RCMA3[optional] [default to 20]  
roc4IntegerThe number of observations, per period, to calculate the rate-of-change for RCMA4[optional] [default to 30]  
sma1IntegerThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1[optional] [default to 10]  
sma2IntegerThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2[optional] [default to 10]  
sma3IntegerThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3[optional] [default to 10]  
sma4IntegerThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4[optional] [default to 15]  
priceKeyStringThe Stock Price field to use when calculating Know Sure Thing[optional] [default to close] [enum: open, high, low, close, volume]  
startDateStringReturn technical indicator values on or after the date[optional]  
endDateStringReturn technical indicator values on or before the date[optional]  
pageSizeIntegerThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityKnowSureThing

Properties

NameTypeDescription
technicalsList 
indicatorTechnicalIndicatorThe name and symbol of the technical indicator  
securitySecuritySummaryThe Security of the Stock Price  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
KnowSureThingTechnicalValue

Properties

NameTypeDescription
dateTimeOffsetDateTimeThe date_time of the observation  
kstFloatThe Know Sure Thing calculation value  
object
TechnicalIndicator

Properties

NameTypeDescription
nameStringThe name of the Technical Indicator  
symbolStringThe symbol of the Technical Indicator  
object
SecuritySummary

Properties

NameTypeDescription
idStringThe Intrinio ID for Security  
companyIdStringThe Intrinio ID for the Company for which the Security is issued  
exchangeStringThe exchange's MIC  
exchangeMicStringThe security's exchange MIC  
stockExchangeIdStringThe exchange's Intrinio ID  
nameStringThe name of the Security  
codeStringA 2-3 digit code classifying the Security (reference)  
currencyStringThe currency in which the Security is traded on the exchange  
tickerStringThe common/local ticker of the Security  
compositeTickerStringThe country-composite ticker of the Security  
figiStringThe OpenFIGI identifier  
compositeFigiStringThe country-composite OpenFIGI identifier  
shareClassFigiStringThe global-composite OpenFIGI identifier  
primaryListingBooleanIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange