{"action":"closed","number":1337,"pull_request":{"url":"https://api.github.com/repos/quantopian/zipline/pulls/1337","id":78210398,"html_url":"https://github.com/quantopian/zipline/pull/1337","diff_url":"https://github.com/quantopian/zipline/pull/1337.diff","patch_url":"https://github.com/quantopian/zipline/pull/1337.patch","issue_url":"https://api.github.com/repos/quantopian/zipline/issues/1337","number":1337,"state":"closed","locked":false,"title":"Capital Changes Refactoring","user":{"login":"lianga888","id":10404037,"avatar_url":"https://avatars.githubusercontent.com/u/10404037?v=3","gravatar_id":"","url":"https://api.github.com/users/lianga888","html_url":"https://github.com/lianga888","followers_url":"https://api.github.com/users/lianga888/followers","following_url":"https://api.github.com/users/lianga888/following{/other_user}","gists_url":"https://api.github.com/users/lianga888/gists{/gist_id}","starred_url":"https://api.github.com/users/lianga888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianga888/subscriptions","organizations_url":"https://api.github.com/users/lianga888/orgs","repos_url":"https://api.github.com/users/lianga888/repos","events_url":"https://api.github.com/users/lianga888/events{/privacy}","received_events_url":"https://api.github.com/users/lianga888/received_events","type":"User","site_admin":false},"body":"- Allow capital changes to be defined by a target value, in addition to the currently support input of deltas. The delta will be calculated on the portfolio value at the dt of the capital change\r\n- Refactor the checking, calculating and processing of capital changes to better support upstream processes","created_at":"2016-07-20T20:06:42Z","updated_at":"2016-07-25T14:54:34Z","closed_at":"2016-07-25T14:54:34Z","merged_at":"2016-07-25T14:54:34Z","merge_commit_sha":"2fe94d0c2964ef8f0913e9c64ddd1299224537a1","assignee":{"login":"jdricklefs","id":1045485,"avatar_url":"https://avatars.githubusercontent.com/u/1045485?v=3","gravatar_id":"","url":"https://api.github.com/users/jdricklefs","html_url":"https://github.com/jdricklefs","followers_url":"https://api.github.com/users/jdricklefs/followers","following_url":"https://api.github.com/users/jdricklefs/following{/other_user}","gists_url":"https://api.github.com/users/jdricklefs/gists{/gist_id}","starred_url":"https://api.github.com/users/jdricklefs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdricklefs/subscriptions","organizations_url":"https://api.github.com/users/jdricklefs/orgs","repos_url":"https://api.github.com/users/jdricklefs/repos","events_url":"https://api.github.com/users/jdricklefs/events{/privacy}","received_events_url":"https://api.github.com/users/jdricklefs/received_events","type":"User","site_admin":false},"assignees":[{"login":"jdricklefs","id":1045485,"avatar_url":"https://avatars.githubusercontent.com/u/1045485?v=3","gravatar_id":"","url":"https://api.github.com/users/jdricklefs","html_url":"https://github.com/jdricklefs","followers_url":"https://api.github.com/users/jdricklefs/followers","following_url":"https://api.github.com/users/jdricklefs/following{/other_user}","gists_url":"https://api.github.com/users/jdricklefs/gists{/gist_id}","starred_url":"https://api.github.com/users/jdricklefs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdricklefs/subscriptions","organizations_url":"https://api.github.com/users/jdricklefs/orgs","repos_url":"https://api.github.com/users/jdricklefs/repos","events_url":"https://api.github.com/users/jdricklefs/events{/privacy}","received_events_url":"https://api.github.com/users/jdricklefs/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/quantopian/zipline/pulls/1337/commits","review_comments_url":"https://api.github.com/repos/quantopian/zipline/pulls/1337/comments","review_comment_url":"https://api.github.com/repos/quantopian/zipline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quantopian/zipline/issues/1337/comments","statuses_url":"https://api.github.com/repos/quantopian/zipline/statuses/0955515c46058c1a9f4d7680a4dcc70d2c38241c","head":{"label":"quantopian:margin_changes","ref":"margin_changes","sha":"0955515c46058c1a9f4d7680a4dcc70d2c38241c","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":6297520,"name":"zipline","full_name":"quantopian/zipline","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/zipline","description":"Zipline, a Pythonic Algorithmic Trading Library","fork":false,"url":"https://api.github.com/repos/quantopian/zipline","forks_url":"https://api.github.com/repos/quantopian/zipline/forks","keys_url":"https://api.github.com/repos/quantopian/zipline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantopian/zipline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantopian/zipline/teams","hooks_url":"https://api.github.com/repos/quantopian/zipline/hooks","issue_events_url":"https://api.github.com/repos/quantopian/zipline/issues/events{/number}","events_url":"https://api.github.com/repos/quantopian/zipline/events","assignees_url":"https://api.github.com/repos/quantopian/zipline/assignees{/user}","branches_url":"https://api.github.com/repos/quantopian/zipline/branches{/branch}","tags_url":"https://api.github.com/repos/quantopian/zipline/tags","blobs_url":"https://api.github.com/repos/quantopian/zipline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantopian/zipline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantopian/zipline/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantopian/zipline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantopian/zipline/statuses/{sha}","languages_url":"https://api.github.com/repos/quantopian/zipline/languages","stargazers_url":"https://api.github.com/repos/quantopian/zipline/stargazers","contributors_url":"https://api.github.com/repos/quantopian/zipline/contributors","subscribers_url":"https://api.github.com/repos/quantopian/zipline/subscribers","subscription_url":"https://api.github.com/repos/quantopian/zipline/subscription","commits_url":"https://api.github.com/repos/quantopian/zipline/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantopian/zipline/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantopian/zipline/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantopian/zipline/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantopian/zipline/contents/{+path}","compare_url":"https://api.github.com/repos/quantopian/zipline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantopian/zipline/merges","archive_url":"https://api.github.com/repos/quantopian/zipline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantopian/zipline/downloads","issues_url":"https://api.github.com/repos/quantopian/zipline/issues{/number}","pulls_url":"https://api.github.com/repos/quantopian/zipline/pulls{/number}","milestones_url":"https://api.github.com/repos/quantopian/zipline/milestones{/number}","notifications_url":"https://api.github.com/repos/quantopian/zipline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantopian/zipline/labels{/name}","releases_url":"https://api.github.com/repos/quantopian/zipline/releases{/id}","deployments_url":"https://api.github.com/repos/quantopian/zipline/deployments","created_at":"2012-10-19T15:50:29Z","updated_at":"2016-07-25T14:08:24Z","pushed_at":"2016-07-25T14:54:34Z","git_url":"git://github.com/quantopian/zipline.git","ssh_url":"git@github.com:quantopian/zipline.git","clone_url":"https://github.com/quantopian/zipline.git","svn_url":"https://github.com/quantopian/zipline","homepage":"","size":85442,"stargazers_count":3432,"watchers_count":3432,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1067,"mirror_url":null,"open_issues_count":161,"forks":1067,"open_issues":161,"watchers":3432,"default_branch":"master"}},"base":{"label":"quantopian:master","ref":"master","sha":"a5342550b1c78ee2796c6f30bdf77ab381d7ef1f","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":6297520,"name":"zipline","full_name":"quantopian/zipline","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/zipline","description":"Zipline, a Pythonic Algorithmic Trading Library","fork":false,"url":"https://api.github.com/repos/quantopian/zipline","forks_url":"https://api.github.com/repos/quantopian/zipline/forks","keys_url":"https://api.github.com/repos/quantopian/zipline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quantopian/zipline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quantopian/zipline/teams","hooks_url":"https://api.github.com/repos/quantopian/zipline/hooks","issue_events_url":"https://api.github.com/repos/quantopian/zipline/issues/events{/number}","events_url":"https://api.github.com/repos/quantopian/zipline/events","assignees_url":"https://api.github.com/repos/quantopian/zipline/assignees{/user}","branches_url":"https://api.github.com/repos/quantopian/zipline/branches{/branch}","tags_url":"https://api.github.com/repos/quantopian/zipline/tags","blobs_url":"https://api.github.com/repos/quantopian/zipline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quantopian/zipline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quantopian/zipline/git/refs{/sha}","trees_url":"https://api.github.com/repos/quantopian/zipline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quantopian/zipline/statuses/{sha}","languages_url":"https://api.github.com/repos/quantopian/zipline/languages","stargazers_url":"https://api.github.com/repos/quantopian/zipline/stargazers","contributors_url":"https://api.github.com/repos/quantopian/zipline/contributors","subscribers_url":"https://api.github.com/repos/quantopian/zipline/subscribers","subscription_url":"https://api.github.com/repos/quantopian/zipline/subscription","commits_url":"https://api.github.com/repos/quantopian/zipline/commits{/sha}","git_commits_url":"https://api.github.com/repos/quantopian/zipline/git/commits{/sha}","comments_url":"https://api.github.com/repos/quantopian/zipline/comments{/number}","issue_comment_url":"https://api.github.com/repos/quantopian/zipline/issues/comments{/number}","contents_url":"https://api.github.com/repos/quantopian/zipline/contents/{+path}","compare_url":"https://api.github.com/repos/quantopian/zipline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quantopian/zipline/merges","archive_url":"https://api.github.com/repos/quantopian/zipline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quantopian/zipline/downloads","issues_url":"https://api.github.com/repos/quantopian/zipline/issues{/number}","pulls_url":"https://api.github.com/repos/quantopian/zipline/pulls{/number}","milestones_url":"https://api.github.com/repos/quantopian/zipline/milestones{/number}","notifications_url":"https://api.github.com/repos/quantopian/zipline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quantopian/zipline/labels{/name}","releases_url":"https://api.github.com/repos/quantopian/zipline/releases{/id}","deployments_url":"https://api.github.com/repos/quantopian/zipline/deployments","created_at":"2012-10-19T15:50:29Z","updated_at":"2016-07-25T14:08:24Z","pushed_at":"2016-07-25T14:54:34Z","git_url":"git://github.com/quantopian/zipline.git","ssh_url":"git@github.com:quantopian/zipline.git","clone_url":"https://github.com/quantopian/zipline.git","svn_url":"https://github.com/quantopian/zipline","homepage":"","size":85442,"stargazers_count":3432,"watchers_count":3432,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1067,"mirror_url":null,"open_issues_count":161,"forks":1067,"open_issues":161,"watchers":3432,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quantopian/zipline/pulls/1337"},"html":{"href":"https://github.com/quantopian/zipline/pull/1337"},"issue":{"href":"https://api.github.com/repos/quantopian/zipline/issues/1337"},"comments":{"href":"https://api.github.com/repos/quantopian/zipline/issues/1337/comments"},"review_comments":{"href":"https://api.github.com/repos/quantopian/zipline/pulls/1337/comments"},"review_comment":{"href":"https://api.github.com/repos/quantopian/zipline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quantopian/zipline/pulls/1337/commits"},"statuses":{"href":"https://api.github.com/repos/quantopian/zipline/statuses/0955515c46058c1a9f4d7680a4dcc70d2c38241c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lianga888","id":10404037,"avatar_url":"https://avatars.githubusercontent.com/u/10404037?v=3","gravatar_id":"","url":"https://api.github.com/users/lianga888","html_url":"https://github.com/lianga888","followers_url":"https://api.github.com/users/lianga888/followers","following_url":"https://api.github.com/users/lianga888/following{/other_user}","gists_url":"https://api.github.com/users/lianga888/gists{/gist_id}","starred_url":"https://api.github.com/users/lianga888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianga888/subscriptions","organizations_url":"https://api.github.com/users/lianga888/orgs","repos_url":"https://api.github.com/users/lianga888/repos","events_url":"https://api.github.com/users/lianga888/events{/privacy}","received_events_url":"https://api.github.com/users/lianga888/received_events","type":"User","site_admin":false},"comments":3,"review_comments":4,"commits":5,"additions":152,"deletions":65,"changed_files":6}}
{"actor":{"display_login":"lianga888"}}