BoxLang 🚀 A New JVM Dynamic Language Learn More...
A CFML wrapper for the Financial Modeling Prep API. Get stock prices and company fundamentals via a simple, clean API.
box install cfstocky
moduleSettings.cfstocky.baseURL
in config/Coldbox.cfc
:moduleSettings = {
cfStocky : {
baseURL : "https://financialmodelingprep.com/api/v3/"
}
}
property name="stocky" inject="Stocky@cfStocky";
MSFT
or GM
) as the first argument.HyperResponse
object from hyper. You can call .getData()
, .getStatusCode()
, .isSuccess()
, .isError()
, and .json()
to return JSON de-serialized as a struct.var data = Stocky.getCompanyProfile( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/companies-key-stats-free-api/
https://financialmodelingprep.com/developer/docs/financial-statement-free-api/
var data = Stocky.getIncomeStatement( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/financial-statement-free-api/#Income-Statement
var data = Stocky.getBalanceSheet( "MSFT" ).json();
var data = Stocky.getCashFlow( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/financial-statement-free-api/#Cash-Flow-Statement
var data = Stocky.getFinancialRatios( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/financial-ratio-free-api/
var data = Stocky.getFinancialRatios( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/financial-ratio-free-api/
var data = Stocky.getEnterpriseValue( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/company-enterprise-value-api/
var data = Stocky.getKeyMetrics( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/company-key-metrics-api/
var data = Stocky.getFinancialGrowth( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/company-enterprise-value-api/
var data = Stocky.getCompanyRating( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/companies-rating-free-api/
var data = Stocky.getDiscountedCashFlow( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/companies-dcf-reports-free-api/#DCF
var data = Stocky.getHistoricalDiscountedCashFlow( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/companies-dcf-reports-free-api/#Historical-DCF
var data = Stocky.getRealtimePrice( "MSFT" ).json();
https://financialmodelingprep.com/developer/docs/realtime-stock-quote-api/#Stock-Realtime-Price
var data = Stocky.getRealtimePrice().json();
https://financialmodelingprep.com/developer/docs/realtime-stock-quote-api/#Stock-Price-list
var data = Stocky.getStockSymbols().json();
https://financialmodelingprep.com/developer/docs/stock-market-quote-free-api/
var data = Stocky.getMajorIndexPriceList().json();
var data = Stocky.getMajorIndexPriceList( ".DJI" ).json();
var data = Stocky.getActiveStocks().json();
https://financialmodelingprep.com/developer/docs/most-actives-stock-market-data-free-api/
var data = Stocky.getMostGainedStocks().json();
https://financialmodelingprep.com/developer/docs/most-gainers-stock-market-data-free-api/
var data = Stocky.getMostLostStocks().json();
https://financialmodelingprep.com/developer/docs/most-losers-stock-market-data-free-api/
Find out if the markets are open or closed today.
var data = Stocky.getNYSEMarketHours().json();
https://financialmodelingprep.com/developer/docs/is-the-market-open/
Find out if the markets are open or closed today.
var data = Stocky.getNYSEMarketHours().json();
See the change in performance for each market sector.
var data = Stocky.getSectorPerformanceList().json();
https://financialmodelingprep.com/developer/docs/is-the-market-open/
For all have sinned, and come short of the glory of God (Romans 3:23)
But God commendeth his love toward us, in that, while we were yet sinners, Christ died for us. (Romans 5:8)
That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved. (Romans 10:9)
$
box install cfstocky