{"action":"created","comment":{"url":"https://api.github.com/repos/shobrook/BitVision/pulls/comments/201209176","pull_request_review_id":135664565,"id":201209176,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTIwOTE3Ng==","diff_hunk":"@@ -15,126 +15,160 @@\n CONFIG = configparser.ConfigParser()\n CONFIG.read(\"config.ini\")\n \n-\n #########\n # HELPERS\n #########\n \n+# BitVision Command Line Trading Platform\n+# Aaron Lichtman and Jon Shobrook\n \n-def login():\n+import os\n+import sys\n+import urwid\n+\n+# Place Your Own Trade is not shown until Trading Deactivated.\n+choices = [\"Activate/Deactivate Automated Trading\", \"Deposit/Withdraw Money\", \"Place Your Own Trade\"]\n+\n+\n+def menu(title, choices):\n+\t\"\"\"\n+    Make a menu with choices displayed.\n     \"\"\"\n+\tbody = [urwid.Text(title), urwid.Divider()]\n+\tfor c in choices:\n+\t\tbutton = urwid.Button(c)\n+\t\turwid.connect_signal(button, 'click', item_chosen, c)\n+\t\tbody.append(urwid.AttrMap(button, None, focus_map='reversed'))\n+\treturn urwid.ListBox(urwid.SimpleFocusListWalker(body))\n+\n+\n+def item_chosen(button, choice):\n+\tresponse = urwid.Text([u'You chose ', choice, u'\\n'])\n+\tdone = urwid.Button(u'Ok')\n+\turwid.connect_signal(done, 'click', exit_program)\n+\tmain.original_widget = urwid.Filler(urwid.Pile([response,\n+\t                                                urwid.AttrMap(done, None, focus_map='reversed')]))\n+\n+\n+def exit_program(button):\n+\traise urwid.ExitMainLoop()\n+\n+\n+def login():\n+\t\"\"\"\n     Prompts the user for their GDAX API key, secret, and passphrase before\n     logging into the trading system.\n \n     @return: authenticated GDAX Client object\n     \"\"\"\n \n-    # TODO: Add a helper message with GDAX instructions and a security disclaimer\n+\t# TODO: Add a helper message with GDAX instructions and a security disclaimer","path":"bitvision/bitvision.py","position":54,"original_position":54,"commit_id":"44a8be4b6d6f89fdb9188f3e2be67cfb22ae941a","original_commit_id":"729f4fd13559b3f31830521fd02e05d35cfe3df1","user":{"login":"alichtman","id":20600565,"node_id":"MDQ6VXNlcjIwNjAwNTY1","avatar_url":"https://avatars2.githubusercontent.com/u/20600565?v=4","gravatar_id":"","url":"https://api.github.com/users/alichtman","html_url":"https://github.com/alichtman","followers_url":"https://api.github.com/users/alichtman/followers","following_url":"https://api.github.com/users/alichtman/following{/other_user}","gists_url":"https://api.github.com/users/alichtman/gists{/gist_id}","starred_url":"https://api.github.com/users/alichtman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alichtman/subscriptions","organizations_url":"https://api.github.com/users/alichtman/orgs","repos_url":"https://api.github.com/users/alichtman/repos","events_url":"https://api.github.com/users/alichtman/events{/privacy}","received_events_url":"https://api.github.com/users/alichtman/received_events","type":"User","site_admin":false},"body":"Looks fine on my editor. Not sure.","created_at":"2018-07-10T03:35:40Z","updated_at":"2018-07-10T03:35:41Z","html_url":"https://github.com/shobrook/BitVision/pull/89#discussion_r201209176","pull_request_url":"https://api.github.com/repos/shobrook/BitVision/pulls/89","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/shobrook/BitVision/pulls/comments/201209176"},"html":{"href":"https://github.com/shobrook/BitVision/pull/89#discussion_r201209176"},"pull_request":{"href":"https://api.github.com/repos/shobrook/BitVision/pulls/89"}},"in_reply_to_id":199380243},"pull_request":{"url":"https://api.github.com/repos/shobrook/BitVision/pulls/89","id":198524277,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NTI0Mjc3","html_url":"https://github.com/shobrook/BitVision/pull/89","diff_url":"https://github.com/shobrook/BitVision/pull/89.diff","patch_url":"https://github.com/shobrook/BitVision/pull/89.patch","issue_url":"https://api.github.com/repos/shobrook/BitVision/issues/89","number":89,"state":"open","locked":false,"title":"Started CPR on this codebase","user":{"login":"alichtman","id":20600565,"node_id":"MDQ6VXNlcjIwNjAwNTY1","avatar_url":"https://avatars2.githubusercontent.com/u/20600565?v=4","gravatar_id":"","url":"https://api.github.com/users/alichtman","html_url":"https://github.com/alichtman","followers_url":"https://api.github.com/users/alichtman/followers","following_url":"https://api.github.com/users/alichtman/following{/other_user}","gists_url":"https://api.github.com/users/alichtman/gists{/gist_id}","starred_url":"https://api.github.com/users/alichtman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alichtman/subscriptions","organizations_url":"https://api.github.com/users/alichtman/orgs","repos_url":"https://api.github.com/users/alichtman/repos","events_url":"https://api.github.com/users/alichtman/events{/privacy}","received_events_url":"https://api.github.com/users/alichtman/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-01T13:25:33Z","updated_at":"2018-07-10T03:35:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6770209693bf2f2651d83b992d90114fbe634e4d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shobrook/BitVision/pulls/89/commits","review_comments_url":"https://api.github.com/repos/shobrook/BitVision/pulls/89/comments","review_comment_url":"https://api.github.com/repos/shobrook/BitVision/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shobrook/BitVision/issues/89/comments","statuses_url":"https://api.github.com/repos/shobrook/BitVision/statuses/44a8be4b6d6f89fdb9188f3e2be67cfb22ae941a","head":{"label":"shobrook:cli","ref":"cli","sha":"44a8be4b6d6f89fdb9188f3e2be67cfb22ae941a","user":{"login":"shobrook","id":18684735,"node_id":"MDQ6VXNlcjE4Njg0NzM1","avatar_url":"https://avatars3.githubusercontent.com/u/18684735?v=4","gravatar_id":"","url":"https://api.github.com/users/shobrook","html_url":"https://github.com/shobrook","followers_url":"https://api.github.com/users/shobrook/followers","following_url":"https://api.github.com/users/shobrook/following{/other_user}","gists_url":"https://api.github.com/users/shobrook/gists{/gist_id}","starred_url":"https://api.github.com/users/shobrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shobrook/subscriptions","organizations_url":"https://api.github.com/users/shobrook/orgs","repos_url":"https://api.github.com/users/shobrook/repos","events_url":"https://api.github.com/users/shobrook/events{/privacy}","received_events_url":"https://api.github.com/users/shobrook/received_events","type":"User","site_admin":false},"repo":{"id":116112485,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYxMTI0ODU=","name":"BitVision","full_name":"shobrook/BitVision","owner":{"login":"shobrook","id":18684735,"node_id":"MDQ6VXNlcjE4Njg0NzM1","avatar_url":"https://avatars3.githubusercontent.com/u/18684735?v=4","gravatar_id":"","url":"https://api.github.com/users/shobrook","html_url":"https://github.com/shobrook","followers_url":"https://api.github.com/users/shobrook/followers","following_url":"https://api.github.com/users/shobrook/following{/other_user}","gists_url":"https://api.github.com/users/shobrook/gists{/gist_id}","starred_url":"https://api.github.com/users/shobrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shobrook/subscriptions","organizations_url":"https://api.github.com/users/shobrook/orgs","repos_url":"https://api.github.com/users/shobrook/repos","events_url":"https://api.github.com/users/shobrook/events{/privacy}","received_events_url":"https://api.github.com/users/shobrook/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shobrook/BitVision","description":"Bitcoin trading CLI that uses deep learning to predict price movements","fork":false,"url":"https://api.github.com/repos/shobrook/BitVision","forks_url":"https://api.github.com/repos/shobrook/BitVision/forks","keys_url":"https://api.github.com/repos/shobrook/BitVision/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shobrook/BitVision/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shobrook/BitVision/teams","hooks_url":"https://api.github.com/repos/shobrook/BitVision/hooks","issue_events_url":"https://api.github.com/repos/shobrook/BitVision/issues/events{/number}","events_url":"https://api.github.com/repos/shobrook/BitVision/events","assignees_url":"https://api.github.com/repos/shobrook/BitVision/assignees{/user}","branches_url":"https://api.github.com/repos/shobrook/BitVision/branches{/branch}","tags_url":"https://api.github.com/repos/shobrook/BitVision/tags","blobs_url":"https://api.github.com/repos/shobrook/BitVision/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shobrook/BitVision/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shobrook/BitVision/git/refs{/sha}","trees_url":"https://api.github.com/repos/shobrook/BitVision/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shobrook/BitVision/statuses/{sha}","languages_url":"https://api.github.com/repos/shobrook/BitVision/languages","stargazers_url":"https://api.github.com/repos/shobrook/BitVision/stargazers","contributors_url":"https://api.github.com/repos/shobrook/BitVision/contributors","subscribers_url":"https://api.github.com/repos/shobrook/BitVision/subscribers","subscription_url":"https://api.github.com/repos/shobrook/BitVision/subscription","commits_url":"https://api.github.com/repos/shobrook/BitVision/commits{/sha}","git_commits_url":"https://api.github.com/repos/shobrook/BitVision/git/commits{/sha}","comments_url":"https://api.github.com/repos/shobrook/BitVision/comments{/number}","issue_comment_url":"https://api.github.com/repos/shobrook/BitVision/issues/comments{/number}","contents_url":"https://api.github.com/repos/shobrook/BitVision/contents/{+path}","compare_url":"https://api.github.com/repos/shobrook/BitVision/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shobrook/BitVision/merges","archive_url":"https://api.github.com/repos/shobrook/BitVision/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shobrook/BitVision/downloads","issues_url":"https://api.github.com/repos/shobrook/BitVision/issues{/number}","pulls_url":"https://api.github.com/repos/shobrook/BitVision/pulls{/number}","milestones_url":"https://api.github.com/repos/shobrook/BitVision/milestones{/number}","notifications_url":"https://api.github.com/repos/shobrook/BitVision/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shobrook/BitVision/labels{/name}","releases_url":"https://api.github.com/repos/shobrook/BitVision/releases{/id}","deployments_url":"https://api.github.com/repos/shobrook/BitVision/deployments","created_at":"2018-01-03T08:33:25Z","updated_at":"2018-06-29T18:39:19Z","pushed_at":"2018-07-10T03:32:47Z","git_url":"git://github.com/shobrook/BitVision.git","ssh_url":"git@github.com:shobrook/BitVision.git","clone_url":"https://github.com/shobrook/BitVision.git","svn_url":"https://github.com/shobrook/BitVision","homepage":"","size":61096,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":8,"watchers":15,"default_branch":"master"}},"base":{"label":"shobrook:master","ref":"master","sha":"d8f2eaa5b730b5fb6bc5eabe28c37b1cee6772a2","user":{"login":"shobrook","id":18684735,"node_id":"MDQ6VXNlcjE4Njg0NzM1","avatar_url":"https://avatars3.githubusercontent.com/u/18684735?v=4","gravatar_id":"","url":"https://api.github.com/users/shobrook","html_url":"https://github.com/shobrook","followers_url":"https://api.github.com/users/shobrook/followers","following_url":"https://api.github.com/users/shobrook/following{/other_user}","gists_url":"https://api.github.com/users/shobrook/gists{/gist_id}","starred_url":"https://api.github.com/users/shobrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shobrook/subscriptions","organizations_url":"https://api.github.com/users/shobrook/orgs","repos_url":"https://api.github.com/users/shobrook/repos","events_url":"https://api.github.com/users/shobrook/events{/privacy}","received_events_url":"https://api.github.com/users/shobrook/received_events","type":"User","site_admin":false},"repo":{"id":116112485,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYxMTI0ODU=","name":"BitVision","full_name":"shobrook/BitVision","owner":{"login":"shobrook","id":18684735,"node_id":"MDQ6VXNlcjE4Njg0NzM1","avatar_url":"https://avatars3.githubusercontent.com/u/18684735?v=4","gravatar_id":"","url":"https://api.github.com/users/shobrook","html_url":"https://github.com/shobrook","followers_url":"https://api.github.com/users/shobrook/followers","following_url":"https://api.github.com/users/shobrook/following{/other_user}","gists_url":"https://api.github.com/users/shobrook/gists{/gist_id}","starred_url":"https://api.github.com/users/shobrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shobrook/subscriptions","organizations_url":"https://api.github.com/users/shobrook/orgs","repos_url":"https://api.github.com/users/shobrook/repos","events_url":"https://api.github.com/users/shobrook/events{/privacy}","received_events_url":"https://api.github.com/users/shobrook/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shobrook/BitVision","description":"Bitcoin trading CLI that uses deep learning to predict price movements","fork":false,"url":"https://api.github.com/repos/shobrook/BitVision","forks_url":"https://api.github.com/repos/shobrook/BitVision/forks","keys_url":"https://api.github.com/repos/shobrook/BitVision/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shobrook/BitVision/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shobrook/BitVision/teams","hooks_url":"https://api.github.com/repos/shobrook/BitVision/hooks","issue_events_url":"https://api.github.com/repos/shobrook/BitVision/issues/events{/number}","events_url":"https://api.github.com/repos/shobrook/BitVision/events","assignees_url":"https://api.github.com/repos/shobrook/BitVision/assignees{/user}","branches_url":"https://api.github.com/repos/shobrook/BitVision/branches{/branch}","tags_url":"https://api.github.com/repos/shobrook/BitVision/tags","blobs_url":"https://api.github.com/repos/shobrook/BitVision/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shobrook/BitVision/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shobrook/BitVision/git/refs{/sha}","trees_url":"https://api.github.com/repos/shobrook/BitVision/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shobrook/BitVision/statuses/{sha}","languages_url":"https://api.github.com/repos/shobrook/BitVision/languages","stargazers_url":"https://api.github.com/repos/shobrook/BitVision/stargazers","contributors_url":"https://api.github.com/repos/shobrook/BitVision/contributors","subscribers_url":"https://api.github.com/repos/shobrook/BitVision/subscribers","subscription_url":"https://api.github.com/repos/shobrook/BitVision/subscription","commits_url":"https://api.github.com/repos/shobrook/BitVision/commits{/sha}","git_commits_url":"https://api.github.com/repos/shobrook/BitVision/git/commits{/sha}","comments_url":"https://api.github.com/repos/shobrook/BitVision/comments{/number}","issue_comment_url":"https://api.github.com/repos/shobrook/BitVision/issues/comments{/number}","contents_url":"https://api.github.com/repos/shobrook/BitVision/contents/{+path}","compare_url":"https://api.github.com/repos/shobrook/BitVision/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shobrook/BitVision/merges","archive_url":"https://api.github.com/repos/shobrook/BitVision/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shobrook/BitVision/downloads","issues_url":"https://api.github.com/repos/shobrook/BitVision/issues{/number}","pulls_url":"https://api.github.com/repos/shobrook/BitVision/pulls{/number}","milestones_url":"https://api.github.com/repos/shobrook/BitVision/milestones{/number}","notifications_url":"https://api.github.com/repos/shobrook/BitVision/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shobrook/BitVision/labels{/name}","releases_url":"https://api.github.com/repos/shobrook/BitVision/releases{/id}","deployments_url":"https://api.github.com/repos/shobrook/BitVision/deployments","created_at":"2018-01-03T08:33:25Z","updated_at":"2018-06-29T18:39:19Z","pushed_at":"2018-07-10T03:32:47Z","git_url":"git://github.com/shobrook/BitVision.git","ssh_url":"git@github.com:shobrook/BitVision.git","clone_url":"https://github.com/shobrook/BitVision.git","svn_url":"https://github.com/shobrook/BitVision","homepage":"","size":61096,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":8,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shobrook/BitVision/pulls/89"},"html":{"href":"https://github.com/shobrook/BitVision/pull/89"},"issue":{"href":"https://api.github.com/repos/shobrook/BitVision/issues/89"},"comments":{"href":"https://api.github.com/repos/shobrook/BitVision/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/shobrook/BitVision/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/shobrook/BitVision/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shobrook/BitVision/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/shobrook/BitVision/statuses/44a8be4b6d6f89fdb9188f3e2be67cfb22ae941a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"alichtman"}}