The getPriceChart API delivers customizable static charts for visualizing price and volume data of one or multiple securities, including equities, ETFs, mutual funds, and indexes. Supporting both intraday and historical data, it generates high-quality charts in SVG or PNG format, tailored to your specifications for dimensions, colors, and styling.
This API is ideal for a variety of applications, including financial dashboards to display real-time market trends, investor research tools for analyzing historical price movements, trading strategy visualization for backtesting and monitoring, content syndication to enhance financial articles with embedded charts, and portfolio comparison tools for benchmarking multiple securities. Additionally, it supports AI-driven use cases such as anomaly detection, where visualizations highlight unusual market patterns identified by machine learning algorithms.
Key Features
π Customizable Chart Visuals - Create tailored price and volume charts with flexible styling options.
Users can define chart dimensions, colors, and transparency for elements like price regions, volume bars, and grid lines, ensuring seamless integration into any platformβs design. This feature enables developers to craft visually consistent charts that align with branding requirements for dashboards or investor tools.
π Support for Multiple Securities - Visualize data for multiple tickers in a single chart.
By specifying a comma-delimited list of stock symbols, users can generate comparative charts that display price and volume trends across multiple securities. This is perfect for portfolio analysis tools or market comparison widgets, allowing investors to track relative performance efficiently.
β³ Flexible Time Intervals - Choose between intraday or historical data displays.
The interval parameter lets users select a single day for intraday charts or multiple days for historical views, providing flexibility for short-term trading visuals or long-term trend analysis. This adaptability supports diverse use cases, from real-time monitoring to historical performance reviews.
π¨ Advanced Styling Options - Fine-tune chart aesthetics with shadows, gradients, and more.
Developers can customize shadow effects, fill translucency, and gradient colors to enhance chart readability and visual appeal. These options allow for professional-grade charts that stand out in financial applications, captivating users with polished and interactive visuals.
Query Parameters
The API accepts the following parameters to customize your chart:
| Parameter | Meaning | Data Type |
|---|---|---|
| T | Application Key which authenticates you with CloudQuote (required) | Base64 string |
| width | Total image (canvas) width in px | String |
| height | Total image (canvas) height in px | String |
| interval | Number of chart days to show (1 = Intraday, > 1 = historical) | String |
| symbol | Comma-delimited list of stock symbols | String |
| shwidth | Chart and footer box bg shadow/extrusion thickness in px | String |
| fillalpha | Filled area chart translucency in percent | String |
| fillshx | Area chart fill shadow x offset in px (positive = east) | String |
| fillshy | Area chart fill shadow y offset in px (positive = south) | String |
| fillsha | Area chart fill shadow alpha | String |
| ibcolor | Canvas background color | String |
| bgcolor | Price region background color | String |
| bvcolor | Volume region background color | String |
| arcolor | Filled area chart color, ignored if a gradient is used | String |
| lncolor | Comma-delimited list of value line colors, corresponding to tickers | String |
| vocolor | Volume bar color if volume=1 | String |
| brcolor | Price & volume graph border & tick color | String |
| shcolor | Price & volume graph shadow/extrude color | String |
| grcolor | Price & volume graph grid line color (major) | String |
| gmcolor | Price & volume graph grid line color (minor) | String |
| mkcolor | Intraday chart previous close line color | String |
| txcolor | Text color for axis labels, attribution, etc., and tickers if legend is outside chart | String |
| itcolor | Ticker symbol legend text color if legend is inside chart | String |
| gtcolor | Filled area chart gradient color (top/left) | String |
| gbcolor | Filled area chart gradient color (bottom/right) | String |
Response
The response is a static chart image, delivered in either SVG or PNG format as specified by the user, containing price and volume data for the requested securities.
Use Cases
π Financial Dashboards - Embed dynamic stock charts into user-facing platforms.
Developers can integrate customizable charts into dashboards to display price and volume trends, enhancing user engagement with visually appealing, real-time market insights. This is ideal for fintech apps or investment portals aiming to provide interactive data visualizations.
π Investor Research Tools - Visualize historical trends for market analysis.
By leveraging the interval parameter for historical data, researchers can create charts to highlight long-term price movements or volatility patterns. This supports tools that help investors identify trends or compare securities over time.
π€ Trading Strategy Visualization - Illustrate price movements for algorithmic trading insights.
Traders can use the API to generate intraday or historical charts for backtesting or monitoring strategies, with customizable colors and grid lines to highlight key price levels or trading signals. This aids in refining algorithms with clear visual feedback.
π Content Syndication - Enhance financial articles with embedded charts.
Online publishers can use the API to generate visually consistent charts for articles or blogs, providing readers with clear illustrations of market performance. The ability to customize colors and styles ensures alignment with publication branding.
π Portfolio Comparison Tools - Display multiple securities in a single chart for benchmarking.
By including multiple symbols in a single request, developers can create comparative charts that show relative performance across assets, aiding portfolio managers in evaluating diversification or tracking against benchmarks.
Why Choose FinancialContent's getPriceChart API?
π Unmatched Reliability - Consistent chart delivery under any load.
Built on a robust infrastructure with 99.99% uptime, the API ensures reliable chart generation even during peak market activity. Developers can trust it for critical applications like live financial dashboards or trading platforms.
π¨ Flexible Customization - Tailor every aspect of your charts to fit your brand.
With extensive parameters for colors, shadows, and gradients, the API allows developers to create charts that seamlessly match the aesthetic of their platform, enhancing user experience and visual consistency across applications.
π Scalable Performance - Handle multiple securities and complex requests effortlessly.
The API is optimized to generate charts for multiple tickers and varying time intervals, scaling efficiently to support high-volume requests from enterprise-grade platforms or high-traffic financial websites.
π Developer-Friendly Support - Comprehensive resources for quick integration.
FinancialContent provides detailed documentation, sample requests, and responsive support to streamline development. From initial setup to advanced customization, our team helps you create stunning charts with ease.
Optimized for High-Speed Access
The getPriceChart API is designed for peak performance, adhering to industry best practices for rapid and reliable chart delivery. Our RESTful endpoints use optimized image generation to produce compact SVG or PNG outputs, minimizing bandwidth usage and ensuring fast load times. Caching mechanisms accelerate repeated chart requests, while globally distributed servers reduce latency for users worldwide. Rate limiting and efficient query processing maintain stability under heavy traffic, and asynchronous handling supports complex, multi-symbol chart generation without delays. This performance-driven design ensures developers can deliver responsive, visually rich applications with minimal latency.
Sample Request
GET /api/getPriceChart?T=your_base64_key&symbol=GOOG,AAPL&width=800&height=400&interval=30& bgcolor=%23FFFFFF&lncolor=%2300FF00,%23FF0000&txcolor=%23000000
Sample Response
The response is a static chart image (SVG or PNG) displaying price and volume data for the requested securities, styled according to the provided parameters.
FinancialContent is one of the largest providers of stock market data, business news and content syndication tools for online publishers