Know Sure Thing

Know Sure Thing Python 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:
get_security_price_technicals_kst()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'AAPL'
roc1 = 10
roc2 = 15
roc3 = 20
roc4 = 30
sma1 = 10
sma2 = 10
sma3 = 10
sma4 = 15
price_key = 'close'
start_date = '2018-01-01'
end_date = '2019-01-01'
page_size = 100
next_page = ''
response = intrinio.SecurityApi().get_security_price_technicals_kst(identifier, roc1=roc1, roc2=roc2, roc3=roc3, roc4=roc4, sma1=sma1, sma2=sma2, sma3
  =sma3, sma4=sma4, price_key=price_key, start_date=start_date, end_date=end_date, page_size=page_size, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
roc1intThe number of observations, per period, to calculate the rate-of-change for RCMA1[optional] [default to 10]  
roc2intThe number of observations, per period, to calculate the rate-of-change for RCMA2[optional] [default to 15]  
roc3intThe number of observations, per period, to calculate the rate-of-change for RCMA3[optional] [default to 20]  
roc4intThe number of observations, per period, to calculate the rate-of-change for RCMA4[optional] [default to 30]  
sma1intThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA1[optional] [default to 10]  
sma2intThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA2[optional] [default to 10]  
sma3intThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA3[optional] [default to 10]  
sma4intThe number of observations, per period, to calculate the Simple Moving Average of the rate-of-change for RCMA4[optional] [default to 15]  
price_keystrThe Stock Price field to use when calculating Know Sure Thing[optional] [default to close]  
start_datestrReturn technical indicator values on or after the date[optional]  
end_datestrReturn technical indicator values on or before the date[optional]  
page_sizeintThe number of results to return[optional] [default to 100]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityKnowSureThing

Properties

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

Properties

NameTypeDescription
date_timedatetimeThe date_time of the observation  
kstfloatThe Know Sure Thing calculation value  
object
TechnicalIndicator

Properties

NameTypeDescription
namestrThe name of the Technical Indicator  
symbolstrThe symbol of the Technical Indicator  
object
SecuritySummary

Properties

NameTypeDescription
idstrThe Intrinio ID for Security  
company_idstrThe Intrinio ID for the Company for which the Security is issued  
exchangestrThe exchange's MIC  
exchange_micstrThe security's exchange MIC  
stock_exchange_idstrThe exchange's Intrinio ID  
namestrThe name of the Security  
codestrA 2-3 digit code classifying the Security (reference)  
currencystrThe currency in which the Security is traded on the exchange  
tickerstrThe common/local ticker of the Security  
composite_tickerstrThe country-composite ticker of the Security  
figistrThe OpenFIGI identifier  
composite_figistrThe country-composite OpenFIGI identifier  
share_class_figistrThe global-composite OpenFIGI identifier  
primary_listingboolIf True, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange