{"action":"closed","number":140,"pull_request":{"url":"https://api.github.com/repos/quantopian/pyfolio/pulls/140","id":44864375,"html_url":"https://github.com/quantopian/pyfolio/pull/140","diff_url":"https://github.com/quantopian/pyfolio/pull/140.diff","patch_url":"https://github.com/quantopian/pyfolio/pull/140.patch","issue_url":"https://api.github.com/repos/quantopian/pyfolio/issues/140","number":140,"state":"closed","locked":false,"title":"MAINT Make long/short positions match gross leverage","user":{"login":"humdings","id":4993812,"avatar_url":"https://avatars.githubusercontent.com/u/4993812?v=3","gravatar_id":"","url":"https://api.github.com/users/humdings","html_url":"https://github.com/humdings","followers_url":"https://api.github.com/users/humdings/followers","following_url":"https://api.github.com/users/humdings/following{/other_user}","gists_url":"https://api.github.com/users/humdings/gists{/gist_id}","starred_url":"https://api.github.com/users/humdings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humdings/subscriptions","organizations_url":"https://api.github.com/users/humdings/orgs","repos_url":"https://api.github.com/users/humdings/repos","events_url":"https://api.github.com/users/humdings/events{/privacy}","received_events_url":"https://api.github.com/users/humdings/received_events","type":"User","site_admin":false},"body":"This makes `pos.get_long_short_pos` return a dataframe\r\nthat matches the gross leverage of the portfolio.\r\n\r\nI removed the `gross_lev` argument since the leverage is\r\ndependent on positions dataframe.\r\n\r\nThis PR is addressing https://github.com/quantopian/pyfolio/issues/30","created_at":"2015-09-13T00:50:32Z","updated_at":"2015-09-24T13:35:10Z","closed_at":"2015-09-24T13:35:10Z","merged_at":null,"merge_commit_sha":"b63bbc9f7c84b17364f556740a5f6cbb9662c7e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/quantopian/pyfolio/pulls/140/commits","review_comments_url":"https://api.github.com/repos/quantopian/pyfolio/pulls/140/comments","review_comment_url":"https://api.github.com/repos/quantopian/pyfolio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quantopian/pyfolio/issues/140/comments","statuses_url":"https://api.github.com/repos/quantopian/pyfolio/statuses/d3aaee2bc185253628ba11a3d10513feba89d92c","head":{"label":"quantopian:long_short_cash_investigation","ref":"long_short_cash_investigation","sha":"d3aaee2bc185253628ba11a3d10513feba89d92c","user":{"login":"quantopian","id":1393215,"avatar_url":"https://avatars.githubusercontent.com/u/1393215?v=3","gravatar_id":"","url":"https://api.github.com/users/quantopian","html_url":"https://github.com/quantopian","followers_url":"https://api.github.com/users/quantopian/followers","following_url":"https://api.github.com/users/quantopian/following{/other_user}","gists_url":"https://api.github.com/users/quantopian/gists{/gist_id}","starred_url":"https://api.github.com/users/quantopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantopian/subscriptions","organizations_url":"https://api.github.com/users/quantopian/orgs","repos_url":"https://api.github.com/users/quantopian/repos","events_url":"https://api.github.com/users/quantopian/events{/privacy}","received_events_url":"https://api.github.com/users/quantopian/received_events","type":"Organization","site_admin":false},"repo":{"id":36670205,"name":"pyfolio","full_name":"quantopian/pyfolio","owner":{"login":"quantopian","id":1393215,"avatar_url":"https://avatars.githubusercontent.com/u/1393215?v=3","gravatar_id":"","url":"https://api.github.com/users/quantopian","html_url":"https://github.com/quantopian","followers_url":"https://api.github.com/users/quantopian/followers","following_url":"https://api.github.com/users/quantopian/following{/other_user}","gists_url":"https://api.github.com/users/quantopian/gists{/gist_id}","starred_url":"https://api.github.com/users/quantopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantopian/subscriptions","organizations_url":"https://api.github.com/users/quantopian/orgs","repos_url":"https://api.github.com/users/quantopian/repos","events_url":"https://api.github.com/users/quantopian/events{/privacy}","received_events_url":"https://api.github.com/users/quantopian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quantopian/pyfolio","description":"Portfolio and risk analytics in Python","fork":false,"url":"https://api.github.com/repos/quantopian/pyfolio","forks_url":"https://api.github.com/repos/quantopian/pyfolio/forks","keys_url":"https://api.github.com/repos/quantopian/pyfolio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantopian/pyfolio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantopian/pyfolio/teams","hooks_url":"https://api.github.com/repos/quantopian/pyfolio/hooks","issue_events_url":"https://api.github.com/repos/quantopian/pyfolio/issues/events{/number}","events_url":"https://api.github.com/repos/quantopian/pyfolio/events","assignees_url":"https://api.github.com/repos/quantopian/pyfolio/assignees{/user}","branches_url":"https://api.github.com/repos/quantopian/pyfolio/branches{/branch}","tags_url":"https://api.github.com/repos/quantopian/pyfolio/tags","blobs_url":"https://api.github.com/repos/quantopian/pyfolio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantopian/pyfolio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantopian/pyfolio/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantopian/pyfolio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantopian/pyfolio/statuses/{sha}","languages_url":"https://api.github.com/repos/quantopian/pyfolio/languages","stargazers_url":"https://api.github.com/repos/quantopian/pyfolio/stargazers","contributors_url":"https://api.github.com/repos/quantopian/pyfolio/contributors","subscribers_url":"https://api.github.com/repos/quantopian/pyfolio/subscribers","subscription_url":"https://api.github.com/repos/quantopian/pyfolio/subscription","commits_url":"https://api.github.com/repos/quantopian/pyfolio/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantopian/pyfolio/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantopian/pyfolio/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantopian/pyfolio/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantopian/pyfolio/contents/{+path}","compare_url":"https://api.github.com/repos/quantopian/pyfolio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantopian/pyfolio/merges","archive_url":"https://api.github.com/repos/quantopian/pyfolio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantopian/pyfolio/downloads","issues_url":"https://api.github.com/repos/quantopian/pyfolio/issues{/number}","pulls_url":"https://api.github.com/repos/quantopian/pyfolio/pulls{/number}","milestones_url":"https://api.github.com/repos/quantopian/pyfolio/milestones{/number}","notifications_url":"https://api.github.com/repos/quantopian/pyfolio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantopian/pyfolio/labels{/name}","releases_url":"https://api.github.com/repos/quantopian/pyfolio/releases{/id}","created_at":"2015-06-01T15:31:39Z","updated_at":"2015-09-24T12:35:18Z","pushed_at":"2015-09-23T23:02:21Z","git_url":"git://github.com/quantopian/pyfolio.git","ssh_url":"git@github.com:quantopian/pyfolio.git","clone_url":"https://github.com/quantopian/pyfolio.git","svn_url":"https://github.com/quantopian/pyfolio","homepage":"http://quantopian.github.io/pyfolio","size":31493,"stargazers_count":283,"watchers_count":283,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":37,"forks":31,"open_issues":37,"watchers":283,"default_branch":"master"}},"base":{"label":"quantopian:master","ref":"master","sha":"4fcc48aee6f0c91267af99b8e2a1e72ba1353b28","user":{"login":"quantopian","id":1393215,"avatar_url":"https://avatars.githubusercontent.com/u/1393215?v=3","gravatar_id":"","url":"https://api.github.com/users/quantopian","html_url":"https://github.com/quantopian","followers_url":"https://api.github.com/users/quantopian/followers","following_url":"https://api.github.com/users/quantopian/following{/other_user}","gists_url":"https://api.github.com/users/quantopian/gists{/gist_id}","starred_url":"https://api.github.com/users/quantopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantopian/subscriptions","organizations_url":"https://api.github.com/users/quantopian/orgs","repos_url":"https://api.github.com/users/quantopian/repos","events_url":"https://api.github.com/users/quantopian/events{/privacy}","received_events_url":"https://api.github.com/users/quantopian/received_events","type":"Organization","site_admin":false},"repo":{"id":36670205,"name":"pyfolio","full_name":"quantopian/pyfolio","owner":{"login":"quantopian","id":1393215,"avatar_url":"https://avatars.githubusercontent.com/u/1393215?v=3","gravatar_id":"","url":"https://api.github.com/users/quantopian","html_url":"https://github.com/quantopian","followers_url":"https://api.github.com/users/quantopian/followers","following_url":"https://api.github.com/users/quantopian/following{/other_user}","gists_url":"https://api.github.com/users/quantopian/gists{/gist_id}","starred_url":"https://api.github.com/users/quantopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantopian/subscriptions","organizations_url":"https://api.github.com/users/quantopian/orgs","repos_url":"https://api.github.com/users/quantopian/repos","events_url":"https://api.github.com/users/quantopian/events{/privacy}","received_events_url":"https://api.github.com/users/quantopian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quantopian/pyfolio","description":"Portfolio and risk analytics in Python","fork":false,"url":"https://api.github.com/repos/quantopian/pyfolio","forks_url":"https://api.github.com/repos/quantopian/pyfolio/forks","keys_url":"https://api.github.com/repos/quantopian/pyfolio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantopian/pyfolio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantopian/pyfolio/teams","hooks_url":"https://api.github.com/repos/quantopian/pyfolio/hooks","issue_events_url":"https://api.github.com/repos/quantopian/pyfolio/issues/events{/number}","events_url":"https://api.github.com/repos/quantopian/pyfolio/events","assignees_url":"https://api.github.com/repos/quantopian/pyfolio/assignees{/user}","branches_url":"https://api.github.com/repos/quantopian/pyfolio/branches{/branch}","tags_url":"https://api.github.com/repos/quantopian/pyfolio/tags","blobs_url":"https://api.github.com/repos/quantopian/pyfolio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantopian/pyfolio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantopian/pyfolio/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantopian/pyfolio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantopian/pyfolio/statuses/{sha}","languages_url":"https://api.github.com/repos/quantopian/pyfolio/languages","stargazers_url":"https://api.github.com/repos/quantopian/pyfolio/stargazers","contributors_url":"https://api.github.com/repos/quantopian/pyfolio/contributors","subscribers_url":"https://api.github.com/repos/quantopian/pyfolio/subscribers","subscription_url":"https://api.github.com/repos/quantopian/pyfolio/subscription","commits_url":"https://api.github.com/repos/quantopian/pyfolio/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantopian/pyfolio/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantopian/pyfolio/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantopian/pyfolio/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantopian/pyfolio/contents/{+path}","compare_url":"https://api.github.com/repos/quantopian/pyfolio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantopian/pyfolio/merges","archive_url":"https://api.github.com/repos/quantopian/pyfolio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantopian/pyfolio/downloads","issues_url":"https://api.github.com/repos/quantopian/pyfolio/issues{/number}","pulls_url":"https://api.github.com/repos/quantopian/pyfolio/pulls{/number}","milestones_url":"https://api.github.com/repos/quantopian/pyfolio/milestones{/number}","notifications_url":"https://api.github.com/repos/quantopian/pyfolio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantopian/pyfolio/labels{/name}","releases_url":"https://api.github.com/repos/quantopian/pyfolio/releases{/id}","created_at":"2015-06-01T15:31:39Z","updated_at":"2015-09-24T12:35:18Z","pushed_at":"2015-09-23T23:02:21Z","git_url":"git://github.com/quantopian/pyfolio.git","ssh_url":"git@github.com:quantopian/pyfolio.git","clone_url":"https://github.com/quantopian/pyfolio.git","svn_url":"https://github.com/quantopian/pyfolio","homepage":"http://quantopian.github.io/pyfolio","size":31493,"stargazers_count":283,"watchers_count":283,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":37,"forks":31,"open_issues":37,"watchers":283,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quantopian/pyfolio/pulls/140"},"html":{"href":"https://github.com/quantopian/pyfolio/pull/140"},"issue":{"href":"https://api.github.com/repos/quantopian/pyfolio/issues/140"},"comments":{"href":"https://api.github.com/repos/quantopian/pyfolio/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/quantopian/pyfolio/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/quantopian/pyfolio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quantopian/pyfolio/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/quantopian/pyfolio/statuses/d3aaee2bc185253628ba11a3d10513feba89d92c"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":21,"review_comments":0,"commits":3,"additions":73,"deletions":30,"changed_files":3}}