Barchart is a provider of futures, equity and foreign exchange market data. The getFinancialRatios API provides key financial ratios for equities based on symbol. Up to 8 years of financial ratios are available and fields include earnings per share, return on equity and price to earnings. All Barchart OnDemand APIs allow for queries in JSON, XML, and CSV formats. Developers can visit BarChart's site to request permission for API usage.