{"id":156760,"date":"2022-09-12T11:39:15","date_gmt":"2022-09-12T15:39:15","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=156760"},"modified":"2022-11-21T09:58:07","modified_gmt":"2022-11-21T14:58:07","slug":"from-paper-trading-to-real-trading-monitoring-debug-and-go-live","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/","title":{"rendered":"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live!"},"content":{"rendered":"\n<p><i>This tutorial is a part of the series &#8220;Building your automated strategy with IBKR: From Back Testing to Paper Trading to Live Execution.&#8221; See below for the previous installments:<\/i><\/p>\n\n\n\n<ul class=\"has-light-green-cyan-background-color has-background wp-block-list\"><li><a href=\"\/campus\/ibkr-quant-news\/back-testing-on-ibkr-with-backtrader-part-i\/\">Part I<\/a>&nbsp;provides instructions on how to setup the development and trading environment.<\/li><li><a href=\"\/campus\/ibkr-quant-news\/retrieving-historical-data-from-ibkr\/\">Part II<\/a>&nbsp;demonstrates how to use IBKR historical data within Backtrader.<\/li><li><a href=\"\/campus\/ibkr-quant-news\/ibkr-market-data-from-real-time-bars-to-ticks\/\">Part III<\/a>&nbsp;showcases how to use various types of real-time data to run trading strategies.<\/li><li><a href=\"\/campus\/ibkr-quant-news\/from-back-test-to-paper-trading\/\">Part IV<\/a>&nbsp;walks you through how to transition to paper trading using live data.<\/li><\/ul>\n\n\n\n<p>Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.<\/p>\n\n\n\n<p>Sometimes a successful paper trading strategy may not translate to the same performance in real trading. This can be for a myriad of internal or external factors (market impact, price slippage, market microstructure etc.) or simple programming issues.<\/p>\n\n\n\n<p>To help isolate and identify these issues it is important to have a robust monitoring and debugging facility built into the trading process.<\/p>\n\n\n\n<p>The simplest and most effective method is to have comprehensive and accurate logging. The logger should record trades and actions such as opening and closing prices and trigger conditions and parameters pertinent to the strategy.<\/p>\n\n\n\n<p>The Backtrader and TWS API also has debugging built in and can be accessed by setting the appropriate configuration parameters.<\/p>\n\n\n\n<p>We will explore logging by enhancing the strategy we developed in <a href=\"\/campus\/ibkr-quant-news\/from-back-test-to-paper-trading\/\">Part 4<\/a> of this series.<\/p>\n\n\n\n<p>The table below shows the configuration for both live and paper trading.<\/p>\n\n\n\n<p>Transition from paper to live trading is simply a matter of changing the port number from 7497 to 7496. This will result in live orders going out to the market so be careful when modifying the configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"864\" height=\"254\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-25.png\" alt=\"\" class=\"wp-image-156774 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-25.png 864w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-25-700x206.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-25-300x88.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-25-768x226.png 768w\" data-sizes=\"(max-width: 864px) 100vw, 864px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 864px; aspect-ratio: 864\/254;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-an-example-of-a-simple-buy-sell-strategy-with-logging\">An Example of a Simple Buy\/Sell Strategy With Logging<\/h2>\n\n\n\n<p>Not that in this strategy we generate Buy and Sell market orders related to a simple moving average calculation. This strategy has been adapted from (<a href=\"https:\/\/www.backtrader.com\/docu\/quickstart\/quickstart\">https:\/\/www.backtrader.com\/docu\/quickstart\/quickstart<\/a>) with minor updates.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"864\" height=\"349\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-26.png\" alt=\"\" class=\"wp-image-156777 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-26.png 864w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-26-700x283.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-26-300x121.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-26-768x310.png 768w\" data-sizes=\"(max-width: 864px) 100vw, 864px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 864px; aspect-ratio: 864\/349;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Setting Up A Log File<\/h2>\n\n\n\n<p>There is a example custom logger supplied in the atreyu_backtrader_api module, and can be referenced in the code as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"862\" height=\"61\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-27.png\" alt=\"\" class=\"wp-image-156778 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-27.png 862w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-27-700x50.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-27-300x21.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-27-768x54.png 768w\" data-sizes=\"(max-width: 862px) 100vw, 862px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 862px; aspect-ratio: 862\/61;\" \/><\/figure>\n\n\n\n<p>The logger has the following properties:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>It can write a named log file into a named directory thereby keeping all the logs together.<\/li><li>It has log rotation, e.g. it does not overwrite logs on repeated restarts but backs each log keeping the specified logfile as the latest log.<\/li><li>Each log line can be echoed to the terminal as well as written to the logfile&nbsp;<\/li><\/ul>\n\n\n\n<p>The logger can be setup as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"864\" height=\"128\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-28.png\" alt=\"\" class=\"wp-image-156780 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-28.png 864w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-28-700x104.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-28-300x44.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-28-768x114.png 768w\" data-sizes=\"(max-width: 864px) 100vw, 864px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 864px; aspect-ratio: 864\/128;\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Configuring each sub-logger for the module and source file that is of interest, can control the logfile output.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"863\" height=\"349\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-29.png\" alt=\"\" class=\"wp-image-156781 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-29.png 863w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-29-700x283.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-29-300x121.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-29-768x311.png 768w\" data-sizes=\"(max-width: 863px) 100vw, 863px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 863px; aspect-ratio: 863\/349;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Enable Logging in Backtrader<\/h2>\n\n\n\n<p>To enable logging in the Backtrader framework the _debug = True variable can be passed when setting up the IBStore and IBData classes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"863\" height=\"476\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-30.png\" alt=\"\" class=\"wp-image-156782 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-30.png 863w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-30-700x386.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-30-300x165.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-30-768x424.png 768w\" data-sizes=\"(max-width: 863px) 100vw, 863px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 863px; aspect-ratio: 863\/476;\" \/><\/figure>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"863\" height=\"467\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-31.png\" alt=\"\" class=\"wp-image-156783 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-31.png 863w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-31-700x379.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-31-300x162.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-31-768x416.png 768w\" data-sizes=\"(max-width: 863px) 100vw, 863px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 863px; aspect-ratio: 863\/467;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Onward To Live Trading<\/h2>\n\n\n\n<p>You now have implemented logging and have and good understanding of how to debug your strategy in case of programming issues.<\/p>\n\n\n\n<p>It is suggested that live trading starts small, and that as confidence is gained trading sizes\/frequency can be increased within your prescribed risk appetite. At each stage it is recommended that you review the logs for anomalies that you may not notice from looking at the TWS screens.<\/p>\n\n\n\n<p>Switching the strategy to live trading is as simple as logging in with TWS for trading and changing the port designator in the code below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"863\" height=\"463\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-32.png\" alt=\"\" class=\"wp-image-156784 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-32.png 863w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-32-700x376.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-32-300x161.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/image-32-768x412.png 768w\" data-sizes=\"(max-width: 863px) 100vw, 863px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 863px; aspect-ratio: 863\/463;\" \/><\/figure>\n\n\n\n<p>This concludes our series &#8220;Building your automated strategy with IBKR: From Back Testing to Paper Trading to Live Execution.&#8221;<\/p>\n\n\n\n<p><em>Visit Atreyu Trading Services&nbsp;<a href=\"https:\/\/www.atreyutrading.com\/\">https:\/\/www.atreyutrading.com\/<\/a>&nbsp;for additional insight on Backtrader.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.<\/p>\n","protected":false},"author":890,"featured_media":156817,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,340,343,349,338,350,341,351,352,344,2197],"tags":[4873,11809,865,575,595],"contributors-categories":[13853],"class_list":{"0":"post-156760","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-api-development","9":"category-programing-languages","10":"category-python-development","11":"category-ibkr-quant-news","12":"category-quant-asia-pacific","13":"category-quant-development","14":"category-quant-europe","15":"category-quant-north-america","16":"category-quant-regions","17":"category-quant-south-america","18":"tag-backtesting","19":"tag-backtrader","20":"tag-github","21":"tag-ibkr-api","22":"tag-python","23":"contributors-categories-atreyu-trading-services"},"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>From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live!<\/title>\n<meta name=\"description\" content=\"Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.\" \/>\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\/156760\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live! | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-12T15:39:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:58:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jogi Narain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jogi Narain\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 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\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Jogi Narain\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/8085974e98027a34d1ab53a986c2033e\"\n\t            },\n\t            \"headline\": \"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live!\",\n\t            \"datePublished\": \"2022-09-12T15:39:15+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:58:07+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/\"\n\t            },\n\t            \"wordCount\": 624,\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\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"keywords\": [\n\t                \"backtesting\",\n\t                \"Backtrader\",\n\t                \"GitHub\",\n\t                \"IBKR API\",\n\t                \"Python\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"IBKR API Development\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Europe\",\n\t                \"Quant North America\",\n\t                \"Quant Regions\",\n\t                \"Quant South America\"\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\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/\",\n\t            \"name\": \"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live! | 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\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"datePublished\": \"2022-09-12T15:39:15+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:58:07+00:00\",\n\t            \"description\": \"Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.\",\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\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/\"\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\\\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/09\\\/python-blue-tech.jpg\",\n\t            \"width\": 1000,\n\t            \"height\": 563,\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\\\/8085974e98027a34d1ab53a986c2033e\",\n\t            \"name\": \"Jogi Narain\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/jogi-narain\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live!","description":"Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.","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\/156760\/","og_locale":"en_US","og_type":"article","og_title":"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live! | IBKR Quant Blog","og_description":"Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/","og_site_name":"IBKR Campus US","article_published_time":"2022-09-12T15:39:15+00:00","article_modified_time":"2022-11-21T14:58:07+00:00","og_image":[{"width":1000,"height":563,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","type":"image\/jpeg"}],"author":"Jogi Narain","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jogi Narain","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/"},"author":{"name":"Jogi Narain","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/8085974e98027a34d1ab53a986c2033e"},"headline":"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live!","datePublished":"2022-09-12T15:39:15+00:00","dateModified":"2022-11-21T14:58:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/"},"wordCount":624,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","keywords":["backtesting","Backtrader","GitHub","IBKR API","Python"],"articleSection":["Data Science","IBKR API Development","Programming Languages","Python Development","Quant","Quant Asia Pacific","Quant Development","Quant Europe","Quant North America","Quant Regions","Quant South America"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/","name":"From Paper Trading To Real Trading \u2013 Monitoring, Debug and Go Live! | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","datePublished":"2022-09-12T15:39:15+00:00","dateModified":"2022-11-21T14:58:07+00:00","description":"Paper trading can help to validate the efficacy of a strategy, so it is prudent to continue paper trading until a stable performance has been achieved.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/from-paper-trading-to-real-trading-monitoring-debug-and-go-live\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","width":1000,"height":563,"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\/8085974e98027a34d1ab53a986c2033e","name":"Jogi Narain","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/jogi-narain\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/python-blue-tech.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/156760","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\/890"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=156760"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/156760\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/156817"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=156760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=156760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=156760"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=156760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}