{"action":"created","comment":{"url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments/203904680","pull_request_review_id":138889765,"id":203904680,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzkwNDY4MA==","diff_hunk":"@@ -89,7 +90,8 @@ def run(self, initial_channels=[]):\n         '''Run forever and block until exception is rasised.\n         initial_channels is the channels to start with.\n         '''\n-        loop = asyncio.get_event_loop()\n+        loop = asyncio.new_event_loop()","path":"alpaca_trade_api/stream2.py","position":15,"original_position":15,"commit_id":"e5a9ebcf9a5b7d2076495c40d87360179419cbbc","original_commit_id":"e5a9ebcf9a5b7d2076495c40d87360179419cbbc","user":{"login":"umitanuki","id":33334,"node_id":"MDQ6VXNlcjMzMzM0","avatar_url":"https://avatars3.githubusercontent.com/u/33334?v=4","gravatar_id":"","url":"https://api.github.com/users/umitanuki","html_url":"https://github.com/umitanuki","followers_url":"https://api.github.com/users/umitanuki/followers","following_url":"https://api.github.com/users/umitanuki/following{/other_user}","gists_url":"https://api.github.com/users/umitanuki/gists{/gist_id}","starred_url":"https://api.github.com/users/umitanuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umitanuki/subscriptions","organizations_url":"https://api.github.com/users/umitanuki/orgs","repos_url":"https://api.github.com/users/umitanuki/repos","events_url":"https://api.github.com/users/umitanuki/events{/privacy}","received_events_url":"https://api.github.com/users/umitanuki/received_events","type":"User","site_admin":false},"body":"Hmm I don't think this works in the normal case aka main thread.","created_at":"2018-07-19T23:47:26Z","updated_at":"2018-07-19T23:47:26Z","html_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/22#discussion_r203904680","pull_request_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments/203904680"},"html":{"href":"https://github.com/alpacahq/alpaca-trade-api-python/pull/22#discussion_r203904680"},"pull_request":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22","id":202613825,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNjEzODI1","html_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/22","diff_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/22.diff","patch_url":"https://github.com/alpacahq/alpaca-trade-api-python/pull/22.patch","issue_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/22","number":22,"state":"open","locked":false,"title":"staging support","user":{"login":"smartchris84","id":34967174,"node_id":"MDQ6VXNlcjM0OTY3MTc0","avatar_url":"https://avatars3.githubusercontent.com/u/34967174?v=4","gravatar_id":"","url":"https://api.github.com/users/smartchris84","html_url":"https://github.com/smartchris84","followers_url":"https://api.github.com/users/smartchris84/followers","following_url":"https://api.github.com/users/smartchris84/following{/other_user}","gists_url":"https://api.github.com/users/smartchris84/gists{/gist_id}","starred_url":"https://api.github.com/users/smartchris84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartchris84/subscriptions","organizations_url":"https://api.github.com/users/smartchris84/orgs","repos_url":"https://api.github.com/users/smartchris84/repos","events_url":"https://api.github.com/users/smartchris84/events{/privacy}","received_events_url":"https://api.github.com/users/smartchris84/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-19T16:17:53Z","updated_at":"2018-07-19T23:47:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"565770594c48234f0c501bc19742d7ad3049fd64","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22/commits","review_comments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22/comments","review_comment_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/22/comments","statuses_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/statuses/e5a9ebcf9a5b7d2076495c40d87360179419cbbc","head":{"label":"smartchris84:master","ref":"master","sha":"e5a9ebcf9a5b7d2076495c40d87360179419cbbc","user":{"login":"smartchris84","id":34967174,"node_id":"MDQ6VXNlcjM0OTY3MTc0","avatar_url":"https://avatars3.githubusercontent.com/u/34967174?v=4","gravatar_id":"","url":"https://api.github.com/users/smartchris84","html_url":"https://github.com/smartchris84","followers_url":"https://api.github.com/users/smartchris84/followers","following_url":"https://api.github.com/users/smartchris84/following{/other_user}","gists_url":"https://api.github.com/users/smartchris84/gists{/gist_id}","starred_url":"https://api.github.com/users/smartchris84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartchris84/subscriptions","organizations_url":"https://api.github.com/users/smartchris84/orgs","repos_url":"https://api.github.com/users/smartchris84/repos","events_url":"https://api.github.com/users/smartchris84/events{/privacy}","received_events_url":"https://api.github.com/users/smartchris84/received_events","type":"User","site_admin":false},"repo":{"id":141602311,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2MDIzMTE=","name":"alpaca-trade-api-python","full_name":"smartchris84/alpaca-trade-api-python","owner":{"login":"smartchris84","id":34967174,"node_id":"MDQ6VXNlcjM0OTY3MTc0","avatar_url":"https://avatars3.githubusercontent.com/u/34967174?v=4","gravatar_id":"","url":"https://api.github.com/users/smartchris84","html_url":"https://github.com/smartchris84","followers_url":"https://api.github.com/users/smartchris84/followers","following_url":"https://api.github.com/users/smartchris84/following{/other_user}","gists_url":"https://api.github.com/users/smartchris84/gists{/gist_id}","starred_url":"https://api.github.com/users/smartchris84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartchris84/subscriptions","organizations_url":"https://api.github.com/users/smartchris84/orgs","repos_url":"https://api.github.com/users/smartchris84/repos","events_url":"https://api.github.com/users/smartchris84/events{/privacy}","received_events_url":"https://api.github.com/users/smartchris84/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smartchris84/alpaca-trade-api-python","description":"Python client for Alpaca's trade API","fork":true,"url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python","forks_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/forks","keys_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/teams","hooks_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/hooks","issue_events_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/issues/events{/number}","events_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/events","assignees_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/assignees{/user}","branches_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/branches{/branch}","tags_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/tags","blobs_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/statuses/{sha}","languages_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/languages","stargazers_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/stargazers","contributors_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/contributors","subscribers_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/subscribers","subscription_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/subscription","commits_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/contents/{+path}","compare_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/merges","archive_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/downloads","issues_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/issues{/number}","pulls_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/pulls{/number}","milestones_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/milestones{/number}","notifications_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/labels{/name}","releases_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/releases{/id}","deployments_url":"https://api.github.com/repos/smartchris84/alpaca-trade-api-python/deployments","created_at":"2018-07-19T16:01:00Z","updated_at":"2018-07-19T16:16:39Z","pushed_at":"2018-07-19T16:16:37Z","git_url":"git://github.com/smartchris84/alpaca-trade-api-python.git","ssh_url":"git@github.com:smartchris84/alpaca-trade-api-python.git","clone_url":"https://github.com/smartchris84/alpaca-trade-api-python.git","svn_url":"https://github.com/smartchris84/alpaca-trade-api-python","homepage":"","size":116,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alpacahq:master","ref":"master","sha":"4f7b330e8ffd15663ddf1e29b203380c60439d24","user":{"login":"alpacahq","id":30398729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMzk4NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/30398729?v=4","gravatar_id":"","url":"https://api.github.com/users/alpacahq","html_url":"https://github.com/alpacahq","followers_url":"https://api.github.com/users/alpacahq/followers","following_url":"https://api.github.com/users/alpacahq/following{/other_user}","gists_url":"https://api.github.com/users/alpacahq/gists{/gist_id}","starred_url":"https://api.github.com/users/alpacahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpacahq/subscriptions","organizations_url":"https://api.github.com/users/alpacahq/orgs","repos_url":"https://api.github.com/users/alpacahq/repos","events_url":"https://api.github.com/users/alpacahq/events{/privacy}","received_events_url":"https://api.github.com/users/alpacahq/received_events","type":"Organization","site_admin":false},"repo":{"id":124611126,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ2MTExMjY=","name":"alpaca-trade-api-python","full_name":"alpacahq/alpaca-trade-api-python","owner":{"login":"alpacahq","id":30398729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMzk4NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/30398729?v=4","gravatar_id":"","url":"https://api.github.com/users/alpacahq","html_url":"https://github.com/alpacahq","followers_url":"https://api.github.com/users/alpacahq/followers","following_url":"https://api.github.com/users/alpacahq/following{/other_user}","gists_url":"https://api.github.com/users/alpacahq/gists{/gist_id}","starred_url":"https://api.github.com/users/alpacahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpacahq/subscriptions","organizations_url":"https://api.github.com/users/alpacahq/orgs","repos_url":"https://api.github.com/users/alpacahq/repos","events_url":"https://api.github.com/users/alpacahq/events{/privacy}","received_events_url":"https://api.github.com/users/alpacahq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alpacahq/alpaca-trade-api-python","description":"Python client for Alpaca's trade API","fork":false,"url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python","forks_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/forks","keys_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/teams","hooks_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/hooks","issue_events_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/events{/number}","events_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/events","assignees_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/assignees{/user}","branches_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/branches{/branch}","tags_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/tags","blobs_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/statuses/{sha}","languages_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/languages","stargazers_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/stargazers","contributors_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/contributors","subscribers_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/subscribers","subscription_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/subscription","commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/contents/{+path}","compare_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/merges","archive_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/downloads","issues_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues{/number}","pulls_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls{/number}","milestones_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/milestones{/number}","notifications_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/labels{/name}","releases_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/releases{/id}","deployments_url":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/deployments","created_at":"2018-03-10T01:29:06Z","updated_at":"2018-07-06T14:36:29Z","pushed_at":"2018-07-19T16:17:54Z","git_url":"git://github.com/alpacahq/alpaca-trade-api-python.git","ssh_url":"git@github.com:alpacahq/alpaca-trade-api-python.git","clone_url":"https://github.com/alpacahq/alpaca-trade-api-python.git","svn_url":"https://github.com/alpacahq/alpaca-trade-api-python","homepage":"","size":111,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22"},"html":{"href":"https://github.com/alpacahq/alpaca-trade-api-python/pull/22"},"issue":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/22"},"comments":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/alpacahq/alpaca-trade-api-python/statuses/e5a9ebcf9a5b7d2076495c40d87360179419cbbc"}},"author_association":"NONE"}}
{"actor":{"display_login":"umitanuki"}}