{"id":3302,"date":"2023-11-16T09:04:39","date_gmt":"2023-11-16T09:04:39","guid":{"rendered":"https:\/\/eodhd.com\/financial-academy\/?p=3302"},"modified":"2025-02-05T13:41:39","modified_gmt":"2025-02-05T13:41:39","slug":"how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python","title":{"rendered":"How to Use SMA, WMA and EMA on Technical Indicators API with Python"},"content":{"rendered":"\n<p>In finance, a <a href=\"https:\/\/www.investopedia.com\/terms\/m\/movingaverage.asp\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Moving Average (MA)<\/strong><\/a> is a stock indicator commonly used in technical analysis:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/www.investopedia.com\/terms\/s\/sma.asp\" target=\"_blank\" rel=\"noreferrer noopener\">Simple Moving Average (SMA)<\/a><\/strong><\/li>\n\n\n\n<li><a href=\"https:\/\/www.investopedia.com\/articles\/technical\/060401.asp\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Weighted Moving Average<\/strong> (<strong>WMA<\/strong>)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.investopedia.com\/terms\/e\/ema.asp\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Exponential Moving Average<\/strong> (<strong>EMA<\/strong>)<\/a><\/li>\n<\/ul>\n\n\n\n<p>Moving averages are used in calculations to analyze data points by creating a series of&nbsp;averages&nbsp;of different selections of the full data set.&nbsp;<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n\n\n\n\n\n\n<p><strong><strong>Please note<\/strong><\/strong>: <strong>before continuing to work with our APIs, make sure that you <a href=\"https:\/\/eodhd.com\/financial-academy\/financial-faq\/how-to-start-using-eodhd-pythons-financial-library-beginners-guide\/\">import and install all required libraries<\/a>. A more detailed information about the functions of&nbsp;<a href=\"https:\/\/www.investopedia.com\/ask\/answers\/071414\/whats-difference-between-moving-average-and-weighted-moving-average.asp\" target=\"_blank\" rel=\"noreferrer noopener\">SMA, WMA and EMA<\/a> of the Technical Indicators&nbsp;API can be found on our <\/strong><a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\/\"><u>documentation web-page<\/u><\/a><strong>.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-accessing-the-eodhd-api\">Accessing the EODHD API<\/h2>\n\n\n\n<p>To access the API, we need to create an instance of the \u201cAPIClient\u201d class and pass to it our API key. In this example, we will use the demo API key provided by EODHD, but in your real application, you should use your registered API key.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code lang=\"python\" class=\"language-python\">api = APIClient(\"demo\")<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>You can also specify the API key in a configuration file as it described in the library documentation <a href=\"https:\/\/github.com\/EodHistoricalData\/EODHD-APIs-Python-Financial-Library\/\"><u>here<\/u><\/a>.<\/p>\n\n\n\n<p class=\"bordered_paragraph\">1. Use the \u201c<strong>DEMO<\/strong>\u201d API key to test our data from a limited set of the tickers without registering:<br><a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/AAPL.US\" target=\"_blank\" rel=\"noreferrer noopener\">AAPL.US<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/TSLA.US\" target=\"_blank\" rel=\"noreferrer noopener\">TSLA.US&nbsp;<\/a>|&nbsp;<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/VTI.US\" target=\"_blank\" rel=\"noreferrer noopener\">VTI.US<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/AMZN.US\" target=\"_blank\" rel=\"noreferrer noopener\">AMZN.US<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/BTC-USD.CC\" target=\"_blank\" rel=\"noreferrer noopener\">BTC-USD<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/EURUSD.FOREX\" target=\"_blank\" rel=\"noreferrer noopener\">EUR-USD<\/a><br><a href=\"https:\/\/eodhistoricaldata.com\/financial-apis\/new-real-time-data-api-websockets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Real-Time Data<\/a>&nbsp;and All of the APIs (except Bulk) are included without limitations on API calls.<br>2. Register to get your free API key (limitated by 20 API calls per day) with access to:<br><a href=\"https:\/\/eodhistoricaldata.com\/financial-apis\/api-for-historical-data-and-volumes\/\" target=\"_blank\" rel=\"noreferrer noopener\">End-Of-Day Historical Data<\/a>&nbsp;with only past year for any ticker and&nbsp;<a href=\"https:\/\/eodhistoricaldata.com\/financial-apis\/exchanges-api-list-of-tickers-and-trading-hours\/#Get_List_of_Tickers_Exchange_Symbols\" target=\"_blank\" rel=\"noreferrer noopener\">List of tickers per Exchange<\/a>.<br>3. To unlock your API key we recommend to <a href=\"https:\/\/eodhd.com\/pricing\">choose subscription<\/a> which covers your needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-exploring-the-wma\">Exploring the WMA<\/h2>\n\n\n\n<p>Firstly, let`s try to request <a href=\"https:\/\/www.investopedia.com\/ask\/answers\/071414\/whats-difference-between-moving-average-and-weighted-moving-average.asp\" target=\"_blank\" rel=\"noreferrer noopener\">WMA<\/a> data from the <a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\/\">Technical Indicators API<\/a>.<\/p>\n\n\n\n<p><strong>WMA<\/strong> is an average that has multiplying factors to give different weights to data at different positions in the sample window.&nbsp;<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-b7402b484f0655c6497d6b6fdb6678c1\"><code lang=\"python\" class=\"language-python\">weighted_ma = api.get_technical_indicator_data(ticker = \"AAPL.US\", function = \"wma\")<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>The API response will be a single JSON structure.<\/p>\n\n\n\n<p>To convert JSON to DataFrame, it is possible to use the following code. All data in the DataFrame will contain information such as&nbsp;date and the column corresponding to the parameter that you call in the function. All given information will be available for stock symbol, which was used when we called API, in particular (\u201c<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/AAPL.US\">AAPL.US<\/a>\u201d).<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-15dac825211988a42fc021ba6475e27b\"><code lang=\"python\" class=\"language-python\">wma = pd.DataFrame(weighted_ma)\nprint(wma)<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<h2 class=\"wp-block-heading\" id=\"h-exploring-the-ema\">Exploring the EMA<\/h2>\n\n\n\n<p>Secondly, we will request <a href=\"https:\/\/www.investopedia.com\/ask\/answers\/071414\/whats-difference-between-moving-average-and-weighted-moving-average.asp\" target=\"_blank\" rel=\"noreferrer noopener\">EMA<\/a> data from the <a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\/\">Technical Indicators API<\/a>.<\/p>\n\n\n\n<p><strong>EMA<\/strong> is a first-order&nbsp;infinite impulse response&nbsp;filter that applies weighting factors which decrease&nbsp;exponentially. The weights for older&nbsp;dates decrease exponentially, never reaching zero.&nbsp;<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-b4525ad40a30ae31ab4f5bbf8eb0504c\"><code lang=\"python\" class=\"language-python\">exponential_ma = api.get_technical_indicator_data(ticker = \"AAPL.US\", function = \"ema\")<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>The API response will be a single JSON structure.<\/p>\n\n\n\n<p>To convert JSON to DataFrame, it is possible to use the following code. All data in the DataFrame will contain information such as&nbsp;date and the column corresponding to the parameter that you call in the function. All given information will be available for stock symbol, which was used when we called API, in particular (\u201c<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/AAPL.US\">AAPL.US<\/a>\u201d).<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-eaa4f3e0438466285873cd948a6d7b34\"><code lang=\"python\" class=\"language-python\">ema = pd.DataFrame(exponential_ma)\nprint(ema)<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<h2 class=\"wp-block-heading\" id=\"h-exploring-the-sma\">Exploring the SMA<\/h2>\n\n\n\n<p>The next step is to start requesting <a href=\"https:\/\/www.investopedia.com\/ask\/answers\/071414\/whats-difference-between-moving-average-and-weighted-moving-average.asp\" target=\"_blank\" rel=\"noreferrer noopener\">SMA<\/a> data from the <a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\/\">Technical Indicators API<\/a>.<\/p>\n\n\n\n<p><strong>SMA<\/strong> is normally taken from an equal number of data on either side of a central value. This ensures that variations in the mean are aligned with the variations in the data rather than being shifted in time.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code lang=\"python\" class=\"language-python\">simple_ma = api.get_technical_indicator_data(ticker = \"AAPL.US\", function = \"sma\")<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>The API response will be a single JSON structure.<\/p>\n\n\n\n<p>To convert JSON to DataFrame, it is possible to use the following code. All data in the DataFrame will contain information such as&nbsp;date and the column corresponding to the parameter that you call in the function. All given information will be available for stock symbol, which was used when we called API, in particular (\u201c<a href=\"https:\/\/eodhistoricaldata.com\/financial-summary\/AAPL.US\">AAPL.US<\/a>\u201d).<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code lang=\"python\" class=\"language-python\">sma = pd.DataFrame(simple_ma)\nprint(sma)<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<h3 class=\"wp-block-heading\" id=\"h-extended-parameters-of-sma\">Extended parameters of SMA<\/h3>\n\n\n\n<p>For a more accurate research, it is possible to use parameters&nbsp;that lays in Moving Average&nbsp;functions.&nbsp;For all three function is available one parameter, named <strong>period. <\/strong>It is the number of data points used to calculate each simple moving average value. Valid range from 2 to 100000 with the default value \u2013 50.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code lang=\"python\" class=\"language-python\">sma_extended = api.get_technical_indicator_data(ticker = \"AAPL.US\", function = \"sma\", period = 100)\nsma_e = pd.DataFrame(sma_extended)\nprint(sma_e)<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>We&#8217;ve explored the essential concepts of <a href=\"https:\/\/www.investopedia.com\/ask\/answers\/071414\/whats-difference-between-moving-average-and-weighted-moving-average.asp\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">SMA,<\/a><a href=\"https:\/\/www.investopedia.com\/ask\/answers\/071414\/whats-difference-between-moving-average-and-weighted-moving-average.asp\" target=\"_blank\" rel=\"noreferrer noopener\"> <\/a><a href=\"https:\/\/www.investopedia.com\/ask\/answers\/071414\/whats-difference-between-moving-average-and-weighted-moving-average.asp\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">WMA, and EMA<\/a> as integral components of our <a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\/\">Technical Indicators API<\/a>. These moving averages provide unique methods of analyzing stock data, and we&#8217;ve discussed how to access and utilize this information. Now you have the flexibility to fine-tune your analysis for a more accurate research in the dynamic world of stock trading.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In finance, a Moving Average (MA) is a stock indicator commonly used in technical analysis: Moving averages are used in calculations to analyze data points by creating a series of&nbsp;averages&nbsp;of different selections of the full data set.&nbsp; Please note: before continuing to work with our APIs, make sure that you import and install all required [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[59],"tags":[],"coding-language":[],"ready-to-go-solution":[56],"qualification":[33],"financial-apis-category":[36],"financial-apis-manuals":[40],"class_list":["post-3302","post","type-post","status-publish","format-standard","hentry","category-technical-analysis-examples","ready-to-go-solution-eodhd-python-financial-library","qualification-newbie","financial-apis-category-stock-market-prices","financial-apis-manuals-technical-indicators"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.9 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use SMA, WMA and EMA on Technical Indicators API with Python | EODHD APIs Academy<\/title>\n<meta name=\"description\" content=\"Explore Simple Moving Average (SMA), Weighted Moving Average (WMA), and Exponential Moving Average (EMA) in our Technical Indicator API. Learn how to access, convert, and analyze stock data, and use extended parameters for precise research.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use SMA, WMA and EMA on Technical Indicators API with Python\" \/>\n<meta property=\"og:description\" content=\"Explore Simple Moving Average (SMA), Weighted Moving Average (WMA), and Exponential Moving Average (EMA) in our Technical Indicator API. Learn how to access, convert, and analyze stock data, and use extended parameters for precise research.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python\" \/>\n<meta property=\"og:site_name\" content=\"Financial Academy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-16T09:04:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-05T13:41:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/09\/EODHD-Python-Financial-Libriary.png\" \/>\n\t<meta property=\"og:image:width\" content=\"801\" \/>\n\t<meta property=\"og:image:height\" content=\"261\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Gleb from EODHD\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gleb from EODHD\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python\"},\"author\":{\"name\":\"Gleb from EODHD\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b4d6b3aab4e8b416243add4537592b44\"},\"headline\":\"How to Use SMA, WMA and EMA on Technical Indicators API with Python\",\"datePublished\":\"2023-11-16T09:04:39+00:00\",\"dateModified\":\"2025-02-05T13:41:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python\"},\"wordCount\":752,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"articleSection\":[\"Technical Analysis Examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python\",\"name\":\"How to Use SMA, WMA and EMA on Technical Indicators API with Python | EODHD APIs Academy\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\"},\"datePublished\":\"2023-11-16T09:04:39+00:00\",\"dateModified\":\"2025-02-05T13:41:39+00:00\",\"description\":\"Explore Simple Moving Average (SMA), Weighted Moving Average (WMA), and Exponential Moving Average (EMA) in our Technical Indicator API. Learn how to access, convert, and analyze stock data, and use extended parameters for precise research.\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-academy\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use SMA, WMA and EMA on Technical Indicators API with Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"name\":\"Financial APIs Academy | EODHD\",\"description\":\"Financial Stock Market Academy\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b4d6b3aab4e8b416243add4537592b44\",\"name\":\"Gleb from EODHD\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c1e7c24fd2fa413c9bbd20948dc2d4beb0104893a2e2363b2b10c21e43ac78a3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c1e7c24fd2fa413c9bbd20948dc2d4beb0104893a2e2363b2b10c21e43ac78a3?s=96&d=mm&r=g\",\"caption\":\"Gleb from EODHD\"},\"url\":\"https:\/\/eodhd.com\/financial-academy\/author\/glebeodhd\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use SMA, WMA and EMA on Technical Indicators API with Python | EODHD APIs Academy","description":"Explore Simple Moving Average (SMA), Weighted Moving Average (WMA), and Exponential Moving Average (EMA) in our Technical Indicator API. Learn how to access, convert, and analyze stock data, and use extended parameters for precise research.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python","og_locale":"en_US","og_type":"article","og_title":"How to Use SMA, WMA and EMA on Technical Indicators API with Python","og_description":"Explore Simple Moving Average (SMA), Weighted Moving Average (WMA), and Exponential Moving Average (EMA) in our Technical Indicator API. Learn how to access, convert, and analyze stock data, and use extended parameters for precise research.","og_url":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python","og_site_name":"Financial Academy","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2023-11-16T09:04:39+00:00","article_modified_time":"2025-02-05T13:41:39+00:00","og_image":[{"width":801,"height":261,"url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/09\/EODHD-Python-Financial-Libriary.png","type":"image\/png"}],"author":"Gleb from EODHD","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"Gleb from EODHD","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python"},"author":{"name":"Gleb from EODHD","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b4d6b3aab4e8b416243add4537592b44"},"headline":"How to Use SMA, WMA and EMA on Technical Indicators API with Python","datePublished":"2023-11-16T09:04:39+00:00","dateModified":"2025-02-05T13:41:39+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python"},"wordCount":752,"publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"articleSection":["Technical Analysis Examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python","url":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python","name":"How to Use SMA, WMA and EMA on Technical Indicators API with Python | EODHD APIs Academy","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/#website"},"datePublished":"2023-11-16T09:04:39+00:00","dateModified":"2025-02-05T13:41:39+00:00","description":"Explore Simple Moving Average (SMA), Weighted Moving Average (WMA), and Exponential Moving Average (EMA) in our Technical Indicator API. Learn how to access, convert, and analyze stock data, and use extended parameters for precise research.","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-academy\/technical-analysis-examples\/how-to-use-sma-wma-and-ema-on-technical-indicators-api-with-python#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-academy\/"},{"@type":"ListItem","position":2,"name":"How to Use SMA, WMA and EMA on Technical Indicators API with Python"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-academy\/#website","url":"https:\/\/eodhd.com\/financial-academy\/","name":"Financial APIs Academy | EODHD","description":"Financial Stock Market Academy","publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-academy\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-academy\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b4d6b3aab4e8b416243add4537592b44","name":"Gleb from EODHD","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c1e7c24fd2fa413c9bbd20948dc2d4beb0104893a2e2363b2b10c21e43ac78a3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c1e7c24fd2fa413c9bbd20948dc2d4beb0104893a2e2363b2b10c21e43ac78a3?s=96&d=mm&r=g","caption":"Gleb from EODHD"},"url":"https:\/\/eodhd.com\/financial-academy\/author\/glebeodhd"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pdOdVT-Rg","jetpack_sharing_enabled":true,"acf":[],"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/3302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/comments?post=3302"}],"version-history":[{"count":41,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/3302\/revisions"}],"predecessor-version":[{"id":6297,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/3302\/revisions\/6297"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/media?parent=3302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/categories?post=3302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/tags?post=3302"},{"taxonomy":"coding-language","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/coding-language?post=3302"},{"taxonomy":"ready-to-go-solution","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/ready-to-go-solution?post=3302"},{"taxonomy":"qualification","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/qualification?post=3302"},{"taxonomy":"financial-apis-category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-category?post=3302"},{"taxonomy":"financial-apis-manuals","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-manuals?post=3302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}