{"action":"created","comment":{"url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/comments/190208967","pull_request_review_id":122537321,"id":190208967,"diff_hunk":"@@ -0,0 +1,61 @@\n+package fund.cyber.markets.api.rest.handler\n+\n+import fund.cyber.markets.api.rest.configuration.PAGE_DEFAULT\n+import fund.cyber.markets.api.rest.configuration.PAGE_SIZE_DEFAULT\n+import fund.cyber.markets.cassandra.model.CqlTokenTicker\n+import fund.cyber.markets.cassandra.repository.TickerRepository\n+import fund.cyber.markets.common.model.Exchanges\n+import org.springframework.http.HttpStatus\n+import org.springframework.stereotype.Component\n+import org.springframework.web.reactive.function.server.ServerRequest\n+import org.springframework.web.reactive.function.server.ServerResponse\n+import org.springframework.web.reactive.function.server.ServerResponse.notFound\n+import org.springframework.web.reactive.function.server.ServerResponse.ok\n+import reactor.core.publisher.Mono\n+import java.util.*\n+\n+@Component\n+class TickerHandler(\n+    private val tickerRepository: TickerRepository\n+) {\n+\n+    fun getTickers(serverRequest: ServerRequest): Mono<ServerResponse> {\n+        val symbol: String\n+        val ts: Long\n+\n+        try {\n+            symbol = serverRequest.queryParam(\"symbol\").get().toUpperCase()\n+            ts = serverRequest.queryParam(\"ts\").get().toLong()\n+        } catch (e: NoSuchElementException) {\n+            return ServerResponse.status(HttpStatus.BAD_REQUEST).build()\n+        }\n+\n+        val exchange = try {\n+            serverRequest.queryParam(\"exchange\").get().toUpperCase()\n+        } catch (e: NoSuchElementException) {","path":"rest-api/src/main/kotlin/fund/cyber/markets/api/rest/handler/TickerHandler.kt","position":null,"original_position":35,"commit_id":"1aded0bc141a7a86a7160bb48bbab8bf6a61a327","original_commit_id":"b12178065a8212e44f19b156236bf2c1086fe232","user":{"login":"vstavetski","id":6923234,"avatar_url":"https://avatars0.githubusercontent.com/u/6923234?v=4","gravatar_id":"","url":"https://api.github.com/users/vstavetski","html_url":"https://github.com/vstavetski","followers_url":"https://api.github.com/users/vstavetski/followers","following_url":"https://api.github.com/users/vstavetski/following{/other_user}","gists_url":"https://api.github.com/users/vstavetski/gists{/gist_id}","starred_url":"https://api.github.com/users/vstavetski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vstavetski/subscriptions","organizations_url":"https://api.github.com/users/vstavetski/orgs","repos_url":"https://api.github.com/users/vstavetski/repos","events_url":"https://api.github.com/users/vstavetski/events{/privacy}","received_events_url":"https://api.github.com/users/vstavetski/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-05-23T11:17:07Z","updated_at":"2018-05-23T11:17:08Z","html_url":"https://github.com/cybercongress/cyber-markets/pull/197#discussion_r190208967","pull_request_url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/comments/190208967"},"html":{"href":"https://github.com/cybercongress/cyber-markets/pull/197#discussion_r190208967"},"pull_request":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197"}},"in_reply_to_id":190202883},"pull_request":{"url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197","id":188165479,"html_url":"https://github.com/cybercongress/cyber-markets/pull/197","diff_url":"https://github.com/cybercongress/cyber-markets/pull/197.diff","patch_url":"https://github.com/cybercongress/cyber-markets/pull/197.patch","issue_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues/197","number":197,"state":"open","locked":false,"title":"Storer component","user":{"login":"vstavetski","id":6923234,"avatar_url":"https://avatars0.githubusercontent.com/u/6923234?v=4","gravatar_id":"","url":"https://api.github.com/users/vstavetski","html_url":"https://github.com/vstavetski","followers_url":"https://api.github.com/users/vstavetski/followers","following_url":"https://api.github.com/users/vstavetski/following{/other_user}","gists_url":"https://api.github.com/users/vstavetski/gists{/gist_id}","starred_url":"https://api.github.com/users/vstavetski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vstavetski/subscriptions","organizations_url":"https://api.github.com/users/vstavetski/orgs","repos_url":"https://api.github.com/users/vstavetski/repos","events_url":"https://api.github.com/users/vstavetski/events{/privacy}","received_events_url":"https://api.github.com/users/vstavetski/received_events","type":"User","site_admin":false},"body":"Implemented new module, which writes data such as trades, order books snapshots from kafka topics","created_at":"2018-05-15T15:21:24Z","updated_at":"2018-05-23T11:17:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3622170b4cb0fed59d956044d0563d78e74d587f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hleb-albau","id":2991991,"avatar_url":"https://avatars2.githubusercontent.com/u/2991991?v=4","gravatar_id":"","url":"https://api.github.com/users/hleb-albau","html_url":"https://github.com/hleb-albau","followers_url":"https://api.github.com/users/hleb-albau/followers","following_url":"https://api.github.com/users/hleb-albau/following{/other_user}","gists_url":"https://api.github.com/users/hleb-albau/gists{/gist_id}","starred_url":"https://api.github.com/users/hleb-albau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hleb-albau/subscriptions","organizations_url":"https://api.github.com/users/hleb-albau/orgs","repos_url":"https://api.github.com/users/hleb-albau/repos","events_url":"https://api.github.com/users/hleb-albau/events{/privacy}","received_events_url":"https://api.github.com/users/hleb-albau/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/cybercongress/cyber-markets/milestones/9","html_url":"https://github.com/cybercongress/cyber-markets/milestone/9","labels_url":"https://api.github.com/repos/cybercongress/cyber-markets/milestones/9/labels","id":3285899,"number":9,"title":"Sprint 11","description":"","creator":{"login":"asadovka","id":17406355,"avatar_url":"https://avatars3.githubusercontent.com/u/17406355?v=4","gravatar_id":"","url":"https://api.github.com/users/asadovka","html_url":"https://github.com/asadovka","followers_url":"https://api.github.com/users/asadovka/followers","following_url":"https://api.github.com/users/asadovka/following{/other_user}","gists_url":"https://api.github.com/users/asadovka/gists{/gist_id}","starred_url":"https://api.github.com/users/asadovka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asadovka/subscriptions","organizations_url":"https://api.github.com/users/asadovka/orgs","repos_url":"https://api.github.com/users/asadovka/repos","events_url":"https://api.github.com/users/asadovka/events{/privacy}","received_events_url":"https://api.github.com/users/asadovka/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2018-04-21T09:46:51Z","updated_at":"2018-05-21T08:34:50Z","due_on":"2018-06-01T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197/commits","review_comments_url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197/comments","review_comment_url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues/197/comments","statuses_url":"https://api.github.com/repos/cybercongress/cyber-markets/statuses/1aded0bc141a7a86a7160bb48bbab8bf6a61a327","head":{"label":"cybercongress:196-store-trades","ref":"196-store-trades","sha":"1aded0bc141a7a86a7160bb48bbab8bf6a61a327","user":{"login":"cybercongress","id":37237773,"avatar_url":"https://avatars0.githubusercontent.com/u/37237773?v=4","gravatar_id":"","url":"https://api.github.com/users/cybercongress","html_url":"https://github.com/cybercongress","followers_url":"https://api.github.com/users/cybercongress/followers","following_url":"https://api.github.com/users/cybercongress/following{/other_user}","gists_url":"https://api.github.com/users/cybercongress/gists{/gist_id}","starred_url":"https://api.github.com/users/cybercongress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybercongress/subscriptions","organizations_url":"https://api.github.com/users/cybercongress/orgs","repos_url":"https://api.github.com/users/cybercongress/repos","events_url":"https://api.github.com/users/cybercongress/events{/privacy}","received_events_url":"https://api.github.com/users/cybercongress/received_events","type":"Organization","site_admin":false},"repo":{"id":97112173,"name":"cyber-markets","full_name":"cybercongress/cyber-markets","owner":{"login":"cybercongress","id":37237773,"avatar_url":"https://avatars0.githubusercontent.com/u/37237773?v=4","gravatar_id":"","url":"https://api.github.com/users/cybercongress","html_url":"https://github.com/cybercongress","followers_url":"https://api.github.com/users/cybercongress/followers","following_url":"https://api.github.com/users/cybercongress/following{/other_user}","gists_url":"https://api.github.com/users/cybercongress/gists{/gist_id}","starred_url":"https://api.github.com/users/cybercongress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybercongress/subscriptions","organizations_url":"https://api.github.com/users/cybercongress/orgs","repos_url":"https://api.github.com/users/cybercongress/repos","events_url":"https://api.github.com/users/cybercongress/events{/privacy}","received_events_url":"https://api.github.com/users/cybercongress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cybercongress/cyber-markets","description":"🍄Toolchain for parsing of orders and trades","fork":false,"url":"https://api.github.com/repos/cybercongress/cyber-markets","forks_url":"https://api.github.com/repos/cybercongress/cyber-markets/forks","keys_url":"https://api.github.com/repos/cybercongress/cyber-markets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cybercongress/cyber-markets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cybercongress/cyber-markets/teams","hooks_url":"https://api.github.com/repos/cybercongress/cyber-markets/hooks","issue_events_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues/events{/number}","events_url":"https://api.github.com/repos/cybercongress/cyber-markets/events","assignees_url":"https://api.github.com/repos/cybercongress/cyber-markets/assignees{/user}","branches_url":"https://api.github.com/repos/cybercongress/cyber-markets/branches{/branch}","tags_url":"https://api.github.com/repos/cybercongress/cyber-markets/tags","blobs_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/refs{/sha}","trees_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cybercongress/cyber-markets/statuses/{sha}","languages_url":"https://api.github.com/repos/cybercongress/cyber-markets/languages","stargazers_url":"https://api.github.com/repos/cybercongress/cyber-markets/stargazers","contributors_url":"https://api.github.com/repos/cybercongress/cyber-markets/contributors","subscribers_url":"https://api.github.com/repos/cybercongress/cyber-markets/subscribers","subscription_url":"https://api.github.com/repos/cybercongress/cyber-markets/subscription","commits_url":"https://api.github.com/repos/cybercongress/cyber-markets/commits{/sha}","git_commits_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/commits{/sha}","comments_url":"https://api.github.com/repos/cybercongress/cyber-markets/comments{/number}","issue_comment_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues/comments{/number}","contents_url":"https://api.github.com/repos/cybercongress/cyber-markets/contents/{+path}","compare_url":"https://api.github.com/repos/cybercongress/cyber-markets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cybercongress/cyber-markets/merges","archive_url":"https://api.github.com/repos/cybercongress/cyber-markets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cybercongress/cyber-markets/downloads","issues_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues{/number}","pulls_url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls{/number}","milestones_url":"https://api.github.com/repos/cybercongress/cyber-markets/milestones{/number}","notifications_url":"https://api.github.com/repos/cybercongress/cyber-markets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cybercongress/cyber-markets/labels{/name}","releases_url":"https://api.github.com/repos/cybercongress/cyber-markets/releases{/id}","deployments_url":"https://api.github.com/repos/cybercongress/cyber-markets/deployments","created_at":"2017-07-13T10:49:27Z","updated_at":"2018-05-06T08:10:45Z","pushed_at":"2018-05-23T11:16:10Z","git_url":"git://github.com/cybercongress/cyber-markets.git","ssh_url":"git@github.com:cybercongress/cyber-markets.git","clone_url":"https://github.com/cybercongress/cyber-markets.git","svn_url":"https://github.com/cybercongress/cyber-markets","homepage":"https://github.com/cyberFund/cyber-markets/wiki","size":10148,"stargazers_count":44,"watchers_count":44,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":7,"open_issues":21,"watchers":44,"default_branch":"master"}},"base":{"label":"cybercongress:master","ref":"master","sha":"b488abc51a4d3a452ac7be2a26a18f1399bf7acb","user":{"login":"cybercongress","id":37237773,"avatar_url":"https://avatars0.githubusercontent.com/u/37237773?v=4","gravatar_id":"","url":"https://api.github.com/users/cybercongress","html_url":"https://github.com/cybercongress","followers_url":"https://api.github.com/users/cybercongress/followers","following_url":"https://api.github.com/users/cybercongress/following{/other_user}","gists_url":"https://api.github.com/users/cybercongress/gists{/gist_id}","starred_url":"https://api.github.com/users/cybercongress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybercongress/subscriptions","organizations_url":"https://api.github.com/users/cybercongress/orgs","repos_url":"https://api.github.com/users/cybercongress/repos","events_url":"https://api.github.com/users/cybercongress/events{/privacy}","received_events_url":"https://api.github.com/users/cybercongress/received_events","type":"Organization","site_admin":false},"repo":{"id":97112173,"name":"cyber-markets","full_name":"cybercongress/cyber-markets","owner":{"login":"cybercongress","id":37237773,"avatar_url":"https://avatars0.githubusercontent.com/u/37237773?v=4","gravatar_id":"","url":"https://api.github.com/users/cybercongress","html_url":"https://github.com/cybercongress","followers_url":"https://api.github.com/users/cybercongress/followers","following_url":"https://api.github.com/users/cybercongress/following{/other_user}","gists_url":"https://api.github.com/users/cybercongress/gists{/gist_id}","starred_url":"https://api.github.com/users/cybercongress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybercongress/subscriptions","organizations_url":"https://api.github.com/users/cybercongress/orgs","repos_url":"https://api.github.com/users/cybercongress/repos","events_url":"https://api.github.com/users/cybercongress/events{/privacy}","received_events_url":"https://api.github.com/users/cybercongress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cybercongress/cyber-markets","description":"🍄Toolchain for parsing of orders and trades","fork":false,"url":"https://api.github.com/repos/cybercongress/cyber-markets","forks_url":"https://api.github.com/repos/cybercongress/cyber-markets/forks","keys_url":"https://api.github.com/repos/cybercongress/cyber-markets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cybercongress/cyber-markets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cybercongress/cyber-markets/teams","hooks_url":"https://api.github.com/repos/cybercongress/cyber-markets/hooks","issue_events_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues/events{/number}","events_url":"https://api.github.com/repos/cybercongress/cyber-markets/events","assignees_url":"https://api.github.com/repos/cybercongress/cyber-markets/assignees{/user}","branches_url":"https://api.github.com/repos/cybercongress/cyber-markets/branches{/branch}","tags_url":"https://api.github.com/repos/cybercongress/cyber-markets/tags","blobs_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/refs{/sha}","trees_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cybercongress/cyber-markets/statuses/{sha}","languages_url":"https://api.github.com/repos/cybercongress/cyber-markets/languages","stargazers_url":"https://api.github.com/repos/cybercongress/cyber-markets/stargazers","contributors_url":"https://api.github.com/repos/cybercongress/cyber-markets/contributors","subscribers_url":"https://api.github.com/repos/cybercongress/cyber-markets/subscribers","subscription_url":"https://api.github.com/repos/cybercongress/cyber-markets/subscription","commits_url":"https://api.github.com/repos/cybercongress/cyber-markets/commits{/sha}","git_commits_url":"https://api.github.com/repos/cybercongress/cyber-markets/git/commits{/sha}","comments_url":"https://api.github.com/repos/cybercongress/cyber-markets/comments{/number}","issue_comment_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues/comments{/number}","contents_url":"https://api.github.com/repos/cybercongress/cyber-markets/contents/{+path}","compare_url":"https://api.github.com/repos/cybercongress/cyber-markets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cybercongress/cyber-markets/merges","archive_url":"https://api.github.com/repos/cybercongress/cyber-markets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cybercongress/cyber-markets/downloads","issues_url":"https://api.github.com/repos/cybercongress/cyber-markets/issues{/number}","pulls_url":"https://api.github.com/repos/cybercongress/cyber-markets/pulls{/number}","milestones_url":"https://api.github.com/repos/cybercongress/cyber-markets/milestones{/number}","notifications_url":"https://api.github.com/repos/cybercongress/cyber-markets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cybercongress/cyber-markets/labels{/name}","releases_url":"https://api.github.com/repos/cybercongress/cyber-markets/releases{/id}","deployments_url":"https://api.github.com/repos/cybercongress/cyber-markets/deployments","created_at":"2017-07-13T10:49:27Z","updated_at":"2018-05-06T08:10:45Z","pushed_at":"2018-05-23T11:16:10Z","git_url":"git://github.com/cybercongress/cyber-markets.git","ssh_url":"git@github.com:cybercongress/cyber-markets.git","clone_url":"https://github.com/cybercongress/cyber-markets.git","svn_url":"https://github.com/cybercongress/cyber-markets","homepage":"https://github.com/cyberFund/cyber-markets/wiki","size":10148,"stargazers_count":44,"watchers_count":44,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":7,"open_issues":21,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197"},"html":{"href":"https://github.com/cybercongress/cyber-markets/pull/197"},"issue":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/issues/197"},"comments":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/cybercongress/cyber-markets/statuses/1aded0bc141a7a86a7160bb48bbab8bf6a61a327"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"vstavetski"}}