{"id":37911412,"url":"https://github.com/massive-com/client-jvm","last_synced_at":"2026-01-16T17:19:53.287Z","repository":{"id":41050616,"uuid":"239689377","full_name":"massive-com/client-jvm","owner":"massive-com","description":"The official JVM client library SDK, written in Kotlin, for accessing the Massive.com REST and WebSocket API.","archived":false,"fork":false,"pushed_at":"2025-12-11T21:14:53.000Z","size":1400,"stargazers_count":74,"open_issues_count":18,"forks_count":36,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-12-13T01:56:32.326Z","etag":null,"topics":["client-jvm","client-sdk","java","kotlin","polygon"],"latest_commit_sha":null,"homepage":"https://massive.com/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/massive-com.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-11T06:08:40.000Z","updated_at":"2025-12-11T21:14:56.000Z","dependencies_parsed_at":"2023-12-15T17:29:15.076Z","dependency_job_id":"d6f25e87-a0d8-4999-9753-12ada9a015f2","html_url":"https://github.com/massive-com/client-jvm","commit_stats":null,"previous_names":["massive-com/client-jvm"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/massive-com/client-jvm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massive-com%2Fclient-jvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massive-com%2Fclient-jvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massive-com%2Fclient-jvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massive-com%2Fclient-jvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/massive-com","download_url":"https://codeload.github.com/massive-com/client-jvm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massive-com%2Fclient-jvm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-jvm","client-sdk","java","kotlin","polygon"],"created_at":"2026-01-16T17:19:53.235Z","updated_at":"2026-01-16T17:19:53.281Z","avatar_url":"https://github.com/massive-com.png","language":"Kotlin","readme":"# Massive (formerly Polygon.io) JVM Client SDK written in Kotlin - WebSocket \u0026 RESTful APIs\n\nWelcome to the official JVM client library SDK, written in Kotlin, for the [Massive](https://massive.com/) REST and WebSocket API. This client SDK is usable by any JVM language (including in Android SDK version 21+). To get started, please see the [Getting Started](https://massive.com/docs/stocks/getting-started) section in our documentation, and the [docs](https://massive.com/docs/rest/quickstart) for code snippets.\n\n**Note:** Polygon.io has rebranded as [Massive.com](https://massive.com) on Oct 30, 2025. Existing API keys, accounts, and integrations continue to work exactly as before. The only change in this SDK is that it now defaults to the new API base at `api.massive.com`, while `api.polygon.io` remains supported for an extended period.\n\nFor details, see our [rebrand announcement blog post](https://massive.com/blog/polygon-is-now-massive/) or open an issue / contact [support@massive.com](mailto:support@massive.com) if you have questions.\n\n### Key improvements:\n- Breaking changes to method names and request/response structures.\n- The client is now automatically synchronized with the latest Massive.com API, ensuring faster access to new endpoints and updates.\n- Reduces the risk of SDK/API drift—what you see in the docs is what you get in the client.\n\n### Action required:\n- If you're upgrading from a previous version, expect incompatibilities—please update your integration accordingly.\n- We've updated the [docs](https://massive.com/docs) with usage examples and new patterns for making requests.\n\n## Getting started\n\nTo access real-time and historical market data with Massive.com, you will first need to create an account and obtain an API key to authenticate your requests. If you run the samples makes sure to set the `MASSIVE_API_KEY` environment variable for the sample code to use. To persist the environment variable you need to add the above command to the shell startup script (e.g. .bashrc or .bash_profile.\n\n```bash\nsetx MASSIVE_API_KEY \"\u003cyour_api_key\u003e\"   # windows\nexport MASSIVE_API_KEY=\"\u003cyour_api_key\u003e\" # mac/linux\n```\n\n## REST API Client\n\nThe [REST API](https://massive.com/docs/stocks/getting-started) provides endpoints that let you query the latest stock, options, indices, forex, and crypto market data market data. You can request data using client methods.\n\nCreate the client using your API key.\n\n```kotlin\n    ApiClient.apiKey[\"apiKey\"] = \"MASSIVE_API_KEY\"\n```\n\nGet [aggregate bars](https://massive.com/docs/rest/stocks/aggregates/custom-bars) for a stock over a given date range in custom time window sizes.\n\n```kotlin\npackage org.openapitools.client\n\nimport org.openapitools.client.apis.DefaultApi\nimport org.openapitools.client.apis.DefaultApi.*\nimport org.openapitools.client.infrastructure.*\nimport org.openapitools.client.models.*\n\nfun main() {\n    ApiClient.apiKey[\"apiKey\"] = \"MASSIVE_API_KEY\"\n\n    val api = DefaultApi()\n    try {\n        val result = api.GetStocksAggregates(\n            multiplier = \"1\",\n            timespan = \"day\",\n            from = \"2023-01-09\",\n            to = \"2023-02-10\",\n            adjusted = \"true\",\n            sort = \"asc\",\n            limit = \"120\"\n        )\n        println(result)\n    } catch (e: Exception) {\n        println(\"Error calling GetStocksAggregates: ${e.message}\")\n        e.printStackTrace()\n    }\n}\n```\n\nGet [trades](https://massive.com/docs/stocks/get_v3_trades__stockticker) for a ticker symbol in a given time range.\n\n```kotlin\npackage org.openapitools.client\n\nimport org.openapitools.client.apis.DefaultApi\nimport org.openapitools.client.apis.DefaultApi.*\nimport org.openapitools.client.infrastructure.*\nimport org.openapitools.client.models.*\n\nfun main() {\n    ApiClient.apiKey[\"apiKey\"] = \"MASSIVE_API_KEY\"\n\n    val api = DefaultApi()\n    try {\n        val result = api.GetStocksTrades(\n            stockTicker = \"AAPL\",\n            order = \"asc\",\n            limit = \"10\",\n            sort = \"timestamp\"\n        )\n        println(result)\n    } catch (e: Exception) {\n        println(\"Error calling GetStocksTrades: ${e.message}\")\n        e.printStackTrace()\n    }\n}\n```\n\nGet a [Full Market Snapshot](https://massive.com/docs/rest/stocks/snapshots/full-market-snapshot) for a all stocks.\n\n```kotlin\npackage org.openapitools.client\n\nimport org.openapitools.client.apis.DefaultApi\nimport org.openapitools.client.apis.DefaultApi.*\nimport org.openapitools.client.infrastructure.*\nimport org.openapitools.client.models.*\n\nfun main() {\n    ApiClient.apiKey[\"apiKey\"] = \"MASSIVE_API_KEY\"\n\n    val api = DefaultApi()\n    try {\n        val result = api.GetStocksSnapshotTickers(\n        )\n        println(result)\n    } catch (e: Exception) {\n        println(\"Error calling GetStocksSnapshotTickers: ${e.message}\")\n        e.printStackTrace()\n    }\n}\n```\n\nPlease see more detailed code in the [docs](https://massive.com/docs/rest/quickstart) for code snippets.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmassive-com%2Fclient-jvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmassive-com%2Fclient-jvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmassive-com%2Fclient-jvm/lists"}