{"action":"created","comment":{"url":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/comments/48814826","id":48814826,"diff_hunk":"@@ -18,6 +18,7 @@ export const serverDataProposalOpenContract = serverResponse => ({\n \n export const updateNow = () => ({\n     type: types.UPDATE_NOW,\n+    now: Math.floor(Date.now() / 1000),","path":"src/_actions/PortfolioActions.js","position":4,"original_position":4,"commit_id":"4003a68ba6e30764894fbb9e827ef6cf39f621b6","original_commit_id":"4003a68ba6e30764894fbb9e827ef6cf39f621b6","user":{"login":"qingweibinary","id":14971922,"avatar_url":"https://avatars.githubusercontent.com/u/14971922?v=3","gravatar_id":"","url":"https://api.github.com/users/qingweibinary","html_url":"https://github.com/qingweibinary","followers_url":"https://api.github.com/users/qingweibinary/followers","following_url":"https://api.github.com/users/qingweibinary/following{/other_user}","gists_url":"https://api.github.com/users/qingweibinary/gists{/gist_id}","starred_url":"https://api.github.com/users/qingweibinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingweibinary/subscriptions","organizations_url":"https://api.github.com/users/qingweibinary/orgs","repos_url":"https://api.github.com/users/qingweibinary/repos","events_url":"https://api.github.com/users/qingweibinary/events{/privacy}","received_events_url":"https://api.github.com/users/qingweibinary/received_events","type":"User","site_admin":false},"body":"Yes, this should be","created_at":"2016-01-05T06:04:26Z","updated_at":"2016-01-05T06:04:26Z","html_url":"https://github.com/binary-com/binary-next-gen/pull/79#discussion_r48814826","pull_request_url":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79","_links":{"self":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/comments/48814826"},"html":{"href":"https://github.com/binary-com/binary-next-gen/pull/79#discussion_r48814826"},"pull_request":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79","id":55056379,"html_url":"https://github.com/binary-com/binary-next-gen/pull/79","diff_url":"https://github.com/binary-com/binary-next-gen/pull/79.diff","patch_url":"https://github.com/binary-com/binary-next-gen/pull/79.patch","issue_url":"https://api.github.com/repos/binary-com/binary-next-gen/issues/79","number":79,"state":"open","locked":false,"title":"Update statement and portfolio when transactions happen in app","user":{"login":"qingweibinary","id":14971922,"avatar_url":"https://avatars.githubusercontent.com/u/14971922?v=3","gravatar_id":"","url":"https://api.github.com/users/qingweibinary","html_url":"https://github.com/qingweibinary","followers_url":"https://api.github.com/users/qingweibinary/followers","following_url":"https://api.github.com/users/qingweibinary/following{/other_user}","gists_url":"https://api.github.com/users/qingweibinary/gists{/gist_id}","starred_url":"https://api.github.com/users/qingweibinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingweibinary/subscriptions","organizations_url":"https://api.github.com/users/qingweibinary/orgs","repos_url":"https://api.github.com/users/qingweibinary/repos","events_url":"https://api.github.com/users/qingweibinary/events{/privacy}","received_events_url":"https://api.github.com/users/qingweibinary/received_events","type":"User","site_admin":false},"body":"Note: expiry does not work properly on statement, \r\nThe problem is backend does not sell contract on expiry, the actual selling will be trigger by portfolio or statement call\r\n\r\nto make it work on our app, we would need to have some daemon like function take consistently check for expiry and perform portfolio call, it's kind of short polling on client side  =(\r\n\r\n@borisyankov any thoughts?\r\nin addition, we would not fix this problem for virtual account, as backend do not want to waste resources on them, backend would only fix this for real account, probably by this month\r\n\r\nEdit: Oh wait ~ it seems there's a way ... testing...","created_at":"2016-01-05T05:40:11Z","updated_at":"2016-01-05T06:04:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"deb33987ee8580795039eca3d2a94bde610f7e08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79/commits","review_comments_url":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79/comments","review_comment_url":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/binary-com/binary-next-gen/issues/79/comments","statuses_url":"https://api.github.com/repos/binary-com/binary-next-gen/statuses/4003a68ba6e30764894fbb9e827ef6cf39f621b6","head":{"label":"qingweibinary:qingwei/statement_update","ref":"qingwei/statement_update","sha":"4003a68ba6e30764894fbb9e827ef6cf39f621b6","user":{"login":"qingweibinary","id":14971922,"avatar_url":"https://avatars.githubusercontent.com/u/14971922?v=3","gravatar_id":"","url":"https://api.github.com/users/qingweibinary","html_url":"https://github.com/qingweibinary","followers_url":"https://api.github.com/users/qingweibinary/followers","following_url":"https://api.github.com/users/qingweibinary/following{/other_user}","gists_url":"https://api.github.com/users/qingweibinary/gists{/gist_id}","starred_url":"https://api.github.com/users/qingweibinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingweibinary/subscriptions","organizations_url":"https://api.github.com/users/qingweibinary/orgs","repos_url":"https://api.github.com/users/qingweibinary/repos","events_url":"https://api.github.com/users/qingweibinary/events{/privacy}","received_events_url":"https://api.github.com/users/qingweibinary/received_events","type":"User","site_admin":false},"repo":{"id":45229598,"name":"binary-next-gen","full_name":"qingweibinary/binary-next-gen","owner":{"login":"qingweibinary","id":14971922,"avatar_url":"https://avatars.githubusercontent.com/u/14971922?v=3","gravatar_id":"","url":"https://api.github.com/users/qingweibinary","html_url":"https://github.com/qingweibinary","followers_url":"https://api.github.com/users/qingweibinary/followers","following_url":"https://api.github.com/users/qingweibinary/following{/other_user}","gists_url":"https://api.github.com/users/qingweibinary/gists{/gist_id}","starred_url":"https://api.github.com/users/qingweibinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingweibinary/subscriptions","organizations_url":"https://api.github.com/users/qingweibinary/orgs","repos_url":"https://api.github.com/users/qingweibinary/repos","events_url":"https://api.github.com/users/qingweibinary/events{/privacy}","received_events_url":"https://api.github.com/users/qingweibinary/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qingweibinary/binary-next-gen","description":"Next-Gen App for Binary.com","fork":true,"url":"https://api.github.com/repos/qingweibinary/binary-next-gen","forks_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/forks","keys_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/teams","hooks_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/hooks","issue_events_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/issues/events{/number}","events_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/events","assignees_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/assignees{/user}","branches_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/branches{/branch}","tags_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/tags","blobs_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/languages","stargazers_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/stargazers","contributors_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/contributors","subscribers_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/subscribers","subscription_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/subscription","commits_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/issues/comments{/number}","contents_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/contents/{+path}","compare_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/merges","archive_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/downloads","issues_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/issues{/number}","pulls_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/labels{/name}","releases_url":"https://api.github.com/repos/qingweibinary/binary-next-gen/releases{/id}","created_at":"2015-10-30T04:44:03Z","updated_at":"2015-11-12T10:32:33Z","pushed_at":"2016-01-05T05:34:49Z","git_url":"git://github.com/qingweibinary/binary-next-gen.git","ssh_url":"git@github.com:qingweibinary/binary-next-gen.git","clone_url":"https://github.com/qingweibinary/binary-next-gen.git","svn_url":"https://github.com/qingweibinary/binary-next-gen","homepage":"","size":8908,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"binary-com:master","ref":"master","sha":"ca9514ef0c0662670e42509beeecc0dca175fde8","user":{"login":"binary-com","id":7437559,"avatar_url":"https://avatars.githubusercontent.com/u/7437559?v=3","gravatar_id":"","url":"https://api.github.com/users/binary-com","html_url":"https://github.com/binary-com","followers_url":"https://api.github.com/users/binary-com/followers","following_url":"https://api.github.com/users/binary-com/following{/other_user}","gists_url":"https://api.github.com/users/binary-com/gists{/gist_id}","starred_url":"https://api.github.com/users/binary-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary-com/subscriptions","organizations_url":"https://api.github.com/users/binary-com/orgs","repos_url":"https://api.github.com/users/binary-com/repos","events_url":"https://api.github.com/users/binary-com/events{/privacy}","received_events_url":"https://api.github.com/users/binary-com/received_events","type":"Organization","site_admin":false},"repo":{"id":36497200,"name":"binary-next-gen","full_name":"binary-com/binary-next-gen","owner":{"login":"binary-com","id":7437559,"avatar_url":"https://avatars.githubusercontent.com/u/7437559?v=3","gravatar_id":"","url":"https://api.github.com/users/binary-com","html_url":"https://github.com/binary-com","followers_url":"https://api.github.com/users/binary-com/followers","following_url":"https://api.github.com/users/binary-com/following{/other_user}","gists_url":"https://api.github.com/users/binary-com/gists{/gist_id}","starred_url":"https://api.github.com/users/binary-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary-com/subscriptions","organizations_url":"https://api.github.com/users/binary-com/orgs","repos_url":"https://api.github.com/users/binary-com/repos","events_url":"https://api.github.com/users/binary-com/events{/privacy}","received_events_url":"https://api.github.com/users/binary-com/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/binary-com/binary-next-gen","description":"Next-Gen App for Binary.com","fork":false,"url":"https://api.github.com/repos/binary-com/binary-next-gen","forks_url":"https://api.github.com/repos/binary-com/binary-next-gen/forks","keys_url":"https://api.github.com/repos/binary-com/binary-next-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binary-com/binary-next-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binary-com/binary-next-gen/teams","hooks_url":"https://api.github.com/repos/binary-com/binary-next-gen/hooks","issue_events_url":"https://api.github.com/repos/binary-com/binary-next-gen/issues/events{/number}","events_url":"https://api.github.com/repos/binary-com/binary-next-gen/events","assignees_url":"https://api.github.com/repos/binary-com/binary-next-gen/assignees{/user}","branches_url":"https://api.github.com/repos/binary-com/binary-next-gen/branches{/branch}","tags_url":"https://api.github.com/repos/binary-com/binary-next-gen/tags","blobs_url":"https://api.github.com/repos/binary-com/binary-next-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binary-com/binary-next-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binary-com/binary-next-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/binary-com/binary-next-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binary-com/binary-next-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/binary-com/binary-next-gen/languages","stargazers_url":"https://api.github.com/repos/binary-com/binary-next-gen/stargazers","contributors_url":"https://api.github.com/repos/binary-com/binary-next-gen/contributors","subscribers_url":"https://api.github.com/repos/binary-com/binary-next-gen/subscribers","subscription_url":"https://api.github.com/repos/binary-com/binary-next-gen/subscription","commits_url":"https://api.github.com/repos/binary-com/binary-next-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/binary-com/binary-next-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/binary-com/binary-next-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/binary-com/binary-next-gen/issues/comments{/number}","contents_url":"https://api.github.com/repos/binary-com/binary-next-gen/contents/{+path}","compare_url":"https://api.github.com/repos/binary-com/binary-next-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binary-com/binary-next-gen/merges","archive_url":"https://api.github.com/repos/binary-com/binary-next-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binary-com/binary-next-gen/downloads","issues_url":"https://api.github.com/repos/binary-com/binary-next-gen/issues{/number}","pulls_url":"https://api.github.com/repos/binary-com/binary-next-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/binary-com/binary-next-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/binary-com/binary-next-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binary-com/binary-next-gen/labels{/name}","releases_url":"https://api.github.com/repos/binary-com/binary-next-gen/releases{/id}","created_at":"2015-05-29T10:22:14Z","updated_at":"2015-12-30T02:01:45Z","pushed_at":"2016-01-05T05:40:11Z","git_url":"git://github.com/binary-com/binary-next-gen.git","ssh_url":"git@github.com:binary-com/binary-next-gen.git","clone_url":"https://github.com/binary-com/binary-next-gen.git","svn_url":"https://github.com/binary-com/binary-next-gen","homepage":"http://app.binary.com","size":19861,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79"},"html":{"href":"https://github.com/binary-com/binary-next-gen/pull/79"},"issue":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/issues/79"},"comments":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/binary-com/binary-next-gen/statuses/4003a68ba6e30764894fbb9e827ef6cf39f621b6"}}}}