{"action":"created","comment":{"url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/comments/62782189","id":62782189,"diff_hunk":"@@ -0,0 +1,416 @@\n+package Quant::Framework::ExpiryConventions;\n+\n+use strict;\n+use warnings;\n+\n+\n+use Moose;\n+use DateTime;\n+use Date::Utility;\n+use Quant::Framework::Currency;\n+use List::Util qw(min);\n+\n+has calendar => (\n+    is         => 'ro',\n+    isa        => 'Quant::Framework::TradingCalendar',\n+);\n+\n+=head2 chronicle_reader\n+\n+Used to work with Chronicle storage data (Holidays and Partial trading data)\n+\n+=cut\n+\n+has chronicle_reader => (\n+    is      => 'ro',\n+    isa     => 'Data::Chronicle::Reader',\n+);\n+\n+has is_forex_market => (\n+    is => 'ro',\n+);\n+\n+=head2 symbol\n+\n+What is the proper-cased symbol for our underlying?\n+\n+=cut\n+\n+has 'symbol' => (\n+    is       => 'ro',\n+    isa      => 'Str',\n+    required => 1,\n+);\n+\n+has quoted_currency => (\n+    is         => 'ro',\n+    isa        => 'Maybe[Quant::Framework::Currency]',\n+);\n+\n+has asset_symbol => (\n+    is         => 'ro',\n+    lazy_build => 1,\n+);\n+\n+sub _build_asset_symbol {\n+    my $self   = shift;\n+    my $symbol = '';\n+\n+    if ($self->symbol =~ /^FUT(\\w+)_/) {\n+        $symbol = $1;\n+    }\n+\n+    return $symbol;\n+}\n+\n+# This returns number of days after the trade date which determine the delivery\n+# and spot date. Except USDCAD which is 1 day, other are all 2 days.\n+has _days_for_settlement => (\n+    is      => 'ro',\n+    isa     => 'Int',\n+    lazy    => 1,\n+    builder => '_build__days_for_settlement',\n+);\n+\n+sub _build__days_for_settlement {\n+    my $self = shift;\n+    my $days = 2;\n+    if ($self->symbol and $self->symbol eq 'frxUSDCAD') {\n+        $days = 1;\n+    }\n+\n+    return $days;\n+}\n+\n+sub _is_good_business_day {\n+    my ($self, $date) = @_;\n+\n+    my $holiday_haver = (ref $self->asset =~ /Currency$/) ? $self->asset : $self->calendar;\n+\n+    if (   $date->is_a_weekend\n+        or $holiday_haver->has_holiday_on($date)\n+        or $self->quoted_currency->has_holiday_on($date))\n+    {\n+        return;\n+    }\n+\n+    return 1;\n+}\n+\n+sub _is_good_expiry_day {\n+    my ($self, $date) = @_;\n+\n+    if ($date->is_a_weekend or $date->date_ddmmmyy =~ /^(?:1\\-Jan|25\\-Dec)/) {\n+        return;\n+    }\n+\n+    return 1;\n+}\n+\n+sub _is_good_settlement_day {\n+    my ($self, $date) = @_;\n+\n+    if (not $self->_is_good_business_day($date)) {\n+        return;\n+    }\n+\n+    if (\n+        Quant::Framework::Currency->new({\n+                symbol           => 'USD',\n+                chronicle_reader => $self->chronicle_reader,\n+            }\n+        )->has_holiday_on($date))\n+    {\n+        return;\n+    }\n+\n+    return 1;\n+}\n+\n+sub _get_interim_date {\n+    my ($self, $date) = @_;\n+\n+    my $interim_date = Date::Utility->new($date->epoch + 86400);\n+    if ($self->symbol !~ /USD/) {\n+        if (not $self->_is_good_business_day($interim_date)) {\n+            $interim_date = $self->_get_interim_date($interim_date);\n+        }\n+    } else {\n+        my $non_USD_currency =\n+            ($self->asset_symbol =~ /USD/)\n+            ? $self->quoted_currency\n+            : $self->asset;\n+        if (   $non_USD_currency->has_holiday_on($interim_date)\n+            or $interim_date->is_a_weekend)\n+        {\n+            $interim_date = $self->_get_interim_date($interim_date);\n+        }\n+    }\n+\n+    return $interim_date;\n+}\n+\n+# See Clark, Foreign exchange option pricing, p5 s1.4 for an explanation.\n+sub _spot_date {\n+    my ($self, $date) = @_;\n+    my $spot_date;\n+    my $interim_date;\n+\n+    if ($self->_days_for_settlement == 1) {\n+        $spot_date = Date::Utility->new($date->epoch + 86400);\n+    } elsif ($self->_days_for_settlement == 2) {\n+        $interim_date = $self->_get_interim_date($date);\n+        $spot_date    = Date::Utility->new($interim_date->epoch + 86400);\n+    }\n+\n+    while (not $self->_is_good_settlement_day($spot_date)) {\n+        $spot_date = Date::Utility->new($spot_date->epoch + 86400);\n+    }\n+\n+    return $spot_date;\n+}\n+\n+=head1 vol_expiry_date\n+\n+ $underlying->vol_expiry_date({from => $date, term => '1W'});\n+\n+=cut\n+\n+sub vol_expiry_date {\n+    my ($self, $args) = @_;\n+    my ($from, $term) = @{$args}{qw(from term)};\n+\n+    my $expiry_date;\n+\n+    $term = '1D' if ($term =~ /^o\\/?n$/i);\n+\n+    if ($term =~ /(\\d+)([DW])/) {\n+        my ($days, $unit) = ($1, $2);\n+        $days *= 7 if ($unit eq 'W');\n+\n+        $expiry_date = Date::Utility->new($from->epoch + (86400 * $days));\n+\n+        if (not $self->_is_good_expiry_day($expiry_date)) {\n+            $expiry_date = $self->vol_expiry_date({\n+                from => $expiry_date,\n+                term => '1D'\n+            });\n+        }\n+    } else {\n+        my $months = ($term =~ /^\\s?(\\d+)([MY])$/ and $2 eq 'M') ? $1 : $1 * 12;\n+\n+        if ($self->is_forex_market) {\n+            $expiry_date = $self->_FX_month_and_year_term_vol_expiry_date({\n+                from   => $from,\n+                months => $months\n+            });\n+        } else {\n+            $expiry_date = $self->_EQ_month_and_year_term_vol_expiry_date({\n+                from   => $from,\n+                months => $months\n+            });\n+        }\n+    }\n+\n+    return $expiry_date;\n+}\n+\n+# When the term is expressed in months or years, the\n+# logic for FX and EQ differs. Here is the FX logic.\n+sub _FX_month_and_year_term_vol_expiry_date {\n+    my ($self, $args)   = @_;\n+    my ($from, $months) = @{$args}{qw(from months)};\n+\n+    # Step 1: To obtain the valid forward deliverty date","path":"lib/Quant/Framework/ExpiryConventions.pm","position":234,"original_position":224,"commit_id":"0a2ccc3910447964104ce01e46167ae0c8c0ee8a","original_commit_id":"0eb8b9fc6b5dc2386d6d147e5cbb3bc7b9e851d8","user":{"login":"mm-binary","id":9294049,"avatar_url":"https://avatars.githubusercontent.com/u/9294049?v=3","gravatar_id":"","url":"https://api.github.com/users/mm-binary","html_url":"https://github.com/mm-binary","followers_url":"https://api.github.com/users/mm-binary/followers","following_url":"https://api.github.com/users/mm-binary/following{/other_user}","gists_url":"https://api.github.com/users/mm-binary/gists{/gist_id}","starred_url":"https://api.github.com/users/mm-binary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mm-binary/subscriptions","organizations_url":"https://api.github.com/users/mm-binary/orgs","repos_url":"https://api.github.com/users/mm-binary/repos","events_url":"https://api.github.com/users/mm-binary/events{/privacy}","received_events_url":"https://api.github.com/users/mm-binary/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2016-05-11T01:53:40Z","updated_at":"2016-05-11T01:53:40Z","html_url":"https://github.com/binary-com/perl-Quant-Framework/pull/18#discussion_r62782189","pull_request_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/comments/62782189"},"html":{"href":"https://github.com/binary-com/perl-Quant-Framework/pull/18#discussion_r62782189"},"pull_request":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18","id":69437844,"html_url":"https://github.com/binary-com/perl-Quant-Framework/pull/18","diff_url":"https://github.com/binary-com/perl-Quant-Framework/pull/18.diff","patch_url":"https://github.com/binary-com/perl-Quant-Framework/pull/18.patch","issue_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/issues/18","number":18,"state":"open","locked":false,"title":"Mm/correlation matrix","user":{"login":"mm-binary","id":9294049,"avatar_url":"https://avatars.githubusercontent.com/u/9294049?v=3","gravatar_id":"","url":"https://api.github.com/users/mm-binary","html_url":"https://github.com/mm-binary","followers_url":"https://api.github.com/users/mm-binary/followers","following_url":"https://api.github.com/users/mm-binary/following{/other_user}","gists_url":"https://api.github.com/users/mm-binary/gists{/gist_id}","starred_url":"https://api.github.com/users/mm-binary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mm-binary/subscriptions","organizations_url":"https://api.github.com/users/mm-binary/orgs","repos_url":"https://api.github.com/users/mm-binary/repos","events_url":"https://api.github.com/users/mm-binary/events{/privacy}","received_events_url":"https://api.github.com/users/mm-binary/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-10T01:47:10Z","updated_at":"2016-05-11T01:53:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"306d2cec8c04424eb0c186edb6fda3c87b70a6b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18/commits","review_comments_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18/comments","review_comment_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/issues/18/comments","statuses_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/statuses/0a2ccc3910447964104ce01e46167ae0c8c0ee8a","head":{"label":"mm-binary:mm/correlation_matrix","ref":"mm/correlation_matrix","sha":"0a2ccc3910447964104ce01e46167ae0c8c0ee8a","user":{"login":"mm-binary","id":9294049,"avatar_url":"https://avatars.githubusercontent.com/u/9294049?v=3","gravatar_id":"","url":"https://api.github.com/users/mm-binary","html_url":"https://github.com/mm-binary","followers_url":"https://api.github.com/users/mm-binary/followers","following_url":"https://api.github.com/users/mm-binary/following{/other_user}","gists_url":"https://api.github.com/users/mm-binary/gists{/gist_id}","starred_url":"https://api.github.com/users/mm-binary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mm-binary/subscriptions","organizations_url":"https://api.github.com/users/mm-binary/orgs","repos_url":"https://api.github.com/users/mm-binary/repos","events_url":"https://api.github.com/users/mm-binary/events{/privacy}","received_events_url":"https://api.github.com/users/mm-binary/received_events","type":"User","site_admin":false},"repo":{"id":50819638,"name":"perl-Quant-Framework","full_name":"mm-binary/perl-Quant-Framework","owner":{"login":"mm-binary","id":9294049,"avatar_url":"https://avatars.githubusercontent.com/u/9294049?v=3","gravatar_id":"","url":"https://api.github.com/users/mm-binary","html_url":"https://github.com/mm-binary","followers_url":"https://api.github.com/users/mm-binary/followers","following_url":"https://api.github.com/users/mm-binary/following{/other_user}","gists_url":"https://api.github.com/users/mm-binary/gists{/gist_id}","starred_url":"https://api.github.com/users/mm-binary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mm-binary/subscriptions","organizations_url":"https://api.github.com/users/mm-binary/orgs","repos_url":"https://api.github.com/users/mm-binary/repos","events_url":"https://api.github.com/users/mm-binary/events{/privacy}","received_events_url":"https://api.github.com/users/mm-binary/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mm-binary/perl-Quant-Framework","description":"A framework of objects upon which to build Financial Quantitative Analysis code","fork":true,"url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework","forks_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/forks","keys_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/teams","hooks_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/hooks","issue_events_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/issues/events{/number}","events_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/events","assignees_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/assignees{/user}","branches_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/branches{/branch}","tags_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/tags","blobs_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/statuses/{sha}","languages_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/languages","stargazers_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/stargazers","contributors_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/contributors","subscribers_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/subscribers","subscription_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/subscription","commits_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/contents/{+path}","compare_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/merges","archive_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/downloads","issues_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/issues{/number}","pulls_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/pulls{/number}","milestones_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/milestones{/number}","notifications_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/labels{/name}","releases_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/releases{/id}","deployments_url":"https://api.github.com/repos/mm-binary/perl-Quant-Framework/deployments","created_at":"2016-02-01T06:36:04Z","updated_at":"2016-02-26T08:47:59Z","pushed_at":"2016-05-10T09:09:17Z","git_url":"git://github.com/mm-binary/perl-Quant-Framework.git","ssh_url":"git@github.com:mm-binary/perl-Quant-Framework.git","clone_url":"https://github.com/mm-binary/perl-Quant-Framework.git","svn_url":"https://github.com/mm-binary/perl-Quant-Framework","homepage":null,"size":142,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"7e70440de9da704b14488e55f706baa74e37f704","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":50404733,"name":"perl-Quant-Framework","full_name":"binary-com/perl-Quant-Framework","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/perl-Quant-Framework","description":"A framework of objects upon which to build Financial Quantitative Analysis code","fork":false,"url":"https://api.github.com/repos/binary-com/perl-Quant-Framework","forks_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/forks","keys_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/teams","hooks_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/hooks","issue_events_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/issues/events{/number}","events_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/events","assignees_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/assignees{/user}","branches_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/branches{/branch}","tags_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/tags","blobs_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/statuses/{sha}","languages_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/languages","stargazers_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/stargazers","contributors_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/contributors","subscribers_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/subscribers","subscription_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/subscription","commits_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/contents/{+path}","compare_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/merges","archive_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/downloads","issues_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/issues{/number}","pulls_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls{/number}","milestones_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/milestones{/number}","notifications_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/labels{/name}","releases_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/releases{/id}","deployments_url":"https://api.github.com/repos/binary-com/perl-Quant-Framework/deployments","created_at":"2016-01-26T05:05:38Z","updated_at":"2016-03-24T01:59:42Z","pushed_at":"2016-05-10T09:09:17Z","git_url":"git://github.com/binary-com/perl-Quant-Framework.git","ssh_url":"git@github.com:binary-com/perl-Quant-Framework.git","clone_url":"https://github.com/binary-com/perl-Quant-Framework.git","svn_url":"https://github.com/binary-com/perl-Quant-Framework","homepage":null,"size":129,"stargazers_count":2,"watchers_count":2,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18"},"html":{"href":"https://github.com/binary-com/perl-Quant-Framework/pull/18"},"issue":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/issues/18"},"comments":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/binary-com/perl-Quant-Framework/statuses/0a2ccc3910447964104ce01e46167ae0c8c0ee8a"}}}}