{"action":"created","issue":{"url":"https://api.github.com/repos/ftomassetti/backtrader-oandav20/issues/14","repository_url":"https://api.github.com/repos/ftomassetti/backtrader-oandav20","labels_url":"https://api.github.com/repos/ftomassetti/backtrader-oandav20/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ftomassetti/backtrader-oandav20/issues/14/comments","events_url":"https://api.github.com/repos/ftomassetti/backtrader-oandav20/issues/14/events","html_url":"https://github.com/ftomassetti/backtrader-oandav20/issues/14","id":310208554,"number":14,"title":"Get Cancel Notification if Market is Closed?","user":{"login":"haimivan","id":10325765,"avatar_url":"https://avatars1.githubusercontent.com/u/10325765?v=4","gravatar_id":"","url":"https://api.github.com/users/haimivan","html_url":"https://github.com/haimivan","followers_url":"https://api.github.com/users/haimivan/followers","following_url":"https://api.github.com/users/haimivan/following{/other_user}","gists_url":"https://api.github.com/users/haimivan/gists{/gist_id}","starred_url":"https://api.github.com/users/haimivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haimivan/subscriptions","organizations_url":"https://api.github.com/users/haimivan/orgs","repos_url":"https://api.github.com/users/haimivan/repos","events_url":"https://api.github.com/users/haimivan/events{/privacy}","received_events_url":"https://api.github.com/users/haimivan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-31T03:28:26Z","updated_at":"2018-03-31T09:08:42Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI create a market order outside of trading hours. \r\nI can see that the order is created in `backtrader-oandav20`, and gets received by OANDA. \r\nI can see in the OANDA web trading platform, that the order gets immediately cancelled by OANDA:\r\n\r\n```\r\nTicket\tType\tMarket\tUnits\tPrice\tHalf Spread Cost\tProfit (EUR)\tCommission\tBalance\tDate / Time\r\n384\tOrder Cancelled\t\t-\t-\t-\t-\t-\t-\t3/31/2018, 5:13:16 AM\r\n383\tMarket Order\tEUR/USD\t10\t-\t-\t-\t-\t-\t3/31/2018, 5:13:16 AM\r\n```\r\n\r\nBut I do not receive a notification in `backtrader-oandav20`. I would expect that somehow I get notified about that in `notify_order()`, but this is not the case.\r\n\r\nIs this related to `backtrader-oandav20` or is this the way how `backtrader` works in general (as we do not get new data outside of trading hours)?"},"comment":{"url":"https://api.github.com/repos/ftomassetti/backtrader-oandav20/issues/comments/377678710","html_url":"https://github.com/ftomassetti/backtrader-oandav20/issues/14#issuecomment-377678710","issue_url":"https://api.github.com/repos/ftomassetti/backtrader-oandav20/issues/14","id":377678710,"user":{"login":"haimivan","id":10325765,"avatar_url":"https://avatars1.githubusercontent.com/u/10325765?v=4","gravatar_id":"","url":"https://api.github.com/users/haimivan","html_url":"https://github.com/haimivan","followers_url":"https://api.github.com/users/haimivan/followers","following_url":"https://api.github.com/users/haimivan/following{/other_user}","gists_url":"https://api.github.com/users/haimivan/gists{/gist_id}","starred_url":"https://api.github.com/users/haimivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haimivan/subscriptions","organizations_url":"https://api.github.com/users/haimivan/orgs","repos_url":"https://api.github.com/users/haimivan/repos","events_url":"https://api.github.com/users/haimivan/events{/privacy}","received_events_url":"https://api.github.com/users/haimivan/received_events","type":"User","site_admin":false},"created_at":"2018-03-31T09:08:42Z","updated_at":"2018-03-31T09:08:42Z","author_association":"NONE","body":"Hi,\r\n\r\nI just found the backtrader parameter `quicknotify`.\r\n\r\nWith the following change in `oandav20test.py`, I get a notification immediately:\r\n\r\n        # Live data ... avoid long data accumulation by switching to \"exactbars\"\r\n        # cerebro.run(exactbars=args.exactbars)\r\n        cerebro.run(exactbars=args.exactbars,\r\n                    quicknotify=True\r\n                    )\r\n\r\nFrom my point of view, you can close the issue. \r\n\r\n==========\r\nReferences:\r\nhttps://www.backtrader.com/docu/cerebro.html\r\n"}}
{"actor":{"display_login":"haimivan"}}