{"id":512,"date":"2018-09-04T18:33:18","date_gmt":"2018-09-04T16:33:18","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=512"},"modified":"2020-11-21T22:22:52","modified_gmt":"2020-11-21T21:22:52","slug":"running-automatic-trading-bot","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/","title":{"rendered":"Investor &#8211; Running an Automatic Trading Bot"},"content":{"rendered":"<p>So far we have looked at the trading simulation functionality which was using the historic stock data to evaluate strategies on a single stock or a portfolio of stocks.<\/p>\n<p>In this document we want to demonstrate how to do trading with actual data.<\/p>\n<p>We still use the PaperTrader to demonstrate the basic logic<\/p>\n<h3>Setup<\/h3>\n<p>We add the necessary jars and import all relevant packages:<\/p>\n<pre><code class=\"Scala\">%classpath config resolver maven-public https:\/\/software.pschatzmann.ch\/repository\/maven-public\/\n%%classpath add mvn \nch.pschatzmann:investor:0.9-SNAPSHOT\nch.pschatzmann:jupyter-jdk-extensions:0.0.1-SNAPSHOT\n\n<\/code><\/pre>\n<pre><code>Added new repo: maven-public\n<\/code><\/pre>\n<pre><code class=\"Scala\">\/\/ imports for the investor framwork\nimport ch.pschatzmann.dates._;\nimport ch.pschatzmann.stocks._;\nimport ch.pschatzmann.stocks.data.universe._;\nimport ch.pschatzmann.stocks.input._;\nimport ch.pschatzmann.stocks.accounting._;\nimport ch.pschatzmann.stocks.accounting.kpi._;\nimport ch.pschatzmann.stocks.execution._;\nimport ch.pschatzmann.stocks.execution.fees._;\nimport ch.pschatzmann.stocks.execution.price._;\nimport ch.pschatzmann.stocks.parameters._;\nimport ch.pschatzmann.stocks.strategy._;\nimport ch.pschatzmann.stocks.strategy.optimization._;\nimport ch.pschatzmann.stocks.strategy.allocation._;\nimport ch.pschatzmann.stocks.strategy.selection._;\nimport ch.pschatzmann.stocks.integration._;\nimport ch.pschatzmann.stocks.integration.ChartData.FieldName._;\nimport ch.pschatzmann.stocks.strategy.OptimizedStrategy.Schedule._;\n\n\/\/ java\nimport java.util.stream.Collectors;\nimport java.util._;\nimport java.lang._;\nimport java.util.function.Consumer;\nimport scala.collection.JavaConverters\n\n\/\/\/ jupyter custom displayer\nimport ch.pschatzmann.display.Displayers\n\n<\/code><\/pre>\n<pre><code>import ch.pschatzmann.dates._\nimport ch.pschatzmann.stocks._\nimport ch.pschatzmann.stocks.data.universe._\nimport ch.pschatzmann.stocks.input._\nimport ch.pschatzmann.stocks.accounting._\nimport ch.pschatzmann.stocks.accounting.kpi._\nimport ch.pschatzmann.stocks.execution._\nimport ch.pschatzmann.stocks.execution.fees._\nimport ch.pschatzmann.stocks.execution.price._\nimport ch.pschatzmann.stocks.parameters._\nimport ch.pschatzmann.stocks.strategy._\nimport ch.pschatzmann.stocks.strategy.optimization._\nimport ch.pschatzmann.stocks.strategy.allocation._\nimport ch.pschatzmann.stocks.strategy.selection._\nimport ch.pschatzmann.stocks.integration._\nimport ch.pschatzmann.stocks.integration.ChartData.FieldName._\nimport ch.pschatzmann.stocks.strategy.OptimizedStrategy.Schedule._\nimport java.util.stream...\n<\/code><\/pre>\n<h3>Trading with One Single Strategy<\/h3>\n<p>Here is the first example with one defined strategy:<br \/>\n&#8211; We use a ManagedAccount in order to make sure that the transactions can be saved and reloaded when we restart the functionality at a later date.<br \/>\n&#8211; We need to set up the StrategyExecutor first.<br \/>\n&#8211; Then we can feed it to the ScheduledExecutor and schedule the job with a cron expression.<\/p>\n<h4>Cron Syntax<\/h4>\n<p>The detailed description of the quartz cron syntax can be found at <a href=\"http:\/\/www.quartz-scheduler.org\/documentation\/quartz-2.x\/tutorials\/crontrigger.html\">http:\/\/www.quartz-scheduler.org\/documentation\/quartz-2.x\/tutorials\/crontrigger.html<\/a>. E.g. ff we an it to run every 10 minutes we would specify &#8220;0 0\/8 * * * ?&#8221;<br \/>\nIn our example we execute the strategy every day at 8am GMT.<\/p>\n<pre><code class=\"Scala\">var account = new ManagedAccount(\"648-11017-A\", \"USD\", 100000.00, new Date(), new PerTradeFees(6.95))\nvar trader = new PaperTrader(account);\nvar strategyExecutor = new StrategyExecutor(trader);\nvar apple = new StockData(new StockID(\"AAPL\", \"NASDAQ\"), new YahooReader());\nstrategyExecutor.addStrategy(new RSI2Strategy(apple));\n\n\/\/ schedule the future execution \nvar scheduledExecutor = new ScheduledExecutor(strategyExecutor)\nscheduledExecutor.schedule(\"0 0 8 * * ?\"); \n\n<\/code><\/pre>\n<pre><code>The scheduled trading has been stopped\nThe trading has been scheduled....\n\n\n\n\n\nnull\n<\/code><\/pre>\n<h3>Trading a Porfolio of Strategies<\/h3>\n<p>In our second example we use the StrategySelector\/StockSelector that we got to know in the Selection Chapter.<\/p>\n<p>To trade a porfolio of strategies is using the same flow as above:<\/p>\n<pre><code class=\"Scala\">var periods = Context.getDateRanges(\"2016-01-01\",\"2017-01-01\");\nvar account = new ManagedAccount(\"648-11017-B\", \"USD\", 100000.00, periods.get(0).getStart(), new PerTradeFees(6.95))\nvar strategies = TradingStrategyFactory.list()\nvar trader = new PaperTrader(account);\nvar allocationStrategy = new DistributedAllocationStrategy(trader);\nvar executor = new StrategyExecutor(trader, allocationStrategy);\nvar portfolioUniverse =  new EdgarUniverse(2016, Arrays.asList(0.2, 0.5, 0.8, 1.0), 10, Arrays.asList(\"NetIncomeLoss\"), true)                                \nvar strategySelector = new StrategySelector(account, strategies, periods.get(0), KPI.AbsoluteReturn)\nvar stockSelector = new StockSelector(strategySelector)\nvar reader = new YahooReader() \nvar result = stockSelector.getSelection(10, portfolioUniverse, reader)\nexecutor.setStrategies(result.getStrategies(reader));\n\nvar scheduledExecutor = new ScheduledExecutor(executor)\nscheduledExecutor.schedule(\"0 0 8 * * ?\"); \n\nscheduledExecutor.stop()\n<\/code><\/pre>\n<pre><code>The scheduled trading has been stopped\nThe trading has been scheduled....\nThe scheduled trading has been stopped\n\n\n\n\n\nnull\n<\/code><\/pre>\n<h3>Trading a Porfolio of Strategies II<\/h3>\n<p>In our last example we show a more dynamic example which recalculates the Strategy Executor and Universe with each year change. To achieve this we overwrite the getExecutor() method in a new custom MyScheduledExecutor subclass:<\/p>\n<pre><code class=\"Scala\"> class MyScheduledExecutor() extends ScheduledExecutor() {\n    var currentYear:Integer = null;\n\n    override def getExecutor: StrategyExecutor = {\n        var year = Context.getYear(new Date())\n        var executor = super.getExecutor()\n        if (year!=currentYear) {\n            System.out.println(\"Defining new executor\");\n            var periods = Context.getDateRanges((year-2)+\"-01-01\",(year-1)+\"-01-01\");\n            var account = new ManagedAccount(\"648-11017\", \"USD\", 100000.00, periods.get(0).getStart(), new PerTradeFees(6.95))\n            var strategies = TradingStrategyFactory.list()\n            var trader = new PaperTrader(account);\n            var allocationStrategy = new DistributedAllocationStrategy(trader);\n            executor = new StrategyExecutor(trader, allocationStrategy);\n            var portfolioUniverse =  new EdgarUniverse(year-2, Arrays.asList(0.2, 0.5, 0.8, 1.0), 10, Arrays.asList(\"NetIncomeLoss\"), true)                                \n            var strategySelector = new StrategySelector(account, strategies, periods.get(0), KPI.AbsoluteReturn)\n            var stockSelector = new StockSelector(strategySelector)\n            var reader = new YahooReader() \n            var result = stockSelector.getSelection(10, portfolioUniverse, reader)\n            executor.setStrategies(result.getStrategies(reader));\n            setExecutor(executor)\n            currentYear = year\n        }\n        return executor\n    }\n }\n\nvar scheduledExecutor = new MyScheduledExecutor()\nscheduledExecutor.schedule(\"0 0 8 * * ?\"); \n\n<\/code><\/pre>\n<pre><code>Defining new executor\nThe scheduled trading has been stopped\nThe trading has been scheduled....\n\n\n\n\n\nnull\n<\/code><\/pre>\n<h3>Checking the Result<\/h3>\n<p>If there are any trades the system creates a file with the list of transactions in the &#8216;trades&#8217; subdirectory. The latest updated account information can be found in the &#8216;accounts&#8217; directory.<\/p>\n<p>We can also determine the trasactions from the account which is available in the executor:<\/p>\n<pre><code class=\"Scala\">Displayers.display(scheduledExecutor.getAccount().getTransactions())\n<\/code><\/pre>\n<table>\n<tr>\n<th>stockID<\/th>\n<th>date<\/th>\n<th>quantity<\/th>\n<th>requestedPrice<\/th>\n<th>filledPrice<\/th>\n<th>fees<\/th>\n<th>comment<\/th>\n<th>id<\/th>\n<th>status<\/th>\n<th>requestedPriceType<\/th>\n<th>buyOrSell<\/th>\n<th>impactOnCash<\/th>\n<th>active<\/th>\n<\/tr>\n<tr>\n<td>\n<table >\n<tr>\n<th>Key<\/th>\n<th>Value<\/th>\n<\/tr>\n<tr>\n<td>ticker<\/td>\n<td>Cash<\/td>\n<\/tr>\n<tr>\n<td>exchange<\/td>\n<td>Account<\/td>\n<\/tr>\n<\/table>\n<\/td>\n<td>2016-01-01<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td><\/td>\n<td>2feaf27c-9439-4957-b81d-2fa0f1b8d163<\/td>\n<td>Planned<\/td>\n<td>CashTransfer<\/td>\n<td>NA<\/td>\n<td>100000<\/td>\n<td>true<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>So far we have looked at the trading simulation functionality which was using the historic stock data to evaluate strategies on a single stock or a portfolio of stocks. In this document we want to demonstrate how to do trading with actual data. We still use the PaperTrader to demonstrate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":514,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quantitative-trading"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Investor - Running an Automatic Trading Bot - Phil Schatzmann<\/title>\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.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Investor - Running an Automatic Trading Bot - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"So far we have looked at the trading simulation functionality which was using the historic stock data to evaluate strategies on a single stock or a portfolio of stocks. In this document we want to demonstrate how to do trading with actual data. We still use the PaperTrader to demonstrate [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-04T16:33:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-21T21:22:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2018\/09\/trading-1.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"288\" \/>\n\t<meta property=\"og:image:height\" content=\"175\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\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:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"Investor &#8211; Running an Automatic Trading Bot\",\"datePublished\":\"2018-09-04T16:33:18+00:00\",\"dateModified\":\"2020-11-21T21:22:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/\"},\"wordCount\":347,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/trading-1.jpeg\",\"articleSection\":[\"Quantitative Trading\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/\",\"name\":\"Investor - Running an Automatic Trading Bot - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/trading-1.jpeg\",\"datePublished\":\"2018-09-04T16:33:18+00:00\",\"dateModified\":\"2020-11-21T21:22:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/trading-1.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/trading-1.jpeg\",\"width\":288,\"height\":175},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/09\\\/04\\\/running-automatic-trading-bot\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Investor &#8211; Running an Automatic Trading Bot\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Investor - Running an Automatic Trading Bot - Phil Schatzmann","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.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/","og_locale":"en_US","og_type":"article","og_title":"Investor - Running an Automatic Trading Bot - Phil Schatzmann","og_description":"So far we have looked at the trading simulation functionality which was using the historic stock data to evaluate strategies on a single stock or a portfolio of stocks. In this document we want to demonstrate how to do trading with actual data. We still use the PaperTrader to demonstrate [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/","og_site_name":"Phil Schatzmann","article_published_time":"2018-09-04T16:33:18+00:00","article_modified_time":"2020-11-21T21:22:52+00:00","og_image":[{"width":288,"height":175,"url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2018\/09\/trading-1.jpeg","type":"image\/jpeg"}],"author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"Investor &#8211; Running an Automatic Trading Bot","datePublished":"2018-09-04T16:33:18+00:00","dateModified":"2020-11-21T21:22:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/"},"wordCount":347,"commentCount":0,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2018\/09\/trading-1.jpeg","articleSection":["Quantitative Trading"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/","url":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/","name":"Investor - Running an Automatic Trading Bot - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#primaryimage"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2018\/09\/trading-1.jpeg","datePublished":"2018-09-04T16:33:18+00:00","dateModified":"2020-11-21T21:22:52+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#primaryimage","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2018\/09\/trading-1.jpeg","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2018\/09\/trading-1.jpeg","width":288,"height":175},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/09\/04\/running-automatic-trading-bot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"Investor &#8211; Running an Automatic Trading Bot"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":1,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":2224,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/512\/revisions\/2224"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media\/514"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}