{"id":137824,"date":"2022-05-12T11:02:15","date_gmt":"2022-05-12T15:02:15","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=137824"},"modified":"2022-11-21T09:54:27","modified_gmt":"2022-11-21T14:54:27","slug":"backtrader-what-it-is-how-to-install-strategies-trading-and-more","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/","title":{"rendered":"Backtrader: What it is, How to Install, Strategies, Trading and More"},"content":{"rendered":"\n<p><strong><em>Excerpt<\/em><\/strong><\/p>\n\n\n\n<p>Python enables traders and investors to backtest their strategies so that they can assess whether the strategy is good or not by observing the past performance of the strategy. However, not everyone has a high level of coding skills that can implement their backtesting in the most accurate and efficient way. Thanks to the Backtrader library, everyone can backtest their strategies in an efficient and accurate way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-backtrader\">What is Backtrader?<\/h2>\n\n\n\n<p>Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.<\/p>\n\n\n\n<p>Although it is quite possible to backtest your algorithmic trading strategy in Python without using any special library, Backtrader provides many features that facilitate this process. In general, every complex component of ordinary backtesting can be created with a single line of code by calling special functions.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-install-the-backtrader-library\">How to install the Backtrader library?<\/h2>\n\n\n\n<p>There is no special requirement for installing the Backtrader library. It also doesn\u2019t have any dependencies. You can install this library by using the package manager \u201cpip\u201d.<\/p>\n\n\n\n<p>To install the Backtrader library by using the \u201cpip\u201d package manager, open the command prompt (or terminal for Mac users) then type the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install backtrader<\/code><\/pre>\n\n\n\n<p>You can check whether it is installed successfully by trying the following code:<\/p>\n\n\n\n<p>Although there are no dependencies, to use plotting features of the Backtrader library, \u201cmatplotlib\u201d is required. You can install this library by using the same way.<\/p>\n\n\n\n<p>Please note that the latest version of the matplotlib library may cause some errors while using it with Backtrader. It is compatible with version 3.2.2 of the matplotlib library. Therefore, you need to specify this version while installing.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install matplotlib==3.2.2<\/code><\/pre>\n\n\n\n<p>Now you are ready to use Backtrader with its full functionality.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-your-first-code-with-backtrader\">Create your first code with Backtrader<\/h2>\n\n\n\n<p>In this part, you will go through the core components for creating a backtesting framework with the Backtrader library. As with all external libraries, first, you need to import the Backtrader library.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import backtrader as bt<\/code><\/pre>\n\n\n\n<p>The first thing you need to know about this library is the Cerebro class. It is the core of the library in which most of the works are done. It is an engine that fetches data, simulates the strategy and presents the findings and alternatively plots the inputs and the outputs.<\/p>\n\n\n\n<p>Before going into another important component of Backtrader which is the strategy class, let\u2019s check the ways for fetching the data. In the code above, \u201cadddata()\u201d must include your data as a parameter.<\/p>\n\n\n\n<p>Therefore, before this line, you need to import data online or offline. Here are the two different options for reading data for Backtrader\u2019s Cerebro:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-backtest-a-strategy-with-backtrader\">How to backtest a strategy with Backtrader?<\/h2>\n\n\n\n<p>To backtest a strategy, you need to define a strategy class and add this strategy to the Cerebro instance by typing the name of the class inside the parenthesis in the above code.<\/p>\n\n\n\n<p>In this part, you will go through the components of the strategy class. These components are the functions used for variable definition, trade actions logging and signal generations.<\/p>\n\n\n\n<p>The first function is log():<\/p>\n\n\n\n<p>This function is used for outputting the information which you would like to save and print. We will exemplify this function while explaining another function of this class, next():<\/p>\n\n\n\n<p>This is a simple example that prints the closing prices. During the backtesting, this function is where you generate signals.<\/p>\n\n\n\n<p>For example, let\u2019s employ a strategy where it sells when the price drops below the 100-day moving average and buys when it crosses above the 100-day moving average.<\/p>\n\n\n\n<p>However, before writing down this strategy, you should know another function of Backtrader, \u201c__init__(self)\u201d. This function is where you define the variables and indicators you use in your strategy. Thanks to Backtrader\u2019s indicators feature, you can easily calculate technical indicators.<\/p>\n\n\n\n<p>For this strategy, we need to calculate 100-day moving average. You can define this indicator by the following code:<\/p>\n\n\n\n<p>Now you can create your custom strategy function to generate orders. Let\u2019s say the entering rule is the one described above and the exit rule is keeping the position for 4 periods.<\/p>\n\n\n\n<p>To summarise so far, we have created 3 functions for our strategy class. The first function is for logging which prints actions when we call it. The second one is the main function (&#8220;__init__&#8221;) where we define variables and indicators for our strategy. Then, we created the \u201cnext()\u201d function to define enter and exit rules.<\/p>\n\n\n\n<p>The last function is for checking whether our order sent via \u201cnext()\u201d function is executed or not. This function is called \u201cnotify_order()\u201d. This function is called to notify of order status.<\/p>\n\n\n\n<p>Now you are ready to backtest a strategy. <\/p>\n\n\n\n<p><em>Visit QuantInsti to read the full article: <a href=\"https:\/\/blog.quantinsti.com\/backtrader\/\">https:\/\/blog.quantinsti.com\/backtrader\/<\/a><\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.<\/p>\n","protected":false},"author":817,"featured_media":44932,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338,350,341,344],"tags":[4873,11809,11811,11810,4659,595],"contributors-categories":[13654],"class_list":{"0":"post-137824","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-python-development","10":"category-ibkr-quant-news","11":"category-quant-asia-pacific","12":"category-quant-development","13":"category-quant-regions","14":"tag-backtesting","15":"tag-backtrader","16":"tag-cerebro","17":"tag-data-viszualiztion","18":"tag-matplotlib","19":"tag-python","20":"contributors-categories-quantinsti"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Backtrader: What it is, How to Install, Strategies, Trading and More<\/title>\n<meta name=\"description\" content=\"Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/137824\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Backtrader: What it is, How to Install, Strategies, Trading and More | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-12T15:02:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:54:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Suleyman Emre Yesil\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Suleyman Emre Yesil\" \/>\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\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Suleyman Emre Yesil\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/f9a164264eca91c6aa47f9112ecb1bf2\"\n\t            },\n\t            \"headline\": \"Backtrader: What it is, How to Install, Strategies, Trading and More\",\n\t            \"datePublished\": \"2022-05-12T15:02:15+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:54:27+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/\"\n\t            },\n\t            \"wordCount\": 789,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"keywords\": [\n\t                \"backtesting\",\n\t                \"Backtrader\",\n\t                \"Cerebro\",\n\t                \"Data Viszualiztion\",\n\t                \"Matplotlib\",\n\t                \"Python\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Regions\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/\",\n\t            \"name\": \"Backtrader: What it is, How to Install, Strategies, Trading and More | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"datePublished\": \"2022-05-12T15:02:15+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:54:27+00:00\",\n\t            \"description\": \"Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"Python\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/f9a164264eca91c6aa47f9112ecb1bf2\",\n\t            \"name\": \"Suleyman Emre Yesil\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/suleyman-emre-yesil\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Backtrader: What it is, How to Install, Strategies, Trading and More","description":"Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.","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:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/137824\/","og_locale":"en_US","og_type":"article","og_title":"Backtrader: What it is, How to Install, Strategies, Trading and More | IBKR Quant Blog","og_description":"Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/","og_site_name":"IBKR Campus US","article_published_time":"2022-05-12T15:02:15+00:00","article_modified_time":"2022-11-21T14:54:27+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","type":"image\/jpeg"}],"author":"Suleyman Emre Yesil","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Suleyman Emre Yesil","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/"},"author":{"name":"Suleyman Emre Yesil","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/f9a164264eca91c6aa47f9112ecb1bf2"},"headline":"Backtrader: What it is, How to Install, Strategies, Trading and More","datePublished":"2022-05-12T15:02:15+00:00","dateModified":"2022-11-21T14:54:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/"},"wordCount":789,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","keywords":["backtesting","Backtrader","Cerebro","Data Viszualiztion","Matplotlib","Python"],"articleSection":["Data Science","Programming Languages","Python Development","Quant","Quant Asia Pacific","Quant Development","Quant Regions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/","name":"Backtrader: What it is, How to Install, Strategies, Trading and More | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","datePublished":"2022-05-12T15:02:15+00:00","dateModified":"2022-11-21T14:54:27+00:00","description":"Backtrader is an open-source Python library that you can use for backtesting, strategy visualisation, and live-trading.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/backtrader-what-it-is-how-to-install-strategies-trading-and-more\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","width":900,"height":550,"caption":"Python"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/f9a164264eca91c6aa47f9112ecb1bf2","name":"Suleyman Emre Yesil","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/suleyman-emre-yesil\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/137824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/817"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=137824"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/137824\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/44932"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=137824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=137824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=137824"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=137824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}