diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 02c7785c..d7105d15 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @jbonzo @mmoghaddam385 @justinpolygon +* @justinpolygon @penelopus @davidwf-polygonio diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 313c2716..f0767d70 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -7,7 +7,7 @@ on: branches: - master schedule: - - cron: '33 12 * * 3' + - cron: "33 12 * * 3" jobs: analyze: name: analyze @@ -19,15 +19,15 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'python' ] + language: ["python"] steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + - name: Checkout repository + uses: actions/checkout@v3 + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c906b0d3..2c573262 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,20 +6,53 @@ on: permissions: contents: read jobs: - test: + release: runs-on: ubuntu-latest name: Release to PyPi steps: - uses: actions/checkout@v3 + - name: Fetch all branches + run: git fetch --prune --unshallow + - name: Check if commit is on allowed branch + run: | + if git branch -r --contains ${{ github.sha }} | grep -Eq 'origin/master|origin/polygon-lts'; then + echo "Allowed branch" + else + echo "Commit not on master or polygon-lts; skipping" + exit 1 + fi - name: Setup Python uses: actions/setup-python@v3 with: python-version: "3.10" - name: Setup Poetry uses: abatilo/actions-poetry@v2 + - name: Get package name + id: package + run: | + echo "name=$(python - <<'PY' + import sys + with open('pyproject.toml', 'r', encoding='utf-8') as f: + for line in f: + s = line.strip() + if s.startswith('name'): + # supports: name="foo" or name = "foo" and ignores inline comments + val = s.split('=', 1)[1].split('#', 1)[0].strip().strip('"').strip("'") + print(val) + break + PY + )" >> "$GITHUB_OUTPUT" - name: Configure Poetry - run: poetry config pypi-token.pypi ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD }} - - name: Install pypi deps + run: | + if [ "${{ steps.package.outputs.name }}" = "polygon-api-client" ]; then + poetry config pypi-token.pypi ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD }} + elif [ "${{ steps.package.outputs.name }}" = "massive" ]; then + poetry config pypi-token.pypi ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD_MASSIVE }} + else + echo "Unknown package name: ${{ steps.package.outputs.name }}; skipping publish" + exit 1 + fi + - name: Install deps run: poetry install - name: Get tag id: tag diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f87d2e29..602340ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] runs-on: ${{ matrix.os }} name: ${{ matrix.os }} Unit test ${{ matrix.python-version }} steps: diff --git a/.polygon/rest.json b/.massive/rest.json similarity index 92% rename from .polygon/rest.json rename to .massive/rest.json index fe330dce..3d088556 100644 --- a/.polygon/rest.json +++ b/.massive/rest.json @@ -21,7 +21,7 @@ } }, "AggregateLimitMax50000": { - "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", + "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", "example": 120, "in": "query", "name": "limit", @@ -63,7 +63,7 @@ }, "AggregateTimeTo": { "description": "The end of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-01-09", + "example": "2023-02-10", "in": "path", "name": "to", "required": true, @@ -101,6 +101,17 @@ "type": "string" } }, + "CryptoTickersQueryParam": { + "description": "A case-sensitive comma separated list of tickers to get snapshots for. For example, X:BTCUSD, X:ETHBTC, and X:BOBAUSD. Empty string defaults to querying all tickers.", + "in": "query", + "name": "tickers", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + } + }, "ForexTickerPathParam": { "description": "The ticker symbol of the currency pair.", "example": "C:EURUSD", @@ -111,6 +122,17 @@ "type": "string" } }, + "ForexTickersQueryParam": { + "description": "A case-sensitive comma separated list of tickers to get snapshots for. For example, C:EURUSD, C:GBPCAD, and C:AUDINR. Empty string defaults to querying all tickers.", + "in": "query", + "name": "tickers", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + } + }, "GeneralTickerPathParam": { "description": "The ticker symbol of the asset.", "example": "AAPL", @@ -131,7 +153,7 @@ }, "IndicesAggregateTimeFrom": { "description": "The start of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-03-10", + "example": "2023-03-13", "in": "path", "name": "from", "required": true, @@ -141,7 +163,7 @@ }, "IndicesAggregateTimeTo": { "description": "The end of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-03-10", + "example": "2023-03-24", "in": "path", "name": "to", "required": true, @@ -263,7 +285,7 @@ "AskExchangeId": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -283,7 +305,7 @@ "BidExchangeId": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -421,7 +443,7 @@ "type": "array" }, "type": { - "description": "The type or class of the security. (Full List of Ticker Types)", + "description": "The type or class of the security. (Full List of Ticker Types)", "type": "string" }, "updated": { @@ -439,7 +461,7 @@ "ConditionTypeMap": { "properties": { "condition": { - "description": "Polygon.io's mapping for condition codes. For more information, see our Trade Conditions Glossary.\n", + "description": "Massive.com's mapping for condition codes. For more information, see our Trade Conditions Glossary.\n", "type": "string" } }, @@ -448,7 +470,7 @@ "Conditions": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -461,7 +483,7 @@ "items": { "properties": { "id": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "market": { @@ -581,7 +603,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -605,7 +627,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -638,13 +660,13 @@ "conditions": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" }, "exchange": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" }, "price": { @@ -694,7 +716,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -718,7 +740,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -754,7 +776,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -778,7 +800,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -912,7 +934,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -948,7 +970,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -1230,7 +1252,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -1266,7 +1288,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -1421,7 +1443,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -1445,7 +1467,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -1460,7 +1482,7 @@ "type": "object" }, "CryptoTradeExchange": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" }, "Date": { @@ -1479,7 +1501,7 @@ "items": { "properties": { "code": { - "description": "A unique identifier for the exchange internal to Polygon.io. This is not an industry code or ISO standard.", + "description": "A unique identifier for the exchange internal to Massive.com. This is not an industry code or ISO standard.", "type": "string" }, "id": { @@ -1512,7 +1534,7 @@ "type": "array" }, "ExchangeId": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "Financial": { @@ -1998,7 +2020,7 @@ "type": "object" }, "Fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -2031,7 +2053,7 @@ "type": "number" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "timestamp": { @@ -2061,7 +2083,7 @@ "type": "object" }, "ForexExchangeId": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "ForexGroupedResults": { @@ -2165,7 +2187,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" } }, @@ -2204,7 +2226,7 @@ "type": "number" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "timestamp": { @@ -2409,7 +2431,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -2604,7 +2626,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -2854,7 +2876,7 @@ "type": "object" }, "Indicators": { - "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).\n", + "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).\n", "items": { "description": "The indicator code.\n", "type": "integer" @@ -3905,7 +3927,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -3972,7 +3994,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" } }, @@ -4175,7 +4197,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -4242,7 +4264,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" } }, @@ -4538,7 +4560,7 @@ "X": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -4549,13 +4571,13 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" }, "i": { - "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).\n", + "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).\n", "items": { "description": "The indicator code.\n", "type": "integer" @@ -4574,7 +4596,7 @@ "x": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -4654,7 +4676,7 @@ "X": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -4665,13 +4687,13 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" }, "i": { - "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).\n", + "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).\n", "items": { "description": "The indicator code.\n", "type": "integer" @@ -4690,7 +4712,7 @@ "x": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -4763,7 +4785,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -4791,7 +4813,7 @@ "type": "number" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "z": { @@ -4856,7 +4878,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -4884,7 +4906,7 @@ "type": "number" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "z": { @@ -5158,7 +5180,7 @@ }, "info": { "description": "The future of fintech.", - "title": "Polygon API", + "title": "Massive API", "version": "1.0.0" }, "openapi": "3.0.3", @@ -5250,7 +5272,7 @@ "description": "The amount to convert.", "format": "double", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -5267,15 +5289,15 @@ "type": "number" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "timestamp": { "description": "The Unix millisecond timestamp.", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMilliseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } } }, @@ -5286,7 +5308,7 @@ "bid" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastQuoteCurrencies" } }, @@ -5336,11 +5358,11 @@ "tags": [ "fx:conversion" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -5468,7 +5490,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -5492,7 +5514,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -5532,18 +5554,18 @@ "tags": [ "crypto:trades" ], - "x-polygon-deprecation": { + "x-massive-deprecation": { "date": 1654056060000, "replaces": { "name": "Trades v3", "path": "get_v3_trades__cryptoticker" } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -5689,7 +5711,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" } }, @@ -5727,18 +5749,18 @@ "tags": [ "fx:trades" ], - "x-polygon-deprecation": { + "x-massive-deprecation": { "date": 1654056060000, "replaces": { "name": "Quotes (BBO) v3", "path": "get_v3_quotes__fxticker" } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -5758,7 +5780,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -5767,7 +5789,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -5887,11 +5909,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/ema/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/ema/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -5974,9 +5996,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -5995,16 +6017,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -6015,7 +6037,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "EMAResults" } }, @@ -6039,18 +6061,18 @@ }, "summary": "Exponential Moving Average (EMA)", "tags": [ - "crpyto:aggregates" + "crypto:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/ema/{fxTicker}": { "get": { @@ -6066,7 +6088,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -6075,7 +6097,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -6205,11 +6227,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/ema/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/ema/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -6292,9 +6314,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -6313,16 +6335,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -6333,7 +6355,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "EMAResults" } }, @@ -6359,16 +6381,16 @@ "tags": [ "fx:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/ema/{indicesTicker}": { "get": { @@ -6384,7 +6406,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -6393,7 +6415,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -6523,11 +6545,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/ema/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MjE5MjAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0xJm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2UmdGltZXNwYW49ZGF5JnRpbWVzdGFtcC5sdD0xNjg3MjM3MjAwMDAwJndpbmRvdz01MA", + "next_url": "https://api.massive.com/v1/indicators/ema/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MjE5MjAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0xJm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2UmdGltZXNwYW49ZGF5JnRpbWVzdGFtcC5sdD0xNjg3MjM3MjAwMDAwJndpbmRvdz01MA", "request_id": "b9201816341441eed663a90443c0623a", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366449650?limit=226&sort=desc" + "url": "https://api.massive.com/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366449650?limit=226&sort=desc" }, "values": [ { @@ -6610,9 +6632,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -6631,16 +6653,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -6651,7 +6673,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "EMAResults" } }, @@ -6671,17 +6693,17 @@ "tags": [ "indices:aggregates" ], - "x-polygon-entitlement-allowed-limited-tickers": true, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-allowed-limited-tickers": true, + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/ema/{optionsTicker}": { "get": { @@ -6697,7 +6719,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -6706,7 +6728,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -6836,11 +6858,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/ema/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/ema/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -6923,9 +6945,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -6944,16 +6966,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -6964,7 +6986,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "EMAResults" } }, @@ -6990,16 +7012,16 @@ "tags": [ "options:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/ema/{stockTicker}": { "get": { @@ -7015,7 +7037,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -7024,7 +7046,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -7154,11 +7176,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/ema/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/ema/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -7241,9 +7263,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -7262,16 +7284,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -7282,7 +7304,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "EMAResults" } }, @@ -7308,11 +7330,11 @@ "tags": [ "stocks:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -7332,7 +7354,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -7341,7 +7363,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -7481,11 +7503,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/macd/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/macd/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -7576,9 +7598,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -7597,7 +7619,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -7605,7 +7627,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -7613,16 +7635,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -7633,7 +7655,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "MACDResults" } }, @@ -7659,16 +7681,16 @@ "tags": [ "crypto:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/macd/{fxTicker}": { "get": { @@ -7684,7 +7706,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -7693,7 +7715,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -7843,11 +7865,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/macd/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/macd/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -7938,9 +7960,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -7959,7 +7981,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -7967,7 +7989,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -7975,16 +7997,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -7995,7 +8017,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "MACDResults" } }, @@ -8021,16 +8043,16 @@ "tags": [ "fx:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/macd/{indicesTicker}": { "get": { @@ -8046,7 +8068,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -8055,7 +8077,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -8205,11 +8227,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/macd/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MTUwODAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0yJmxvbmdfd2luZG93PTI2Jm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2Umc2hvcnRfd2luZG93PTEyJnNpZ25hbF93aW5kb3c9OSZ0aW1lc3Bhbj1kYXkmdGltZXN0YW1wLmx0PTE2ODcyMTkyMDAwMDA", + "next_url": "https://api.massive.com/v1/indicators/macd/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MTUwODAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0yJmxvbmdfd2luZG93PTI2Jm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2Umc2hvcnRfd2luZG93PTEyJnNpZ25hbF93aW5kb3c9OSZ0aW1lc3Bhbj1kYXkmdGltZXN0YW1wLmx0PTE2ODcyMTkyMDAwMDA", "request_id": "2eeda0be57e83cbc64cc8d1a74e84dbd", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366537196?limit=121&sort=desc" + "url": "https://api.massive.com/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366537196?limit=121&sort=desc" }, "values": [ { @@ -8300,9 +8322,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -8321,7 +8343,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -8329,7 +8351,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -8337,16 +8359,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -8357,7 +8379,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "MACDResults" } }, @@ -8377,17 +8399,17 @@ "tags": [ "indices:aggregates" ], - "x-polygon-entitlement-allowed-limited-tickers": true, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-allowed-limited-tickers": true, + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/macd/{optionsTicker}": { "get": { @@ -8403,7 +8425,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -8412,7 +8434,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -8562,11 +8584,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/macd/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/macd/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -8657,9 +8679,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -8678,7 +8700,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -8686,7 +8708,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -8694,16 +8716,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -8714,7 +8736,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "MACDResults" } }, @@ -8740,16 +8762,16 @@ "tags": [ "options:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/macd/{stockTicker}": { "get": { @@ -8765,7 +8787,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -8774,7 +8796,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -8924,11 +8946,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/macd/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/macd/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -9019,9 +9041,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -9040,7 +9062,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -9048,7 +9070,7 @@ "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } }, @@ -9056,16 +9078,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -9076,7 +9098,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "MACDResults" } }, @@ -9102,11 +9124,11 @@ "tags": [ "stocks:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -9126,7 +9148,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -9135,7 +9157,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -9255,11 +9277,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/rsi/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/rsi/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -9342,9 +9364,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -9363,16 +9385,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -9383,7 +9405,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "RSIResults" } }, @@ -9407,18 +9429,18 @@ }, "summary": "Relative Strength Index (RSI)", "tags": [ - "crpyto:aggregates" + "crypto:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/rsi/{fxTicker}": { "get": { @@ -9434,7 +9456,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -9443,7 +9465,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -9573,11 +9595,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/rsi/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/rsi/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -9660,9 +9682,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -9681,16 +9703,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -9701,7 +9723,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "RSIResults" } }, @@ -9727,16 +9749,16 @@ "tags": [ "fx:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/rsi/{indicesTicker}": { "get": { @@ -9752,7 +9774,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -9761,7 +9783,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -9891,11 +9913,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/rsi/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MjE5MjAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0xJm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2UmdGltZXNwYW49ZGF5JnRpbWVzdGFtcC5sdD0xNjg3MjM3MjAwMDAwJndpbmRvdz0xNA", + "next_url": "https://api.massive.com/v1/indicators/rsi/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MjE5MjAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0xJm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2UmdGltZXNwYW49ZGF5JnRpbWVzdGFtcC5sdD0xNjg3MjM3MjAwMDAwJndpbmRvdz0xNA", "request_id": "28a8417f521f98e1d08f6ed7d1fbcad3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366658253?limit=66&sort=desc" + "url": "https://api.massive.com/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366658253?limit=66&sort=desc" }, "values": [ { @@ -9978,9 +10000,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -9999,16 +10021,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -10019,7 +10041,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "RSIResults" } }, @@ -10039,17 +10061,17 @@ "tags": [ "indices:aggregates" ], - "x-polygon-entitlement-allowed-limited-tickers": true, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-allowed-limited-tickers": true, + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/rsi/{optionsTicker}": { "get": { @@ -10065,7 +10087,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -10074,7 +10096,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -10204,11 +10226,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/rsi/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/rsi/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -10291,9 +10313,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -10312,16 +10334,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -10332,7 +10354,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "RSIResults" } }, @@ -10358,16 +10380,16 @@ "tags": [ "options:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/rsi/{stockTicker}": { "get": { @@ -10383,7 +10405,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -10392,7 +10414,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -10522,11 +10544,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/rsi/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/rsi/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -10609,9 +10631,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -10630,16 +10652,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -10650,7 +10672,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "RSIResults" } }, @@ -10676,11 +10698,11 @@ "tags": [ "stocks:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -10700,7 +10722,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -10709,7 +10731,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -10829,7 +10851,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/sma/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/sma/X:BTCUSD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { @@ -10855,7 +10877,7 @@ "vw": 74.7026 } ], - "url": "https://api.polygon.io/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/X:BTCUSD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -10938,9 +10960,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -10959,16 +10981,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -10979,7 +11001,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SMAResults" } }, @@ -11003,18 +11025,18 @@ }, "summary": "Simple Moving Average (SMA)", "tags": [ - "crpyto:aggregates" + "crypto:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/sma/{fxTicker}": { "get": { @@ -11030,7 +11052,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -11039,7 +11061,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -11169,7 +11191,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/sma/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/sma/C:USDAUD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { @@ -11195,7 +11217,7 @@ "vw": 74.7026 } ], - "url": "https://api.polygon.io/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/C:USDAUD/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -11278,9 +11300,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -11299,16 +11321,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -11319,7 +11341,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SMAResults" } }, @@ -11345,16 +11367,16 @@ "tags": [ "fx:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/sma/{indicesTicker}": { "get": { @@ -11370,7 +11392,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -11379,7 +11401,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -11509,11 +11531,11 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/sma/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MjE5MjAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0xJm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2UmdGltZXNwYW49ZGF5JnRpbWVzdGFtcC5sdD0xNjg3MjM3MjAwMDAwJndpbmRvdz01Mw", + "next_url": "https://api.massive.com/v1/indicators/sma/I:NDX?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTE1MDg0Ljk5OTM4OTgyMDAzJTJDJTIyaCUyMiUzQTAlMkMlMjJsJTIyJTNBMCUyQyUyMnQlMjIlM0ExNjg3MjE5MjAwMDAwJTdEJmFzPSZleHBhbmRfdW5kZXJseWluZz1mYWxzZSZsaW1pdD0xJm9yZGVyPWRlc2Mmc2VyaWVzX3R5cGU9Y2xvc2UmdGltZXNwYW49ZGF5JnRpbWVzdGFtcC5sdD0xNjg3MjM3MjAwMDAwJndpbmRvdz01Mw", "request_id": "4cae270008cb3f947e3f92c206e3888a", "results": { "underlying": { - "url": "https://api.polygon.io/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366378997?limit=240&sort=desc" + "url": "https://api.massive.com/v2/aggs/ticker/I:NDX/range/1/day/1678338000000/1687366378997?limit=240&sort=desc" }, "values": [ { @@ -11596,9 +11618,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -11617,16 +11639,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -11637,7 +11659,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SMAResults" } }, @@ -11657,17 +11679,17 @@ "tags": [ "indices:aggregates" ], - "x-polygon-entitlement-allowed-limited-tickers": true, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-allowed-limited-tickers": true, + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/sma/{optionsTicker}": { "get": { @@ -11683,7 +11705,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -11692,7 +11714,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -11822,7 +11844,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/sma/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/sma/O:SPY241220P00720000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { @@ -11848,7 +11870,7 @@ "vw": 74.7026 } ], - "url": "https://api.polygon.io/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/O:SPY241220P00720000/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -11931,9 +11953,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -11952,16 +11974,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -11972,7 +11994,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SMAResults" } }, @@ -11998,16 +12020,16 @@ "tags": [ "options:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v1/indicators/sma/{stockTicker}": { "get": { @@ -12023,7 +12045,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", @@ -12032,7 +12054,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -12162,7 +12184,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v1/indicators/sma/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v1/indicators/sma/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": { "underlying": { @@ -12188,7 +12210,7 @@ "vw": 74.7026 } ], - "url": "https://api.polygon.io/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" + "url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25" }, "values": [ { @@ -12271,9 +12293,9 @@ "n" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Aggregate", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -12292,16 +12314,16 @@ "description": "The Unix Msec timestamp from the last aggregate used in this calculation.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMicroseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "value": { "description": "The indicator value for this period.", "format": "float", "type": "number", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*float64" } } @@ -12312,7 +12334,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SMAResults" } }, @@ -12338,11 +12360,11 @@ "tags": [ "stocks:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -12399,17 +12421,17 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, "exchange": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.", "type": "integer" }, "price": { @@ -12425,9 +12447,9 @@ "timestamp": { "description": "The Unix millisecond timestamp.", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMilliseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } } }, @@ -12438,7 +12460,7 @@ "timestamp" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastTradeCrypto" } }, @@ -12480,11 +12502,11 @@ "tags": [ "crypto:last:trade" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -12546,15 +12568,15 @@ "type": "number" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "timestamp": { "description": "The Unix millisecond timestamp.", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IMilliseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } } }, @@ -12565,7 +12587,7 @@ "timestamp" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastQuoteCurrencies" } }, @@ -12607,11 +12629,11 @@ "tags": [ "fx:last:quote" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -12645,7 +12667,7 @@ "afterHours": { "description": "Whether or not the market is in post-market hours.", "type": "boolean", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*bool" } }, @@ -12661,14 +12683,14 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Currencies" } }, "earlyHours": { "description": "Whether or not the market is in pre-market hours.", "type": "boolean", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "*bool" } }, @@ -12688,7 +12710,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Exchanges" } }, @@ -12698,6 +12720,10 @@ "description": "The status of Cboe Streaming Market Indices Cryptocurrency (\"CCCY\") indices trading hours.", "type": "string" }, + "cgi": { + "description": "The status of Cboe Global Indices (\"CGI\") trading hours.", + "type": "string" + }, "dow_jones": { "description": "The status of Dow Jones indices trading hours", "type": "string" @@ -12731,7 +12757,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IndicesGroups" } }, @@ -12755,7 +12781,7 @@ "tags": [ "reference:stocks:market" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } @@ -12834,7 +12860,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "MarketHoliday" } }, @@ -12849,7 +12875,7 @@ "tags": [ "reference:stocks:market" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } @@ -12968,7 +12994,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -12992,7 +13018,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -13028,7 +13054,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -13052,7 +13078,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -13102,11 +13128,11 @@ "tags": [ "crypto:open-close" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -13226,12 +13252,12 @@ "tags": [ "stocks:open-close" ], - "x-polygon-entitlement-allowed-limited-tickers": true, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-allowed-limited-tickers": true, + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" } @@ -13372,11 +13398,11 @@ "tags": [ "options:open-close" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } @@ -13517,11 +13543,11 @@ "tags": [ "stocks:open-close" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -13555,7 +13581,7 @@ "pattern": "^[0-9]{8}$", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -13569,7 +13595,7 @@ "pattern": "^[0-9]{8}$", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -13581,7 +13607,7 @@ "nullable": true, "type": "boolean" }, - "x-polygon-go-id": "HasXBRL" + "x-massive-go-id": "HasXBRL" }, { "description": "Query by entity company name.", @@ -13591,7 +13617,7 @@ "example": "Facebook Inc", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "search": true } }, @@ -13816,9 +13842,9 @@ "sic" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SECCompanyData", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "relation": { @@ -13833,9 +13859,9 @@ "relation" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SECFilingEntity", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -13885,13 +13911,12 @@ "files_count", "source_url", "download_url", - "entities", - "acceptance_datetime" + "entities" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SECFiling", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -13917,11 +13942,11 @@ "tags": [ "reference:sec:filings" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "sort": { "default": "filing_date", "enum": [ @@ -13931,7 +13956,7 @@ } } }, - "x-polygon-draft": true + "x-massive-draft": true }, "/v1/reference/sec/filings/{filing_id}": { "get": { @@ -13956,121 +13981,125 @@ "example": {}, "schema": { "properties": { - "acceptance_datetime": { - "description": "The datetime when the filing was accepted by EDGAR in EST (format: YYYYMMDDHHMMSS)", - "type": "string" - }, - "accession_number": { - "description": "Filing Accession Number", - "type": "string" - }, - "entities": { - "description": "Entities related to the filing (e.g. the document filers).", - "items": { - "description": "A filing entity (e.g. the document filer).", - "properties": { - "company_data": { + "results": { + "properties": { + "acceptance_datetime": { + "description": "The datetime when the filing was accepted by EDGAR in EST (format: YYYYMMDDHHMMSS)", + "type": "string" + }, + "accession_number": { + "description": "Filing Accession Number", + "type": "string" + }, + "entities": { + "description": "Entities related to the filing (e.g. the document filers).", + "items": { + "description": "A filing entity (e.g. the document filer).", "properties": { - "cik": { - "description": "Central Index Key (CIK) Number", - "type": "string" - }, - "name": { - "example": "Facebook Inc", - "type": "string" - }, - "sic": { - "description": "Standard Industrial Classification (SIC)", - "type": "string" + "company_data": { + "properties": { + "cik": { + "description": "Central Index Key (CIK) Number", + "type": "string" + }, + "name": { + "example": "Facebook Inc", + "type": "string" + }, + "sic": { + "description": "Standard Industrial Classification (SIC)", + "type": "string" + }, + "ticker": { + "description": "Ticker", + "type": "string" + } + }, + "required": [ + "name", + "cik", + "sic" + ], + "type": "object", + "x-massive-go-type": { + "name": "SECCompanyData", + "path": "github.com/massive-com/go-lib-models/v2/globals" + } }, - "ticker": { - "description": "Ticker", + "relation": { + "description": "Relationship of this entity to the filing.", + "enum": [ + "filer" + ], "type": "string" } }, "required": [ - "name", - "cik", - "sic" + "relation" ], "type": "object", - "x-polygon-go-type": { - "name": "SECCompanyData", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "x-massive-go-type": { + "name": "SECFilingEntity", + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, - "relation": { - "description": "Relationship of this entity to the filing.", - "enum": [ - "filer" - ], - "type": "string" - } + "type": "array" }, - "required": [ - "relation" - ], - "type": "object", - "x-polygon-go-type": { - "name": "SECFilingEntity", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "files_count": { + "description": "The number of files associated with the filing.", + "format": "int64", + "type": "integer" + }, + "filing_date": { + "description": "The date when the filing was filed in YYYYMMDD format.", + "example": "20210101", + "pattern": "^[0-9]{8}$", + "type": "string" + }, + "id": { + "description": "Unique identifier for the filing.", + "type": "string" + }, + "period_of_report_date": { + "description": "The period of report for the filing in YYYYMMDD format.", + "example": "20210101", + "pattern": "^[0-9]{8}$", + "type": "string" + }, + "source_url": { + "description": "The source URL is a link back to the upstream source for this filing\ndocument.", + "example": "https://www.sec.gov/Archives/edgar/data/0001326801/000132680119000037/0001326801-19-000037-index.html", + "format": "uri", + "type": "string" + }, + "type": { + "description": "Filing Type", + "enum": [ + "10-K", + "10-Q" + ], + "type": "string" } }, - "type": "array" - }, - "files_count": { - "description": "The number of files associated with the filing.", - "format": "int64", - "type": "integer" - }, - "filing_date": { - "description": "The date when the filing was filed in YYYYMMDD format.", - "example": "20210101", - "pattern": "^[0-9]{8}$", - "type": "string" - }, - "id": { - "description": "Unique identifier for the filing.", - "type": "string" - }, - "period_of_report_date": { - "description": "The period of report for the filing in YYYYMMDD format.", - "example": "20210101", - "pattern": "^[0-9]{8}$", - "type": "string" - }, - "source_url": { - "description": "The source URL is a link back to the upstream source for this filing\ndocument.", - "example": "https://www.sec.gov/Archives/edgar/data/0001326801/000132680119000037/0001326801-19-000037-index.html", - "format": "uri", - "type": "string" - }, - "type": { - "description": "Filing Type", - "enum": [ - "10-K", - "10-Q" + "required": [ + "id", + "accession_number", + "type", + "filing_date", + "period_of_report_date", + "files_count", + "source_url", + "download_url", + "entities" ], - "type": "string" + "type": "object", + "x-massive-go-type": { + "name": "SECFiling", + "path": "github.com/massive-com/go-lib-models/v2/globals" + } } }, - "required": [ - "id", - "accession_number", - "type", - "filing_date", - "period_of_report_date", - "files_count", - "source_url", - "download_url", - "entities", - "acceptance_datetime" - ], - "type": "object", - "x-polygon-go-type": { - "name": "SECFiling", - "path": "github.com/polygon-io/go-lib-models/v2/globals" - } + "type": "object" } } }, @@ -14081,12 +14110,12 @@ "tags": [ "reference:sec:filing" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } }, - "x-polygon-draft": true + "x-massive-draft": true }, "/v1/reference/sec/filings/{filing_id}/files": { "get": { @@ -14113,7 +14142,7 @@ "min": 1, "type": "integer" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -14125,7 +14154,7 @@ "description": "The name for the file.", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -14319,9 +14348,9 @@ "source_url" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SECFilingFile", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -14347,11 +14376,11 @@ "tags": [ "reference:sec:filing:files" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "sort": { "default": "sequence", "enum": [ @@ -14361,7 +14390,7 @@ } } }, - "x-polygon-draft": true + "x-massive-draft": true }, "/v1/reference/sec/filings/{filing_id}/files/{file_id}": { "get": { @@ -14440,9 +14469,9 @@ "source_url" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SECFilingFile", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } } } @@ -14454,12 +14483,120 @@ "tags": [ "reference:sec:filing:file" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } }, - "x-polygon-draft": true + "x-massive-draft": true + }, + "/v1/related-companies/{ticker}": { + "get": { + "description": "Get a list of tickers related to the queried ticker based on News and Returns data.", + "operationId": "GetRelatedCompanies", + "parameters": [ + { + "description": "The ticker symbol to search.", + "example": "AAPL", + "in": "path", + "name": "ticker", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "request_id": "31d59dda-80e5-4721-8496-d0d32a654afe", + "results": [ + { + "ticker": "MSFT" + }, + { + "ticker": "GOOGL" + }, + { + "ticker": "AMZN" + }, + { + "ticker": "FB" + }, + { + "ticker": "TSLA" + }, + { + "ticker": "NVDA" + }, + { + "ticker": "INTC" + }, + { + "ticker": "ADBE" + }, + { + "ticker": "NFLX" + }, + { + "ticker": "PYPL" + } + ], + "status": "OK", + "stock_symbol": "AAPL" + }, + "schema": { + "properties": { + "request_id": { + "description": "A request id assigned by the server.", + "type": "string" + }, + "results": { + "items": { + "description": "The tickers related to the requested ticker.", + "properties": { + "ticker": { + "description": "A ticker related to the requested ticker.", + "type": "string" + } + }, + "required": [ + "ticker" + ], + "type": "object" + }, + "type": "array" + }, + "status": { + "description": "The status of this request's response.", + "type": "string" + }, + "ticker": { + "description": "The ticker being queried.", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Related Companies." + }, + "401": { + "description": "Unauthorized - Check our API Key and account status" + } + }, + "summary": "Related Companies", + "tags": [ + "reference:related:companies" + ], + "x-massive-entitlement-data-type": { + "description": "Reference data", + "name": "reference" + } + } }, "/v1/summaries": { "get": { @@ -14467,7 +14604,7 @@ "operationId": "SnapshotSummary", "parameters": [ { - "description": "Comma separated list of tickers. This API currently supports Stocks/Equities, Crypto, Options, and Forex. See the tickers endpoint for more details on supported tickers. If no tickers are passed then no results will be returned.\n\nWarning: The maximum number of characters allowed in a URL are subject to your technology stack.", + "description": "Comma separated list of tickers. This API currently supports Stocks/Equities, Crypto, Options, and Forex. See the tickers endpoint for more details on supported tickers. If no tickers are passed then no results will be returned.\n\nWarning: The maximum number of characters allowed in a URL are subject to your technology stack.", "example": "NCLH,O:SPY250321C00380000,C:EURUSD,X:BTCUSD", "in": "query", "name": "ticker.any_of", @@ -14485,8 +14622,8 @@ "results": [ { "branding": { - "icon_url": "https://api.polygon.io/icon.png", - "logo_url": "https://api.polygon.io/logo.svg" + "icon_url": "https://api.massive.com/icon.png", + "logo_url": "https://api.massive.com/logo.svg" }, "last_updated": 1679597116344223500, "market_status": "closed", @@ -14507,7 +14644,7 @@ "volume": 37 }, "ticker": "NCLH", - "type": "stock" + "type": "stocks" }, { "last_updated": 1679597116344223500, @@ -14558,8 +14695,8 @@ }, { "branding": { - "icon_url": "https://api.polygon.io/icon.png", - "logo_url": "https://api.polygon.io/logo.svg" + "icon_url": "https://api.massive.com/icon.png", + "logo_url": "https://api.massive.com/logo.svg" }, "last_updated": 1679597116344223500, "market_status": "open", @@ -14605,7 +14742,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Branding" } }, @@ -14617,9 +14754,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "market_status": { @@ -14658,9 +14795,9 @@ "description": "The contract's expiration date in YYYY-MM-DD format.", "format": "date", "type": "string", - "x-polygon-go-type": { - "name": "IDaysPolygonDateString", - "path": "github.com/polygon-io/ptime" + "x-massive-go-type": { + "name": "IDaysMassiveDateString", + "path": "github.com/massive-com/ptime" } }, "shares_per_contract": { @@ -14687,7 +14824,7 @@ "underlying_ticker" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Options" } }, @@ -14758,6 +14895,16 @@ "format": "double", "type": "number" }, + "regular_trading_change": { + "description": "Today's change in regular trading hours, difference between current price and previous trading day's close, otherwise difference between today's close and previous day's close.", + "format": "double", + "type": "number" + }, + "regular_trading_change_percent": { + "description": "Today's regular trading change as a percentage.", + "format": "double", + "type": "number" + }, "volume": { "description": "The trading volume for the asset for the day.", "format": "double", @@ -14774,7 +14921,7 @@ "previous_close" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Session" } }, @@ -14794,18 +14941,10 @@ } }, "required": [ - "ticker", - "name", - "price", - "branding", - "market_status", - "type", - "session", - "options", - "last_updated" + "ticker" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SummaryResult" } }, @@ -14828,11 +14967,11 @@ } }, "summary": "Summaries", - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -15025,11 +15164,11 @@ "tags": [ "crypto:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -15222,11 +15361,11 @@ "tags": [ "fx:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -15431,11 +15570,11 @@ "tags": [ "stocks:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -15619,11 +15758,11 @@ "tags": [ "crypto:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -15685,7 +15824,7 @@ }, { "description": "The end of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-01-09", + "example": "2023-02-10", "in": "path", "name": "to", "required": true, @@ -15715,7 +15854,7 @@ } }, { - "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", + "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", "example": 120, "in": "query", "name": "limit", @@ -15883,11 +16022,11 @@ "tags": [ "crypto:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -16072,11 +16211,11 @@ "tags": [ "fx:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -16138,7 +16277,7 @@ }, { "description": "The end of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-01-09", + "example": "2023-02-10", "in": "path", "name": "to", "required": true, @@ -16168,7 +16307,7 @@ } }, { - "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", + "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", "example": 120, "in": "query", "name": "limit", @@ -16326,11 +16465,11 @@ "tags": [ "fx:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -16477,12 +16616,12 @@ "tags": [ "indices:aggregates" ], - "x-polygon-entitlement-allowed-limited-tickers": true, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-allowed-limited-tickers": true, + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" } @@ -16534,7 +16673,7 @@ }, { "description": "The start of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-03-10", + "example": "2023-03-13", "in": "path", "name": "from", "required": true, @@ -16544,7 +16683,7 @@ }, { "description": "The end of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-03-10", + "example": "2023-03-24", "in": "path", "name": "to", "required": true, @@ -16565,7 +16704,7 @@ } }, { - "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", + "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", "example": 120, "in": "query", "name": "limit", @@ -16706,12 +16845,12 @@ "tags": [ "indices:aggregates" ], - "x-polygon-entitlement-allowed-limited-tickers": true, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-allowed-limited-tickers": true, + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" } @@ -16891,11 +17030,11 @@ "tags": [ "options:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } @@ -16957,7 +17096,7 @@ }, { "description": "The end of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-01-09", + "example": "2023-02-10", "in": "path", "name": "to", "required": true, @@ -16987,7 +17126,7 @@ } }, { - "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", + "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", "example": 120, "in": "query", "name": "limit", @@ -17156,11 +17295,11 @@ "tags": [ "options:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } @@ -17339,11 +17478,11 @@ "tags": [ "stocks:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -17405,7 +17544,7 @@ }, { "description": "The end of the aggregate time window. Either a date with the format YYYY-MM-DD or a millisecond timestamp.", - "example": "2023-01-09", + "example": "2023-02-10", "in": "path", "name": "to", "required": true, @@ -17435,7 +17574,7 @@ } }, { - "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", + "description": "Limits the number of base aggregates queried to create the aggregate results. Max 50000 and Default 5000.\nRead more about how limit is used to calculate aggregate results in our article on\nAggregate Data API Improvements.\n", "example": 120, "in": "query", "name": "limit", @@ -17450,7 +17589,7 @@ "application/json": { "example": { "adjusted": true, - "next_url": "https://api.polygon.io/v2/aggs/ticker/AAPL/range/1/day/1578114000000/2020-01-10?cursor=bGltaXQ9MiZzb3J0PWFzYw", + "next_url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/1578114000000/2020-01-10?cursor=bGltaXQ9MiZzb3J0PWFzYw", "queryCount": 2, "request_id": "6a7e466379af0a71039d60cc78e72282", "results": [ @@ -17617,11 +17756,11 @@ "tags": [ "stocks:aggregates" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -17641,7 +17780,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" } ], "responses": { @@ -17687,18 +17826,18 @@ "type": "string" }, "X": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "c": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, @@ -17709,12 +17848,12 @@ "i": { "description": "A list of indicator codes.", "items": { - "description": "The indicator codes. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).", + "description": "The indicator codes. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, @@ -17737,7 +17876,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "y": { @@ -17756,7 +17895,7 @@ "q" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastQuoteResult" } }, @@ -17792,7 +17931,7 @@ "tags": [ "stocks:last:quote" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -17802,11 +17941,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -17866,12 +18005,12 @@ "c": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, @@ -17911,7 +18050,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "y": { @@ -17933,7 +18072,7 @@ "x" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastTradeResult" } }, @@ -17969,7 +18108,7 @@ "tags": [ "options:last:trade" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -17979,16 +18118,16 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v2/last/trade/{stocksTicker}": { "get": { @@ -18004,7 +18143,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" } ], "responses": { @@ -18046,12 +18185,12 @@ "c": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, @@ -18091,7 +18230,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "y": { @@ -18113,7 +18252,7 @@ "x" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastTradeResult" } }, @@ -18149,7 +18288,7 @@ "tags": [ "stocks:last:trade" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -18159,11 +18298,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -18175,14 +18314,14 @@ "operationId": "ListNews", "parameters": [ { - "description": "Return results that contain this ticker.", + "description": "Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc.", "in": "query", "name": "ticker", "schema": { "description": "The exchange symbol that this item is traded under.", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -18202,7 +18341,7 @@ } ] }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -18355,56 +18494,39 @@ "application/json": { "example": { "count": 1, - "next_url": "https://api.polygon.io:443/v2/reference/news?cursor=eyJsaW1pdCI6MSwic29ydCI6InB1Ymxpc2hlZF91dGMiLCJvcmRlciI6ImFzY2VuZGluZyIsInRpY2tlciI6e30sInB1Ymxpc2hlZF91dGMiOnsiZ3RlIjoiMjAyMS0wNC0yNiJ9LCJzZWFyY2hfYWZ0ZXIiOlsxNjE5NDA0Mzk3MDAwLG51bGxdfQ", + "next_url": "https://api.massive.com:443/v2/reference/news?cursor=eyJsaW1pdCI6MSwic29ydCI6InB1Ymxpc2hlZF91dGMiLCJvcmRlciI6ImFzY2VuZGluZyIsInRpY2tlciI6e30sInB1Ymxpc2hlZF91dGMiOnsiZ3RlIjoiMjAyMS0wNC0yNiJ9LCJzZWFyY2hfYWZ0ZXIiOlsxNjE5NDA0Mzk3MDAwLG51bGxdfQ", "request_id": "831afdb0b8078549fed053476984947a", "results": [ { - "amp_url": "https://amp.benzinga.com/amp/content/20784086", - "article_url": "https://www.benzinga.com/markets/cryptocurrency/21/04/20784086/cathie-wood-adds-more-coinbase-skillz-trims-square", - "author": "Rachit Vats", - "description": "

Cathie Wood-led Ark Investment Management on Friday snapped up another 221,167 shares of the cryptocurrency exchange Coinbase Global Inc (NASDAQ COIN) worth about $64.49 million on the stock’s Friday’s dip and also its fourth-straight loss.

\n

The investment firm’s Ark Innovation ETF (NYSE ARKK) bought the shares of the company that closed 0.63% lower at $291.60 on Friday, giving the cryptocurrency exchange a market cap of $58.09 billion. Coinbase’s market cap has dropped from $85.8 billion on its blockbuster listing earlier this month.

\n

The New York-based company also added another 3,873 shares of the mobile gaming company Skillz Inc (NYSE SKLZ), just a day after snapping 1.2 million shares of the stock.

\n

ARKK bought the shares of the company which closed ...

Full story available on Benzinga.com

", - "id": "nJsSJJdwViHZcw5367rZi7_qkXLfMzacXBfpv-vD9UA", - "image_url": "https://cdn2.benzinga.com/files/imagecache/og_image_social_share_1200x630/images/story/2012/andre-francois-mckenzie-auhr4gcqcce-unsplash.jpg?width=720", + "amp_url": "https://m.uk.investing.com/news/stock-market-news/markets-are-underestimating-fed-cuts-ubs-3559968?ampMode=1", + "article_url": "https://uk.investing.com/news/stock-market-news/markets-are-underestimating-fed-cuts-ubs-3559968", + "author": "Sam Boughedda", + "description": "UBS analysts warn that markets are underestimating the extent of future interest rate cuts by the Federal Reserve, as the weakening economy is likely to justify more cuts than currently anticipated.", + "id": "8ec638777ca03b553ae516761c2a22ba2fdd2f37befae3ab6fdab74e9e5193eb", + "image_url": "https://i-invdn-com.investing.com/news/LYNXNPEC4I0AL_L.jpg", + "insights": [ + { + "sentiment": "positive", + "sentiment_reasoning": "UBS analysts are providing a bullish outlook on the extent of future Federal Reserve rate cuts, suggesting that markets are underestimating the number of cuts that will occur.", + "ticker": "UBS" + } + ], "keywords": [ - "Sector ETFs", - "Penny Stocks", - "Cryptocurrency", - "Small Cap", - "Markets", - "Trading Ideas", - "ETFs" + "Federal Reserve", + "interest rates", + "economic data" ], - "published_utc": "2021-04-26T02:33:17Z", + "published_utc": "2024-06-24T18:33:53Z", "publisher": { - "favicon_url": "https://s3.polygon.io/public/public/assets/news/favicons/benzinga.ico", - "homepage_url": "https://www.benzinga.com/", - "logo_url": "https://s3.polygon.io/public/public/assets/news/logos/benzinga.svg", - "name": "Benzinga" + "favicon_url": "https://s3.massive.com/public/assets/news/favicons/investing.ico", + "homepage_url": "https://www.investing.com/", + "logo_url": "https://s3.massive.com/public/assets/news/logos/investing.png", + "name": "Investing.com" }, "tickers": [ - "DOCU", - "DDD", - "NIU", - "ARKF", - "NVDA", - "SKLZ", - "PCAR", - "MASS", - "PSTI", - "SPFR", - "TREE", - "PHR", - "IRDM", - "BEAM", - "ARKW", - "ARKK", - "ARKG", - "PSTG", - "SQ", - "IONS", - "SYRS" + "UBS" ], - "title": "Cathie Wood Adds More Coinbase, Skillz, Trims Square" + "title": "Markets are underestimating Fed cuts: UBS By Investing.com - Investing.com UK" } ], "status": "OK" @@ -18450,6 +18572,37 @@ "description": "The article's image URL.", "type": "string" }, + "insights": { + "description": "The insights related to the article.", + "items": { + "properties": { + "sentiment": { + "description": "The sentiment of the insight.", + "enum": [ + "positive", + "neutral", + "negative" + ], + "type": "string" + }, + "sentiment_reasoning": { + "description": "The reasoning behind the sentiment.", + "type": "string" + }, + "ticker": { + "description": "The ticker symbol associated with the insight.", + "type": "string" + } + }, + "required": [ + "ticker", + "sentiment", + "sentiment_reasoning" + ], + "type": "object" + }, + "type": "array" + }, "keywords": { "description": "The keywords associated with the article (which will vary depending on\nthe publishing source).", "items": { @@ -18511,13 +18664,13 @@ "tickers" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "NewsArticleMetadata", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "ListNewsArticlesResults" } }, @@ -18530,7 +18683,7 @@ } }, "text/csv": { - "example": "id,publisher_name,publisher_homepage_url,publisher_logo_url,publisher_favicon_url,title,author,published_utc,article_url,tickers,amp_url,image_url,description,keywords\nnJsSJJdwViHZcw5367rZi7_qkXLfMzacXBfpv-vD9UA,Benzinga,https://www.benzinga.com/,https://s3.polygon.io/public/public/assets/news/logos/benzinga.svg,https://s3.polygon.io/public/public/assets/news/favicons/benzinga.ico,\"Cathie Wood Adds More Coinbase, Skillz, Trims Square\",Rachit Vats,2021-04-26T02:33:17Z,https://www.benzinga.com/markets/cryptocurrency/21/04/20784086/cathie-wood-adds-more-coinbase-skillz-trims-square,\"DOCU,DDD,NIU,ARKF,NVDA,SKLZ,PCAR,MASS,PSTI,SPFR,TREE,PHR,IRDM,BEAM,ARKW,ARKK,ARKG,PSTG,SQ,IONS,SYRS\",https://amp.benzinga.com/amp/content/20784086,https://cdn2.benzinga.com/files/imagecache/og_image_social_share_1200x630/images/story/2012/andre-francois-mckenzie-auhr4gcqcce-unsplash.jpg?width=720,\"

Cathie Wood-led Ark Investment Management on Friday snapped up another 221,167 shares of the cryptocurrency exchange Coinbase Global Inc (NASDAQ COIN) worth about $64.49 million on the stock’s Friday’s dip and also its fourth-straight loss.

The investment firm’s Ark Innovation ETF (NYSE ARKK) bought the shares of the company that closed 0.63% lower at $291.60 on Friday, giving the cryptocurrency exchange a market cap of $58.09 billion. Coinbase’s market cap has dropped from $85.8 billion on its blockbuster listing earlier this month.

The New York-based company also added another 3,873 shares of the mobile gaming company Skillz Inc (NYSE SKLZ), just a day after snapping 1.2 million shares of the stock.

ARKK bought the shares of the company which closed ...

Full story available on Benzinga.com

\",\"Sector ETFs,Penny Stocks,Cryptocurrency,Small Cap,Markets,Trading Ideas,ETFs\"\n", + "example": "id,publisher_name,publisher_homepage_url,publisher_logo_url,publisher_favicon_url,title,author,published_utc,article_url,ticker,amp_url,image_url,description,keywords,sentiment,sentiment_reasoning\n8ec638777ca03b553ae516761c2a22ba2fdd2f37befae3ab6fdab74e9e5193eb,Investing.com,https://www.investing.com/,https://s3.massive.com/public/assets/news/logos/investing.png,https://s3.massive.com/public/assets/news/favicons/investing.ico,Markets are underestimating Fed cuts: UBS By Investing.com - Investing.com UK,Sam Boughedda,1719254033000000000,https://uk.investing.com/news/stock-market-news/markets-are-underestimating-fed-cuts-ubs-3559968,UBS,https://m.uk.investing.com/news/stock-market-news/markets-are-underestimating-fed-cuts-ubs-3559968?ampMode=1,https://i-invdn-com.investing.com/news/LYNXNPEC4I0AL_L.jpg,\"UBS analysts warn that markets are underestimating the extent of future interest rate cuts by the Federal Reserve, as the weakening economy is likely to justify more cuts than currently anticipated.\",\"Federal Reserve,interest rates,economic data\",positive,\"UBS analysts are providing a bullish outlook on the extent of future Federal Reserve rate cuts, suggesting that markets are underestimating the number of cuts that will occur.\"\n", "schema": { "type": "string" } @@ -18549,11 +18702,11 @@ "tags": [ "reference:news" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "sort": { "default": "published_utc", "enum": [ @@ -18573,7 +18726,7 @@ "description": "Get the current minute, day, and previous day\u2019s aggregate, as well as the last trade and quote for all traded cryptocurrency symbols.\n
\n
\nNote: Snapshot data is cleared at 12am EST and gets populated as data is received from the exchanges. This can happen as early as 4am EST.\n", "parameters": [ { - "description": "A case-sensitive comma separated list of tickers to get snapshots for. For example, AAPL,TSLA,GOOG. Empty string defaults to querying all tickers.", + "description": "A case-sensitive comma separated list of tickers to get snapshots for. For example, X:BTCUSD, X:ETHBTC, and X:BOBAUSD. Empty string defaults to querying all tickers.", "in": "query", "name": "tickers", "schema": { @@ -18699,7 +18852,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -18735,7 +18888,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -18905,7 +19058,7 @@ "tags": [ "crypto:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -18915,11 +19068,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -19065,7 +19218,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -19101,7 +19254,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -19269,7 +19422,7 @@ "tags": [ "crypto:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -19279,11 +19432,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -19457,7 +19610,10 @@ "tags": [ "crypto:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-deprecation": { + "date": 1719838800000 + }, + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -19467,11 +19623,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -19603,7 +19759,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -19639,7 +19795,7 @@ "type": "integer" }, "x": { - "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", + "description": "The exchange that this crypto trade happened on. \nSee Exchanges for a mapping of exchanges to IDs.\n", "type": "integer" } }, @@ -19809,7 +19965,7 @@ "tags": [ "crypto:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -19819,11 +19975,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" } @@ -19834,7 +19990,7 @@ "description": "Get the current minute, day, and previous day\u2019s aggregate, as well as the last trade and quote for all traded forex symbols.\n
\n
\nNote: Snapshot data is cleared at 12am EST and gets populated as data is received from the exchanges. This can happen as early as 4am EST.\n", "parameters": [ { - "description": "A case-sensitive comma separated list of tickers to get snapshots for. For example, AAPL,TSLA,GOOG. Empty string defaults to querying all tickers.", + "description": "A case-sensitive comma separated list of tickers to get snapshots for. For example, C:EURUSD, C:GBPCAD, and C:AUDINR. Empty string defaults to querying all tickers.", "in": "query", "name": "tickers", "schema": { @@ -19948,7 +20104,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -20121,7 +20277,7 @@ "tags": [ "fx:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -20131,11 +20287,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -20270,7 +20426,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -20441,7 +20597,7 @@ "tags": [ "fx:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -20451,11 +20607,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -20583,7 +20739,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -20758,7 +20914,7 @@ "tags": [ "fx:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -20768,11 +20924,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" } @@ -20935,7 +21091,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -21002,7 +21158,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" } }, @@ -21173,7 +21329,7 @@ "tags": [ "stocks:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -21183,11 +21339,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -21346,7 +21502,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -21413,7 +21569,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" } }, @@ -21582,7 +21738,7 @@ "tags": [ "stocks:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -21592,11 +21748,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -21604,7 +21760,7 @@ }, "/v2/snapshot/locale/us/markets/stocks/{direction}": { "get": { - "description": "Get the most up-to-date market data for the current top 20 gainers or losers of the day in the stocks/equities markets.\n
\n
\nTop gainers are those tickers whose price has increased by the highest percentage since the previous day's close.\nTop losers are those tickers whose price has decreased by the highest percentage since the previous day's close.\n
\n
\nNote: Snapshot data is cleared at 3:30am EST and gets populated as data is received from the exchanges.\n", + "description": "Get the most up-to-date market data for the current top 20 gainers or losers of the day in the stocks/equities markets.\n
\n
\nTop gainers are those tickers whose price has increased by the highest percentage since the previous day's close.\nTop losers are those tickers whose price has decreased by the highest percentage since the previous day's close.\nThis output will only include tickers with a trading volume of 10,000 or more.\n
\n
\nNote: Snapshot data is cleared at 3:30am EST and gets populated as data is received from the exchanges.\n", "parameters": [ { "description": "The direction of the snapshot results to return.\n", @@ -21756,7 +21912,7 @@ "type": "object" }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.", "format": "double", "type": "number" }, @@ -21823,7 +21979,7 @@ "type": "integer" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" } }, @@ -21994,7 +22150,7 @@ "tags": [ "stocks:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -22004,11 +22160,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -22245,7 +22401,7 @@ "X": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -22256,13 +22412,13 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" }, "i": { - "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).\n", + "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).\n", "items": { "description": "The indicator code.\n", "type": "integer" @@ -22281,7 +22437,7 @@ "x": { "allOf": [ { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, { @@ -22328,18 +22484,18 @@ "tags": [ "stocks:quotes" ], - "x-polygon-deprecation": { + "x-massive-deprecation": { "date": 1654056060000, "replaces": { "name": "Quotes (NBBO) v3", "path": "get_v3_quotes__stockticker" } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -22565,7 +22721,7 @@ "c": { "description": "A list of condition codes.\n", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/get_v3_reference_conditions)\nfor a mapping to exchange conditions.\n", "type": "integer" }, "type": "array" @@ -22593,7 +22749,7 @@ "type": "number" }, "x": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "z": { @@ -22634,18 +22790,18 @@ "tags": [ "stocks:trades" ], - "x-polygon-deprecation": { + "x-massive-deprecation": { "date": 1654056060000, "replaces": { "name": "Trades v3", "path": "get_v3_trades__stockticker" } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" } @@ -22673,7 +22829,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -22724,11 +22880,11 @@ } }, { - "description": "Limit the number of results returned, default is 10 and max is 50000.", + "description": "Limit the number of results returned, default is 1000 and max is 50000.", "in": "query", "name": "limit", "schema": { - "default": 10, + "default": 1000, "example": 10, "maximum": 50000, "minimum": 1, @@ -22754,7 +22910,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v3/quotes/C:EUR-USD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/quotes/C:EUR-USD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": [ { @@ -22805,9 +22961,9 @@ "description": "The nanosecond Exchange Unix Timestamp. This is the timestamp of when the quote was generated at the exchange.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } } }, @@ -22843,16 +22999,18 @@ "tags": [ "fx:quotes" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Forex data", "name": "fx" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { + "default": 1000, + "example": 10, "max": 50000 }, "order": { @@ -22865,7 +23023,7 @@ ] } }, - "x-polygon-replaces": { + "x-massive-replaces": { "date": 1654056060000, "replaces": { "name": "Historic Forex Ticks", @@ -22873,7 +23031,7 @@ } } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v3/quotes/{optionsTicker}": { "get": { @@ -22889,7 +23047,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.", @@ -22898,7 +23056,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -22949,11 +23107,11 @@ } }, { - "description": "Limit the number of results returned, default is 10 and max is 50000.", + "description": "Limit the number of results returned, default is 1000 and max is 50000.", "in": "query", "name": "limit", "schema": { - "default": 10, + "default": 1000, "example": 10, "maximum": 50000, "minimum": 1, @@ -22979,7 +23137,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v3/quotes/O:SPY241220P00720000?cursor=YXA9NzY5Nzg0NzAxJmFzPSZsaW1pdD0xMCZvcmRlcj1kZXNjJnNvcnQ9dGltZXN0YW1wJnRpbWVzdGFtcC5sdGU9MjAyMi0wMi0xN1QxNyUzQTI1JTNBMTMuMDA5MzU2MDMyWg", + "next_url": "https://api.massive.com/v3/quotes/O:SPY241220P00720000?cursor=YXA9NzY5Nzg0NzAxJmFzPSZsaW1pdD0xMCZvcmRlcj1kZXNjJnNvcnQ9dGltZXN0YW1wJnRpbWVzdGFtcC5sdGU9MjAyMi0wMi0xN1QxNyUzQTI1JTNBMTMuMDA5MzU2MDMyWg", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": [ { @@ -23051,9 +23209,9 @@ "description": "The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this quote from the exchange which produced it.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } } }, @@ -23090,16 +23248,18 @@ "tags": [ "options:quotes" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { + "default": 1000, + "example": 10, "max": 50000 }, "order": { @@ -23113,7 +23273,7 @@ } } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v3/quotes/{stockTicker}": { "get": { @@ -23129,7 +23289,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.", @@ -23138,7 +23298,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -23189,11 +23349,11 @@ } }, { - "description": "Limit the number of results returned, default is 10 and max is 50000.", + "description": "Limit the number of results returned, default is 1000 and max is 50000.", "in": "query", "name": "limit", "schema": { - "default": 10, + "default": 1000, "example": 10, "maximum": 50000, "minimum": 1, @@ -23219,7 +23379,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v3/quotes/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/quotes/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": [ { @@ -23295,24 +23455,24 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, "indicators": { "description": "A list of indicator codes.", "items": { - "description": "The indicator codes. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).", + "description": "The indicator codes. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, @@ -23320,9 +23480,9 @@ "description": "The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp of when the quote was actually generated at the exchange.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "sequence_number": { @@ -23334,9 +23494,9 @@ "description": "The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this quote from the exchange which produced it.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "tape": { @@ -23348,9 +23508,9 @@ "description": "The nanosecond accuracy TRF (Trade Reporting Facility) Unix Timestamp. This is the timestamp of when the trade reporting facility received this quote.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } } }, @@ -23360,7 +23520,7 @@ "sip_timestamp" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "CommonQuote" } }, @@ -23391,16 +23551,18 @@ "tags": [ "stocks:quotes" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "NBBO data", "name": "nbbo" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { + "default": 1000, + "example": 10, "max": 50000 }, "order": { @@ -23413,7 +23575,7 @@ ] } }, - "x-polygon-replaces": { + "x-massive-replaces": { "date": 1654056060000, "replaces": { "name": "Quotes (NBBO)", @@ -23424,7 +23586,7 @@ }, "/v3/reference/conditions": { "get": { - "description": "List all conditions that Polygon.io uses.", + "description": "List all conditions that Massive.com uses.", "operationId": "ListConditions", "parameters": [ { @@ -23463,7 +23625,7 @@ "in": "query", "name": "id", "schema": { - "description": "An identifier used by Polygon.io for this condition. Unique per data type.", + "description": "An identifier used by Massive.com for this condition. Unique per data type.", "example": 1, "type": "integer" } @@ -23618,11 +23780,11 @@ "type": "string" }, "exchange": { - "description": "If present, mapping this condition from a Polygon.io code to a SIP symbol depends on this attribute.\nIn other words, data with this condition attached comes exclusively from the given exchange.", + "description": "If present, mapping this condition from a Massive.com code to a SIP symbol depends on this attribute.\nIn other words, data with this condition attached comes exclusively from the given exchange.", "type": "integer" }, "id": { - "description": "An identifier used by Polygon.io for this condition. Unique per data type.", + "description": "An identifier used by Massive.com for this condition. Unique per data type.", "example": 1, "type": "integer" }, @@ -23815,11 +23977,11 @@ "type": "string" }, "exchange": { - "description": "If present, mapping this condition from a Polygon.io code to a SIP symbol depends on this attribute.\nIn other words, data with this condition attached comes exclusively from the given exchange.", + "description": "If present, mapping this condition from a Massive.com code to a SIP symbol depends on this attribute.\nIn other words, data with this condition attached comes exclusively from the given exchange.", "type": "integer" }, "id": { - "description": "An identifier used by Polygon.io for this condition. Unique per data type.", + "description": "An identifier used by Massive.com for this condition. Unique per data type.", "example": 1, "type": "integer" }, @@ -24006,11 +24168,11 @@ "type": "string" }, "exchange": { - "description": "If present, mapping this condition from a Polygon.io code to a SIP symbol depends on this attribute.\nIn other words, data with this condition attached comes exclusively from the given exchange.", + "description": "If present, mapping this condition from a Massive.com code to a SIP symbol depends on this attribute.\nIn other words, data with this condition attached comes exclusively from the given exchange.", "type": "integer" }, "id": { - "description": "An identifier used by Polygon.io for this condition. Unique per data type.", + "description": "An identifier used by Massive.com for this condition. Unique per data type.", "example": 1, "type": "integer" }, @@ -24144,11 +24306,11 @@ "tags": [ "reference:conditions" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 10, "max": 1000 @@ -24173,13 +24335,13 @@ "operationId": "ListDividends", "parameters": [ { - "description": "Return the dividends that contain this ticker.", + "description": "Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc.", "in": "query", "name": "ticker", "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -24192,7 +24354,7 @@ "format": "date", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -24205,7 +24367,7 @@ "format": "date", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -24218,7 +24380,7 @@ "format": "date", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -24231,7 +24393,7 @@ "format": "date", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -24258,7 +24420,7 @@ "schema": { "type": "number" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "number" } @@ -24276,7 +24438,7 @@ "ST" ], "type": "string", - "x-polygon-go-field-tags": { + "x-massive-go-field-tags": { "tags": [ { "key": "binding", @@ -24545,7 +24707,7 @@ "schema": { "description": "A list of dividends.", "example": { - "next_url": "https://api.polygon.io/v3/reference/dividends/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/reference/dividends/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "results": [ { "cash_amount": 0.22, @@ -24553,6 +24715,7 @@ "dividend_type": "CD", "ex_dividend_date": "2021-11-05", "frequency": 4, + "id": "E8e3c4f794613e9205e2f178a36c53fcc57cdabb55e1988c87b33f9e52e221444", "pay_date": "2021-11-11", "record_date": "2021-11-08", "ticker": "AAPL" @@ -24563,6 +24726,7 @@ "dividend_type": "CD", "ex_dividend_date": "2021-08-06", "frequency": 4, + "id": "E6436c5475706773f03490acf0b63fdb90b2c72bfeed329a6eb4afc080acd80ae", "pay_date": "2021-08-12", "record_date": "2021-08-09", "ticker": "AAPL" @@ -24584,7 +24748,7 @@ "cash_amount": { "description": "The cash amount of the dividend per share owned.", "type": "number", - "x-polygon-go-field-tags": { + "x-massive-go-field-tags": { "tags": [ { "key": "binding", @@ -24596,7 +24760,7 @@ "currency": { "description": "The currency in which the dividend is paid.", "type": "string", - "x-polygon-go-field-tags": { + "x-massive-go-field-tags": { "tags": [ { "key": "binding", @@ -24618,7 +24782,7 @@ "ST" ], "type": "string", - "x-polygon-go-field-tags": { + "x-massive-go-field-tags": { "tags": [ { "key": "binding", @@ -24630,7 +24794,7 @@ "ex_dividend_date": { "description": "The date that the stock first trades without the dividend, determined by the exchange.", "type": "string", - "x-polygon-go-field-tags": { + "x-massive-go-field-tags": { "tags": [ { "key": "binding", @@ -24642,7 +24806,7 @@ "frequency": { "description": "The number of times per year the dividend is paid out. Possible values are 0 (one-time), 1 (annually), 2 (bi-annually), 4 (quarterly), and 12 (monthly).", "type": "integer", - "x-polygon-go-field-tags": { + "x-massive-go-field-tags": { "tags": [ { "key": "binding", @@ -24651,6 +24815,10 @@ ] } }, + "id": { + "description": "The unique identifier of the dividend.", + "type": "string" + }, "pay_date": { "description": "The date that the dividend is paid out.", "type": "string" @@ -24662,7 +24830,7 @@ "ticker": { "description": "The ticker symbol of the dividend.", "type": "string", - "x-polygon-go-field-tags": { + "x-massive-go-field-tags": { "tags": [ { "key": "binding", @@ -24677,10 +24845,11 @@ "ex_dividend_date", "frequency", "cash_amount", - "dividend_type" + "dividend_type", + "id" ], "type": "object", - "x-polygon-go-struct-tags": { + "x-massive-go-struct-tags": { "tags": [ "db" ] @@ -24712,11 +24881,11 @@ "tags": [ "reference:dividends" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 10, "max": 1000 @@ -24737,7 +24906,7 @@ }, "/v3/reference/exchanges": { "get": { - "description": "List all exchanges that Polygon.io knows about.", + "description": "List all exchanges that Massive.com knows about.", "operationId": "ListExchanges", "parameters": [ { @@ -24808,7 +24977,7 @@ "type": "string" }, "id": { - "description": "A unique identifier used by Polygon.io for this exchange.", + "description": "A unique identifier used by Massive.com for this exchange.", "example": 1, "type": "integer" }, @@ -24957,7 +25126,7 @@ "tags": [ "reference:exchanges" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } @@ -24969,7 +25138,7 @@ "operationId": "ListOptionsContracts", "parameters": [ { - "description": "This parameter has been deprecated. To search by specific options ticker, use the Options Contract endpoint [here](https://polygon.io/docs/options/get_v3_reference_options_contracts__options_ticker).", + "description": "This parameter has been deprecated. To search by specific options ticker, use the Options Contract endpoint [here](https://massive.com/docs/options/get_v3_reference_options_contracts__options_ticker).", "in": "query", "name": "ticker", "schema": { @@ -24983,7 +25152,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -25007,7 +25176,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -25026,7 +25195,7 @@ "schema": { "type": "number" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "number" } @@ -25251,12 +25420,12 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "AdditionalUnderlying" } }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "AdditionalUnderlyings" } }, @@ -25284,9 +25453,9 @@ "expiration_date": { "description": "The contract's expiration date in YYYY-MM-DD format.", "type": "string", - "x-polygon-go-type": { - "name": "IDaysPolygonDateString", - "path": "github.com/polygon-io/ptime" + "x-massive-go-type": { + "name": "IDaysMassiveDateString", + "path": "github.com/massive-com/ptime" } }, "primary_exchange": { @@ -25311,7 +25480,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "OptionsContract" } }, @@ -25338,11 +25507,11 @@ "tags": [ "reference:options:contracts:list" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 10, "max": 1000 @@ -25365,8 +25534,8 @@ "operationId": "GetOptionsContract", "parameters": [ { - "description": "Query for a contract by options ticker. You can learn more about the structure of options tickers [here](https://polygon.io/blog/how-to-read-a-stock-options-ticker/).", - "example": "O:EVRI240119C00002500", + "description": "Query for a contract by options ticker. You can learn more about the structure of options tickers [here](https://massive.com/blog/how-to-read-a-stock-options-ticker/).", + "example": "O:SPY251219C00650000", "in": "path", "name": "options_ticker", "required": true, @@ -25439,12 +25608,12 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "AdditionalUnderlying" } }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "AdditionalUnderlyings" } }, @@ -25472,9 +25641,9 @@ "expiration_date": { "description": "The contract's expiration date in YYYY-MM-DD format.", "type": "string", - "x-polygon-go-type": { - "name": "IDaysPolygonDateString", - "path": "github.com/polygon-io/ptime" + "x-massive-go-type": { + "name": "IDaysMassiveDateString", + "path": "github.com/massive-com/ptime" } }, "primary_exchange": { @@ -25499,7 +25668,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "OptionsContract" } }, @@ -25524,7 +25693,7 @@ "tags": [ "reference:options:contract" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } @@ -25542,7 +25711,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -25555,7 +25724,7 @@ "format": "date", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -25682,16 +25851,18 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v3/splits/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/splits/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "results": [ { "execution_date": "2020-08-31", + "id": "E36416cce743c3964c5da63e1ef1626c0aece30fb47302eea5a49c0055c04e8d0", "split_from": 1, "split_to": 4, "ticker": "AAPL" }, { "execution_date": "2005-02-28", + "id": "E90a77bdf742661741ed7c8fc086415f0457c2816c45899d73aaa88bdc8ff6025", "split_from": 1, "split_to": 2, "ticker": "AAPL" @@ -25715,6 +25886,10 @@ "description": "The execution date of the stock split. On this date the stock split was applied.", "type": "string" }, + "id": { + "description": "The unique identifier for this stock split.", + "type": "string" + }, "split_from": { "description": "The second number in the split ratio.\n\nFor example: In a 2-for-1 split, split_from would be 1.", "format": "float", @@ -25732,7 +25907,10 @@ }, "required": [ "split_from", - "split_to" + "split_to", + "id", + "ticker", + "execution_date" ], "type": "object" }, @@ -25760,11 +25938,11 @@ "tags": [ "reference:stocks" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 10, "max": 1000 @@ -25781,7 +25959,7 @@ }, "/v3/reference/tickers": { "get": { - "description": "Query all ticker symbols which are supported by Polygon.io. This API currently includes Stocks/Equities, Indices, Forex, and Crypto.", + "description": "Query all ticker symbols which are supported by Massive.com. This API currently includes Stocks/Equities, Indices, Forex, and Crypto.", "operationId": "ListTickers", "parameters": [ { @@ -25791,12 +25969,12 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, { - "description": "Specify the type of the tickers. Find the types that we support via our [Ticker Types API](https://polygon.io/docs/stocks/get_v3_reference_tickers_types).\nDefaults to empty string which queries all types.", + "description": "Specify the type of the tickers. Find the types that we support via our [Ticker Types API](https://massive.com/docs/stocks/get_v3_reference_tickers_types).\nDefaults to empty string which queries all types.", "in": "query", "name": "type", "schema": { @@ -25984,7 +26162,7 @@ "application/json": { "example": { "count": 1, - "next_url": "https://api.polygon.io/v3/reference/tickers?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/reference/tickers?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "e70013d92930de90e089dc8fa098888e", "results": [ { @@ -26084,7 +26262,7 @@ "type": "string" }, "type": { - "description": "The type of the asset. Find the types that we support via our [Ticker Types API](https://polygon.io/docs/stocks/get_v3_reference_tickers_types).", + "description": "The type of the asset. Find the types that we support via our [Ticker Types API](https://massive.com/docs/stocks/get_v3_reference_tickers_types).", "type": "string" } }, @@ -26095,9 +26273,9 @@ "locale" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "ReferenceTicker", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "type": "array" @@ -26127,11 +26305,11 @@ "tags": [ "reference:tickers:list" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 100, "max": 1000 @@ -26161,7 +26339,7 @@ }, "/v3/reference/tickers/types": { "get": { - "description": "List all ticker types that Polygon.io has.", + "description": "List all ticker types that Massive.com has.", "operationId": "ListTickerTypes", "parameters": [ { @@ -26229,7 +26407,7 @@ "type": "string" }, "code": { - "description": "A code used by Polygon.io to refer to this ticker type.", + "description": "A code used by Massive.com to refer to this ticker type.", "example": "CS", "type": "string" }, @@ -26347,7 +26525,7 @@ "tags": [ "reference:tickers:types" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } @@ -26355,7 +26533,7 @@ }, "/v3/reference/tickers/{ticker}": { "get": { - "description": "Get a single ticker supported by Polygon.io. This response will have detailed information about the ticker and the company behind it.", + "description": "Get a single ticker supported by Massive.com. This response will have detailed information about the ticker and the company behind it.", "operationId": "GetTicker", "parameters": [ { @@ -26393,8 +26571,8 @@ "state": "CA" }, "branding": { - "icon_url": "https://api.polygon.io/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_icon.png", - "logo_url": "https://api.polygon.io/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_logo.svg" + "icon_url": "https://api.massive.com/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_icon.png", + "logo_url": "https://api.massive.com/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_logo.svg" }, "cik": "0000320193", "composite_figi": "BBG000B9XRY4", @@ -26444,6 +26622,10 @@ "description": "The first line of the company's headquarters address.", "type": "string" }, + "address2": { + "description": "The second line of the company's headquarters address, if applicable.", + "type": "string" + }, "city": { "description": "The city of the company's headquarters address.", "type": "string" @@ -26576,7 +26758,7 @@ "type": "number" }, "type": { - "description": "The type of the asset. Find the types that we support via our [Ticker Types API](https://polygon.io/docs/stocks/get_v3_reference_tickers_types).", + "description": "The type of the asset. Find the types that we support via our [Ticker Types API](https://massive.com/docs/stocks/get_v3_reference_tickers_types).", "type": "string" }, "weighted_shares_outstanding": { @@ -26594,9 +26776,9 @@ "currency_name" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "ReferenceTicker", - "path": "github.com/polygon-io/go-lib-models/v2/globals" + "path": "github.com/massive-com/go-lib-models/v2/globals" } }, "status": { @@ -26608,7 +26790,7 @@ } }, "text/csv": { - "example": "ticker,name,market,locale,primary_exchange,type,active,currency_name,cik,composite_figi,share_class_figi,share_class_shares_outstanding,weighted_shares_outstanding,round_lot,market_cap,phone_number,address1,city,state,postal_code,sic_code,sic_description,ticker_root,total_employees,list_date,homepage_url,description,branding/logo_url,branding/icon_url\nAAPL,Apple Inc.,stocks,us,XNAS,CS,true,usd,0000320193,BBG000B9XRY4,BBG001S5N8V8,16406400000,16334371000,100,2771126040150,(408) 996-1010,One Apple Park Way,Cupertino,CA,95014,3571,ELECTRONIC COMPUTERS,AAPL,154000,1980-12-12,https://www.apple.com,\"Apple designs a wide variety of consumer electronic devices, including smartphones (iPhone), tablets (iPad), PCs (Mac), smartwatches (Apple Watch), AirPods, and TV boxes (Apple TV), among others. The iPhone makes up the majority of Apple's total revenue. In addition, Apple offers its customers a variety of services such as Apple Music, iCloud, Apple Care, Apple TV+, Apple Arcade, Apple Card, and Apple Pay, among others. Apple's products run internally developed software and semiconductors, and the firm is well known for its integration of hardware, software and services. Apple's products are distributed online as well as through company-owned stores and third-party retailers. The company generates roughly 40% of its revenue from the Americas, with the remainder earned internationally.\",https://api.polygon.io/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_logo.svg,https://api.polygon.io/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_icon.png\n", + "example": "ticker,name,market,locale,primary_exchange,type,active,currency_name,cik,composite_figi,share_class_figi,share_class_shares_outstanding,weighted_shares_outstanding,round_lot,market_cap,phone_number,address1,address2,city,state,postal_code,sic_code,sic_description,ticker_root,total_employees,list_date,homepage_url,description,branding/logo_url,branding/icon_url\nAAPL,Apple Inc.,stocks,us,XNAS,CS,true,usd,0000320193,BBG000B9XRY4,BBG001S5N8V8,16406400000,16334371000,100,2771126040150,(408) 996-1010,One Apple Park Way,,Cupertino,CA,95014,3571,ELECTRONIC COMPUTERS,AAPL,154000,1980-12-12,https://www.apple.com,\"Apple designs a wide variety of consumer electronic devices, including smartphones (iPhone), tablets (iPad), PCs (Mac), smartwatches (Apple Watch), AirPods, and TV boxes (Apple TV), among others. The iPhone makes up the majority of Apple's total revenue. In addition, Apple offers its customers a variety of services such as Apple Music, iCloud, Apple Care, Apple TV+, Apple Arcade, Apple Card, and Apple Pay, among others. Apple's products run internally developed software and semiconductors, and the firm is well known for its integration of hardware, software and services. Apple's products are distributed online as well as through company-owned stores and third-party retailers. The company generates roughly 40% of its revenue from the Americas, with the remainder earned internationally.\",https://api.massive.com/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_logo.svg,https://api.massive.com/v1/reference/company-branding/d3d3LmFwcGxlLmNvbQ/images/2022-01-10_icon.png\n", "schema": { "type": "string" } @@ -26624,7 +26806,7 @@ "tags": [ "reference:tickers:get" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" } @@ -26641,7 +26823,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "anyOf": { "description": "Comma separated list of tickers, up to a maximum of 250. If no tickers are passed then all results will be returned in a paginated manner.\n\nWarning: The maximum number of characters allowed in a URL are subject to your technology stack.\n", "enabled": true, @@ -26911,9 +27093,9 @@ "description": "The contract's expiration date in YYYY-MM-DD format.", "format": "date", "type": "string", - "x-polygon-go-type": { - "name": "IDaysPolygonDateString", - "path": "github.com/polygon-io/ptime" + "x-massive-go-type": { + "name": "IDaysMassiveDateString", + "path": "github.com/massive-com/ptime" } }, "shares_per_contract": { @@ -26940,11 +27122,11 @@ "type": "string" }, "fmv": { - "description": "Fair market value is only available on Business plans. It's it our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security.\nFor more information, contact us.", + "description": "Fair market value is only available on Business plans. It's it our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security.\nFor more information, contact us.", "type": "number" }, "greeks": { - "description": "The greeks for this contract.\nThere are certain circumstances where greeks will not be returned, such as options contracts that are deep in the money.\nSee this article for more information.", + "description": "The greeks for this contract.\nThere are certain circumstances where greeks will not be returned, such as options contracts that are deep in the money.\nSee this article for more information.", "properties": { "delta": { "description": "The change in the option's price per $0.01 increment in the price of the underlying asset.", @@ -26974,7 +27156,7 @@ "vega" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Greeks" } }, @@ -26992,7 +27174,7 @@ "type": "number" }, "ask_exchange": { - "description": "The ask side exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The ask side exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "ask_size": { @@ -27006,7 +27188,7 @@ "type": "number" }, "bid_exchange": { - "description": "The bid side exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The bid side exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "bid_size": { @@ -27018,9 +27200,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "midpoint": { @@ -27038,15 +27220,13 @@ } }, "required": [ - "last_updated", - "timeframe", "ask", "bid", "last_updated", "timeframe" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SnapshotLastQuote" } }, @@ -27056,14 +27236,14 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "id": { @@ -27074,18 +27254,18 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "participant_timestamp": { "description": "The nanosecond Exchange Unix Timestamp. This is the timestamp of when the trade was generated at the exchange.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "price": { @@ -27113,14 +27293,11 @@ } }, "required": [ - "last_updated", - "timeframe", - "participant_timestamp", "price", "size" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SnapshotLastTrade" } }, @@ -27203,6 +27380,16 @@ "format": "double", "type": "number" }, + "regular_trading_change": { + "description": "Today's change in regular trading hours, difference between current price and previous trading day's close, otherwise difference between today's close and previous day's close.", + "format": "double", + "type": "number" + }, + "regular_trading_change_percent": { + "description": "Today's regular trading change as a percentage.", + "format": "double", + "type": "number" + }, "volume": { "description": "The trading volume for the asset for the day.", "format": "double", @@ -27219,7 +27406,7 @@ "previous_close" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Session" } }, @@ -27250,9 +27437,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "price": { @@ -27279,13 +27466,11 @@ } }, "required": [ - "last_updated", - "timeframe", "ticker", "change_to_break_even" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "UnderlyingAsset" } }, @@ -27298,7 +27483,7 @@ "ticker" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "SnapshotResponseModel" } }, @@ -27321,7 +27506,7 @@ } }, "summary": "Universal Snapshot", - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -27331,15 +27516,15 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Snapshot data", "name": "snapshots" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "All asset classes", "name": "universal" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 10, "max": 250, @@ -27375,7 +27560,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "string" } @@ -27509,9 +27694,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "market_status": { @@ -27565,7 +27750,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IndicesSession" } }, @@ -27594,12 +27779,10 @@ } }, "required": [ - "ticker", - "timeframe", - "last_updated" + "ticker" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "IndicesResult" } }, @@ -27625,7 +27808,7 @@ "tags": [ "indices:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -27635,15 +27818,15 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Indices data", "name": "indices" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 10, "max": 250 @@ -27679,7 +27862,7 @@ "schema": { "type": "number" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true, "type": "number" } @@ -27691,7 +27874,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -27855,7 +28038,8 @@ "bid": 120.28, "bid_size": 8, "last_updated": 1605195918507251700, - "midpoint": 120.29 + "midpoint": 120.29, + "timeframe": "REAL-TIME" }, "last_trade": { "conditions": [ @@ -27923,9 +28107,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "low": { @@ -27952,11 +28136,10 @@ "description": "The trading volume weighted average price for the contract of the day.", "format": "double", "type": "number", - "x-polygon-go-id": "VWAP" + "x-massive-go-id": "VWAP" } }, "required": [ - "last_updated", "open", "high", "low", @@ -27968,7 +28151,7 @@ "change" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Day" } }, @@ -27997,9 +28180,9 @@ "description": "The contract's expiration date in YYYY-MM-DD format.", "format": "date", "type": "string", - "x-polygon-go-type": { - "name": "IDaysPolygonDateString", - "path": "github.com/polygon-io/ptime" + "x-massive-go-type": { + "name": "IDaysMassiveDateString", + "path": "github.com/massive-com/ptime" } }, "shares_per_contract": { @@ -28025,16 +28208,16 @@ "strike_price" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Details" } }, "fmv": { - "description": "Fair market value is only available on Business plans. It's it our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security.\nFor more information, contact us.", + "description": "Fair market value is only available on Business plans. It's it our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security.\nFor more information, contact us.", "type": "number" }, "greeks": { - "description": "The greeks for this contract.\nThere are certain circumstances where greeks will not be returned, such as options contracts that are deep in the money.\nSee this article for more information.", + "description": "The greeks for this contract.\nThere are certain circumstances where greeks will not be returned, such as options contracts that are deep in the money.\nSee this article for more information.", "properties": { "delta": { "description": "The change in the option's price per $0.01 increment in the price of the underlying asset.", @@ -28064,7 +28247,7 @@ "vega" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Greeks" } }, @@ -28082,7 +28265,7 @@ "type": "number" }, "ask_exchange": { - "description": "The ask side exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The ask side exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "format": "int32", "type": "number" }, @@ -28097,7 +28280,7 @@ "type": "number" }, "bid_exchange": { - "description": "The bid side exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The bid side exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "format": "int32", "type": "number" }, @@ -28110,9 +28293,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "midpoint": { @@ -28130,8 +28313,6 @@ } }, "required": [ - "last_updated", - "timeframe", "ask", "ask_size", "bid_size", @@ -28139,7 +28320,7 @@ "midpoint" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastQuote" } }, @@ -28149,14 +28330,14 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/options/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/options/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "price": { @@ -28184,14 +28365,13 @@ } }, "required": [ - "timeframe", "exchange", "price", "sip_timestamp", "size" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "OptionsLastTrade" } }, @@ -28212,9 +28392,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "price": { @@ -28241,13 +28421,11 @@ } }, "required": [ - "last_updated", - "timeframe", "ticker", "change_to_break_even" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "UnderlyingAsset" } } @@ -28257,12 +28435,11 @@ "last_quote", "underlying_asset", "details", - "cha", "break_even_price", "open_interest" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "OptionSnapshotResult" } }, @@ -28288,7 +28465,7 @@ "tags": [ "options:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -28298,15 +28475,15 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { "default": 10, "max": 250 @@ -28459,9 +28636,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "low": { @@ -28488,11 +28665,10 @@ "description": "The trading volume weighted average price for the contract of the day.", "format": "double", "type": "number", - "x-polygon-go-id": "VWAP" + "x-massive-go-id": "VWAP" } }, "required": [ - "last_updated", "open", "high", "low", @@ -28504,7 +28680,7 @@ "change" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Day" } }, @@ -28533,9 +28709,9 @@ "description": "The contract's expiration date in YYYY-MM-DD format.", "format": "date", "type": "string", - "x-polygon-go-type": { - "name": "IDaysPolygonDateString", - "path": "github.com/polygon-io/ptime" + "x-massive-go-type": { + "name": "IDaysMassiveDateString", + "path": "github.com/massive-com/ptime" } }, "shares_per_contract": { @@ -28561,16 +28737,16 @@ "strike_price" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Details" } }, "fmv": { - "description": "Fair market value is only available on Business plans. It's it our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security.\nFor more information, contact us.", + "description": "Fair market value is only available on Business plans. It's it our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security.\nFor more information, contact us.", "type": "number" }, "greeks": { - "description": "The greeks for this contract.\nThere are certain circumstances where greeks will not be returned, such as options contracts that are deep in the money.\nSee this article for more information.", + "description": "The greeks for this contract.\nThere are certain circumstances where greeks will not be returned, such as options contracts that are deep in the money.\nSee this article for more information.", "properties": { "delta": { "description": "The change in the option's price per $0.01 increment in the price of the underlying asset.", @@ -28600,7 +28776,7 @@ "vega" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Greeks" } }, @@ -28618,7 +28794,7 @@ "type": "number" }, "ask_exchange": { - "description": "The ask side exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The ask side exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "format": "int32", "type": "number" }, @@ -28633,7 +28809,7 @@ "type": "number" }, "bid_exchange": { - "description": "The bid side exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The bid side exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "format": "int32", "type": "number" }, @@ -28646,9 +28822,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "midpoint": { @@ -28666,8 +28842,6 @@ } }, "required": [ - "last_updated", - "timeframe", "ask", "ask_size", "bid_size", @@ -28675,7 +28849,7 @@ "midpoint" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "LastQuote" } }, @@ -28685,14 +28859,14 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/options/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/options/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "price": { @@ -28720,14 +28894,13 @@ } }, "required": [ - "timeframe", "exchange", "price", "sip_timestamp", "size" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "OptionsLastTrade" } }, @@ -28748,9 +28921,9 @@ "description": "The nanosecond timestamp of when this information was updated.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "price": { @@ -28777,13 +28950,11 @@ } }, "required": [ - "last_updated", - "timeframe", "ticker", "change_to_break_even" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "UnderlyingAsset" } } @@ -28793,12 +28964,11 @@ "last_quote", "underlying_asset", "details", - "cha", "break_even_price", "open_interest" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "OptionSnapshotResult" } }, @@ -28828,7 +28998,7 @@ "tags": [ "options:snapshot" ], - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "description": "Real Time Data", "name": "realtime" @@ -28838,11 +29008,11 @@ "name": "delayed" } ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Aggregate data", "name": "aggregates" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" } @@ -28870,7 +29040,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -28921,11 +29091,11 @@ } }, { - "description": "Limit the number of results returned, default is 10 and max is 50000.", + "description": "Limit the number of results returned, default is 1000 and max is 50000.", "in": "query", "name": "limit", "schema": { - "default": 10, + "default": 1000, "example": 10, "maximum": 50000, "minimum": 1, @@ -28951,7 +29121,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v3/trades/X:BTC-USD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/trades/X:BTC-USD?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": [ { @@ -28989,17 +29159,17 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "id": { @@ -29010,9 +29180,9 @@ "description": "The nanosecond Exchange Unix Timestamp. This is the timestamp of when the trade was generated at the exchange.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "price": { @@ -29061,16 +29231,18 @@ "tags": [ "crypto:trades" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Crypto data", "name": "crypto" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { + "default": 1000, + "example": 10, "max": 50000 }, "order": { @@ -29083,7 +29255,7 @@ ] } }, - "x-polygon-replaces": { + "x-massive-replaces": { "date": 1654056060000, "replaces": { "name": "Historic Crypto Trades", @@ -29091,7 +29263,7 @@ } } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v3/trades/{optionsTicker}": { "get": { @@ -29107,7 +29279,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by trade timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.", @@ -29116,7 +29288,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -29167,11 +29339,11 @@ } }, { - "description": "Limit the number of results returned, default is 10 and max is 50000.", + "description": "Limit the number of results returned, default is 1000 and max is 50000.", "in": "query", "name": "limit", "schema": { - "default": 10, + "default": 1000, "example": 10, "maximum": 50000, "minimum": 1, @@ -29197,7 +29369,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v3/trades/O:AZO140621P00530000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/trades/O:AZO140621P00530000?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": [ { @@ -29232,12 +29404,12 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, @@ -29246,16 +29418,16 @@ "type": "integer" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "participant_timestamp": { "description": "The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp of when the trade was actually generated at the exchange.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "price": { @@ -29267,9 +29439,9 @@ "description": "The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this trade from the exchange which produced it.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "size": { @@ -29313,16 +29485,18 @@ "tags": [ "options:trades" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Options data", "name": "options" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { + "default": 1000, + "example": 10, "max": 50000 }, "order": { @@ -29336,7 +29510,7 @@ } } }, - "x-polygon-ignore": true + "x-massive-ignore": true }, "/v3/trades/{stockTicker}": { "get": { @@ -29352,7 +29526,7 @@ "schema": { "type": "string" }, - "x-polygon-go-id": "Ticker" + "x-massive-go-id": "Ticker" }, { "description": "Query by trade timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.", @@ -29361,7 +29535,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -29412,11 +29586,11 @@ } }, { - "description": "Limit the number of results returned, default is 10 and max is 50000.", + "description": "Limit the number of results returned, default is 1000 and max is 50000.", "in": "query", "name": "limit", "schema": { - "default": 10, + "default": 1000, "example": 10, "maximum": 50000, "minimum": 1, @@ -29442,7 +29616,7 @@ "content": { "application/json": { "example": { - "next_url": "https://api.polygon.io/v3/trades/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "next_url": "https://api.massive.com/v3/trades/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3", "results": [ { @@ -29488,12 +29662,12 @@ "conditions": { "description": "A list of condition codes.", "items": { - "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://polygon.io/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", + "description": "The condition code. These are the conditions of this message. See\n[Condition Mappings](https://massive.com/docs/stocks/get_v3_reference_conditions)\nfor a mapping to exchange conditions.", "format": "int32", "type": "integer" }, "type": "array", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "Int32Array" } }, @@ -29502,7 +29676,7 @@ "type": "integer" }, "exchange": { - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.", + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs.", "type": "integer" }, "id": { @@ -29513,9 +29687,9 @@ "description": "The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp of when the trade was actually generated at the exchange.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "price": { @@ -29532,9 +29706,9 @@ "description": "The nanosecond accuracy SIP Unix Timestamp. This is the timestamp of when the SIP received this trade from the exchange which produced it.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } }, "size": { @@ -29555,9 +29729,9 @@ "description": "The nanosecond accuracy TRF (Trade Reporting Facility) Unix Timestamp. This is the timestamp of when the trade reporting facility received this trade.", "format": "int64", "type": "integer", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "INanoseconds", - "path": "github.com/polygon-io/ptime" + "path": "github.com/massive-com/ptime" } } }, @@ -29571,7 +29745,7 @@ "size" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "CommonTrade" } }, @@ -29602,16 +29776,18 @@ "tags": [ "stocks:trades" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Trade data", "name": "trades" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "description": "Stocks data", "name": "stocks" }, - "x-polygon-paginate": { + "x-massive-paginate": { "limit": { + "default": 1000, + "example": 10, "max": 50000 }, "order": { @@ -29624,7 +29800,7 @@ ] } }, - "x-polygon-replaces": { + "x-massive-replaces": { "date": 1654056060000, "replaces": { "name": "Trades", @@ -29661,7 +29837,7 @@ "schema": { "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "search": true } }, @@ -29681,7 +29857,7 @@ "format": "date", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -29693,7 +29869,7 @@ "format": "date", "type": "string" }, - "x-polygon-filter-field": { + "x-massive-filter-field": { "range": true } }, @@ -29845,7 +30021,7 @@ "application/json": { "example": { "count": 1, - "next_url": "https://api.polygon.io/vX/reference/financials?", + "next_url": "https://api.massive.com/vX/reference/financials?", "request_id": "55eb92ed43b25568ab0cce159830ea34", "results": [ { @@ -30123,8 +30299,8 @@ }, "fiscal_period": "Q1", "fiscal_year": "2022", - "source_filing_file_url": "https://api.polygon.io/v1/reference/sec/filings/0001650729-22-000010/files/site-20220403_htm.xml", - "source_filing_url": "https://api.polygon.io/v1/reference/sec/filings/0001650729-22-000010", + "source_filing_file_url": "https://api.massive.com/v1/reference/sec/filings/0001650729-22-000010/files/site-20220403_htm.xml", + "source_filing_url": "https://api.massive.com/v1/reference/sec/filings/0001650729-22-000010", "start_date": "2022-01-03" } ], @@ -30168,7 +30344,7 @@ "financials": { "properties": { "balance_sheet": { - "description": "Balance sheet.\nThe keys in this object can be any of the fields listed in the Balance Sheet section of the financials API glossary of terms.", + "description": "Balance sheet.\nThe keys in this object can be any of the fields listed in the Balance Sheet section of the financials API glossary of terms.", "properties": { "*": { "description": "An individual financial data point.", @@ -30220,15 +30396,15 @@ "type": "object" }, "cash_flow_statement": { - "description": "Cash flow statement.\nThe keys in this object can be any of the fields listed in the Cash Flow Statement section of the financials API glossary of terms.\nSee the attributes of the objects within `balance_sheet` for more details.", + "description": "Cash flow statement.\nThe keys in this object can be any of the fields listed in the Cash Flow Statement section of the financials API glossary of terms.\nSee the attributes of the objects within `balance_sheet` for more details.", "type": "object" }, "comprehensive_income": { - "description": "Comprehensive income.\nThe keys in this object can be any of the fields listed in the Comprehensive Income section of the financials API glossary of terms.\nSee the attributes of the objects within `balance_sheet` for more details.", + "description": "Comprehensive income.\nThe keys in this object can be any of the fields listed in the Comprehensive Income section of the financials API glossary of terms.\nSee the attributes of the objects within `balance_sheet` for more details.", "type": "object" }, "income_statement": { - "description": "Income statement.\nThe keys in this object can be any of the fields listed in the Income Statement section of the financials API glossary of terms.\nSee the attributes of the objects within `balance_sheet` for more details.", + "description": "Income statement.\nThe keys in this object can be any of the fields listed in the Income Statement section of the financials API glossary of terms.\nSee the attributes of the objects within `balance_sheet` for more details.", "type": "object" } }, @@ -30273,7 +30449,7 @@ "fiscal_period" ], "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "FinancialReport" } }, @@ -30301,12 +30477,12 @@ "tags": [ "reference:stocks" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-experimental": {}, - "x-polygon-paginate": { + "x-massive-experimental": {}, + "x-massive-paginate": { "limit": { "default": 10, "max": 100 @@ -30321,81 +30497,98 @@ } } }, - "/vX/reference/tickers/taxonomies": { + "/vX/reference/ipos": { "get": { - "description": "Retrieve taxonomy classifications for one or more tickers.", - "operationId": "ListTickerTaxonomyClassifications", + "description": "The IPOs API provides access to detailed information about Initial Public Offerings (IPOs), including both upcoming and historical events. With this API, you can query for a comprehensive list of IPOs, along with key details such as the issuer name, ticker symbol, ISIN, IPO date, number of shares offered, expected price range, and final offering price. You can filter the results by status to focus on new, rumors, pending, historical, and more.", + "operationId": "ListIPOs", "parameters": [ { + "description": "Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc.", "in": "query", "name": "ticker", "schema": { "type": "string" - }, - "x-polygon-filter-field": { - "anyOf": { - "description": "Comma separated list of tickers, up to a maximum of 250. If no tickers are passed then all results will be returned in a paginated manner.\n\nWarning: The maximum number of characters allowed in a URL are subject to your technology stack.\n", - "enabled": true, - "example": "NCLH,O:SPY250321C00380000,C:EURUSD,X:BTCUSD,I:SPX" - }, - "range": true, + } + }, + { + "description": "Specify a us_code. This is a unique nine-character alphanumeric code that identifies a North American financial security for the purposes of facilitating clearing and settlement of trades.", + "in": "query", + "name": "us_code", + "schema": { "type": "string" } }, { - "description": "Filter by taxonomy category.", + "description": "Specify an International Securities Identification Number (ISIN). This is a unique twelve-digit code that is assigned to every security issuance in the world.", "in": "query", - "name": "category", + "name": "isin", "schema": { "type": "string" } }, { - "description": "Filter by taxonomy tag. Each category has a set of associated tags.", + "description": "Specify a listing date. This is the first trading date for the newly listed entity.", "in": "query", - "name": "tag", + "name": "listing_date", "schema": { + "format": "date", + "type": "string" + }, + "x-massive-filter-field": { + "range": true, "type": "string" } }, { - "description": "Range by ticker.", + "description": "Specify an IPO status.", "in": "query", - "name": "ticker.gte", + "name": "ipo_status", "schema": { + "enum": [ + "direct_listing_process", + "history", + "new", + "pending", + "postponed", + "rumor", + "withdrawn" + ], "type": "string" } }, { - "description": "Range by ticker.", + "description": "Range by listing_date.", "in": "query", - "name": "ticker.gt", + "name": "listing_date.gte", "schema": { + "format": "date", "type": "string" } }, { - "description": "Range by ticker.", + "description": "Range by listing_date.", "in": "query", - "name": "ticker.lte", + "name": "listing_date.gt", "schema": { + "format": "date", "type": "string" } }, { - "description": "Range by ticker.", + "description": "Range by listing_date.", "in": "query", - "name": "ticker.lt", + "name": "listing_date.lte", "schema": { + "format": "date", "type": "string" } }, { - "description": "Comma separated list of tickers, up to a maximum of 250. If no tickers are passed then all results will be returned in a paginated manner.\n\nWarning: The maximum number of characters allowed in a URL are subject to your technology stack.\n", - "example": "NCLH,O:SPY250321C00380000,C:EURUSD,X:BTCUSD,I:SPX", + "description": "Range by listing_date.", "in": "query", - "name": "ticker.any_of", + "name": "listing_date.lt", "schema": { + "format": "date", "type": "string" } }, @@ -30404,6 +30597,7 @@ "in": "query", "name": "order", "schema": { + "default": "desc", "enum": [ "asc", "desc" @@ -30413,13 +30607,13 @@ } }, { - "description": "Limit the number of results returned, default is 10 and max is 250.", + "description": "Limit the number of results returned, default is 10 and max is 1000.", "in": "query", "name": "limit", "schema": { "default": 10, "example": 10, - "maximum": 250, + "maximum": 1000, "minimum": 1, "type": "integer" } @@ -30429,11 +30623,29 @@ "in": "query", "name": "sort", "schema": { - "default": "ticker", + "default": "listing_date", "enum": [ - "ticker" + "listing_date", + "ticker", + "last_updated", + "security_type", + "issuer_name", + "currency_code", + "isin", + "us_code", + "final_issue_price", + "min_shares_offered", + "max_shares_offered", + "lowest_offer_price", + "highest_offer_price", + "total_offer_size", + "shares_outstanding", + "primary_exchange", + "lot_size", + "security_description", + "ipo_status" ], - "example": "ticker", + "example": "listing_date", "type": "string" } } @@ -30443,29 +30655,353 @@ "content": { "application/json": { "example": { - "request_id": "31d59dda-80e5-4721-8496-d0d32a654afe", + "next_url": "https://api.massive.com/vX/reference/ipos?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy", + "request_id": "6a7e466379af0a71039d60cc78e72282", "results": [ { - "category": "revenue_streams", - "reason": "Company recognizes revenue from the sales of consumer electronics such as the iPhone and iPad.", - "relevance": 0.99, - "tag": "physical_product_sales_electronics", - "ticker": "AAPL" + "currency_code": "USD", + "final_issue_price": 17, + "highest_offer_price": 17, + "ipo_status": "history", + "isin": "US75383L1026", + "issue_end_date": "2024-06-06", + "issue_start_date": "2024-06-01", + "issuer_name": "Rapport Therapeutics Inc.", + "last_updated": "2024-06-27", + "listing_date": "2024-06-07", + "lot_size": 100, + "lowest_offer_price": 17, + "max_shares_offered": 8000000, + "min_shares_offered": 1000000, + "primary_exchange": "XNAS", + "security_description": "Ordinary Shares", + "security_type": "CS", + "shares_outstanding": 35376457, + "ticker": "RAPP", + "total_offer_size": 136000000, + "us_code": "75383L102" + } + ], + "status": "OK" + }, + "schema": { + "properties": { + "next_url": { + "description": "If present, this value can be used to fetch the next page of data.", + "type": "string" + }, + "request_id": { + "description": "A request id assigned by the server.", + "type": "string" + }, + "results": { + "description": "An array of results containing the requested data.", + "items": { + "properties": { + "currency_code": { + "description": "Underlying currency of the security.", + "example": "USD", + "type": "string" + }, + "final_issue_price": { + "description": "The price set by the company and its underwriters before the IPO goes live.", + "example": 14.5, + "format": "float", + "type": "number" + }, + "highest_offer_price": { + "description": "The highest price within the IPO price range that the company might use to price the shares.", + "example": 20, + "format": "float", + "type": "number" + }, + "ipo_status": { + "description": "The status of the IPO event. IPO events start out as status \"rumor\" or \"pending\". On listing day, the status changes to \"new\". After the listing day, the status changes to \"history\".\n\nThe status \"direct_listing_process\" corresponds to a type of offering where, instead of going through all the IPO processes, the company decides to list its shares directly on an exchange, without using an investment bank or other intermediaries. This is called a direct listing, direct placement, or direct public offering (DPO).", + "enum": [ + "direct_listing_process", + "history", + "new", + "pending", + "postponed", + "rumor", + "withdrawn" + ], + "example": "history", + "type": "string" + }, + "isin": { + "description": "International Securities Identification Number. This is a unique twelve-digit code that is assigned to every security issuance in the world.", + "example": "US0378331005", + "type": "string" + }, + "issuer_name": { + "description": "Name of issuer.", + "example": "Apple Inc.", + "type": "string" + }, + "last_updated": { + "description": "The date when the IPO event was last modified.", + "example": "2023-01-02", + "format": "date", + "type": "string" + }, + "listing_date": { + "description": "First trading date for the newly listed entity.", + "example": "2023-02-01", + "format": "date", + "type": "string" + }, + "lot_size": { + "description": "The minimum number of shares that can be bought or sold in a single transaction.", + "example": 100, + "type": "number" + }, + "lowest_offer_price": { + "description": "The lowest price within the IPO price range that the company is willing to offer its shares to investors.", + "example": 10, + "format": "float", + "type": "number" + }, + "max_shares_offered": { + "description": "The upper limit of the shares that the company is offering to investors.", + "example": 1000, + "type": "number" + }, + "min_shares_offered": { + "description": "The lower limit of shares that the company is willing to sell in the IPO.", + "example": 1000, + "type": "number" + }, + "primary_exchange": { + "description": "Market Identifier Code (MIC) of the primary exchange where the security is listed. The Market Identifier Code (MIC) (ISO 10383) is a unique identification code used to identify securities trading exchanges, regulated and non-regulated trading markets.", + "example": "XNAS", + "type": "string" + }, + "security_description": { + "description": "Description of the security.", + "example": "Ordinary Shares - Class A", + "type": "string" + }, + "security_type": { + "description": "The classification of the stock. For example, \"CS\" stands for Common Stock.", + "example": "CS", + "type": "string" + }, + "shares_outstanding": { + "description": "The total number of shares that the company has issued and are held by investors.", + "example": 1000000, + "type": "number" + }, + "ticker": { + "description": "The ticker symbol of the IPO event.", + "example": "AAPL", + "type": "string" + }, + "total_offer_size": { + "description": "The total amount raised by the company for IPO.", + "example": 1000000, + "format": "float", + "type": "number" + }, + "us_code": { + "description": "This is a unique nine-character alphanumeric code that identifies a North American financial security for the purposes of facilitating clearing and settlement of trades.", + "example": 37833100, + "type": "string" + } + }, + "required": [ + "name", + "last_updated", + "primary_exchange", + "security_type", + "security_description", + "ipo_status" + ], + "type": "object", + "x-massive-go-type": { + "name": "IPOsResult" + } + }, + "type": "array" }, + "status": { + "description": "The status of this request's response.", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "A list of IPO events." + } + }, + "summary": "IPOs", + "tags": [ + "reference:stocks:ipos" + ], + "x-massive-entitlement-data-type": { + "description": "Reference data", + "name": "reference" + }, + "x-massive-paginate": { + "limit": { + "default": 10, + "max": 1000 + }, + "order": { + "default": "desc" + }, + "sort": { + "default": "listing_date", + "enum": [ + "listing_date", + "ticker", + "last_updated", + "security_type", + "issuer_name", + "currency_code", + "isin", + "us_code", + "final_issue_price", + "min_shares_offered", + "max_shares_offered", + "lowest_offer_price", + "highest_offer_price", + "total_offer_size", + "shares_outstanding", + "primary_exchange", + "lot_size", + "security_description", + "ipo_status" + ] + } + } + } + }, + "/vX/reference/tickers/taxonomies": { + "get": { + "description": "Many investors place a high value on sector data. It is used to measure economic activity, identify peers and competitors, build ETF products, quantify market share, and compare company performance. However, there are some limitations to industry standard sectors:\n* They have difficulty identifying the primary area of activity for large, complex businesses.\n* Studies confirm significant disagreement between classification schemes when attempting to categorize the same companies.\n* The systems' hierarchical nature is inflexible and struggles to convey business nuances.\n
\n
\nAs a result, we've developed a new taxonomy to supplement existing sector classifications. The taxonomy is created by reviewing related 10K filings to create a set of structured categories and tags.\n
\n
\nThe categories are based on company operating models and are industry agnostic. Our current version only supports one category, Revenue Streams, with future plans to support more.\n
\n
\nThe tags define a specific type within the category. Within the Revenue Streams category, for example, tags for \"product sales\" and \"advertising\" may be found. A company may have many tags in a given category. The complete Revenue Streams taxonomy is shown below.\n
\n
\nOur taxonomy is powered by AI and is currently in early beta testing. You should expect some inaccuracies in the responses.\n
\n
\n## **Revenue Streams**\n *Latest Revision (7/7/2023)*\n
\n
\n- **Physical Product Sales:**\n Revenue generated from the sale of tangible goods or physical products to customers, either in-store or online.\n - Consumer Goods\n - Industrial Goods\n - Electronics\n - Vehicles\n - Healthcare Products\n
\n
\n- **Digital Product Sales:**\n Revenue earned from the sale of digital goods or products, such as software licenses, e-books, music downloads, or digital media content. It also includes revenue obtained by selling aggregated, anonymized, or processed data to third parties for market research, analytics, or other purposes.\n - Software\n - E-books and Digital Media\n - Mobile Applications\n - Games\n - Online Courses\n - Market Research Data\n - Customer Behavior Data\n
\n
\n- **Professional Services:**\n Revenue obtained by providing specialized services, expertise, or consulting to clients in exchange for fees. This includes services offered by professionals such as lawyers, accountants, or consultants.\n - Consulting\n - Legal Services\n - Financial Services\n - Marketing Services\n - Construction Services\n - Education & Tutoring\n
\n
\n- **Consumer Services:**\n Revenue earned from providing services directly to consumers, including services like healthcare, personal grooming, fitness, or hospitality.\n - Dining & Hospitality\n - Personal Care\n - Entertainment & Recreation\n - Fitness & Wellness\n - Travel & Tourism\n - Transportation\n - Home Services\n - Child & Family Care\n - Automotive\n
\n
\n- **Subscription-based Revenue:**\n Revenue obtained from recurring fees charged to customers for accessing a product or service over a defined period. This includes revenue from subscription-based models, membership programs, or software-as-a-service (SaaS) offerings.\n - Software as a Service (SaaS)\n - Streaming Services\n - Physical Media\n - Memberships\n
\n
\n- **Licensing and Royalties:**\n Revenue generated from the licensing of intellectual property rights to third parties, including franchise rights, patent licensing, brand licensing, and the receipt of royalties for authorized use of intellectual property like music royalties, book royalties, or patent royalties.\n - Franchise Fees\n - Patent Licensing\n - Brand Licensing\n - Media Royalties\n
\n
\n- **Advertising:**\n Revenue generated by displaying ads or promotional content to customers, whether through traditional or digital advertising channels, including revenue from display ads, sponsored content, or affiliate marketing.\n - Print Advertising\n - Online Display Advertising\n - Social Media Advertising\n - Influencer Marketing\n
\n
\n- **Commission-Based Revenue:**\n Revenue earned by acting as an intermediary and receiving a percentage or commission on sales made on behalf of another party. This includes revenue from affiliate programs, referral fees, or any other commission-based revenue models.\n - Real Estate Commissions\n - Affiliate Marketing Commissions\n - Online Marketplace Commissions\n
\n
\n- **Rentals or Leasing:**\n Revenue earned by leasing or renting out assets, properties, or equipment to customers, including rental income from real estate properties, equipment leasing, or vehicle rentals.\n - Property Rentals\n - Equipment Leasing\n - Vehicle Rentals", + "operationId": "ListTickerTaxonomyClassifications", + "parameters": [ + { + "in": "query", + "name": "ticker", + "schema": { + "type": "string" + }, + "x-massive-filter-field": { + "anyOf": { + "description": "Comma separated list of tickers, up to a maximum of 250.\n\nWarning: The maximum number of characters allowed in a URL are subject to your own technology stack.\n", + "enabled": true, + "example": "AAPL,AMD,MSFT" + }, + "range": true, + "type": "string" + } + }, + { + "description": "Filter by taxonomy category. The current version of this API supports the following category: revenue_streams", + "in": "query", + "name": "category", + "schema": { + "type": "string" + } + }, + { + "description": "Filter by taxonomy tag. Each category has a set of associated tags.", + "in": "query", + "name": "tag", + "schema": { + "type": "string" + } + }, + { + "description": "Order results ascending or descending based on the ticker.", + "in": "query", + "name": "order", + "schema": { + "enum": [ + "asc", + "desc" + ], + "type": "string" + } + }, + { + "description": "Limit the number of results returned. The default is 10 and the max is 250.", + "in": "query", + "name": "limit", + "schema": { + "default": 10, + "maximum": 250, + "minimum": 1, + "type": "integer" + } + }, + { + "description": "Range by ticker.", + "in": "query", + "name": "ticker.gte", + "schema": { + "type": "string" + } + }, + { + "description": "Range by ticker.", + "in": "query", + "name": "ticker.gt", + "schema": { + "type": "string" + } + }, + { + "description": "Range by ticker.", + "in": "query", + "name": "ticker.lte", + "schema": { + "type": "string" + } + }, + { + "description": "Range by ticker.", + "in": "query", + "name": "ticker.lt", + "schema": { + "type": "string" + } + }, + { + "description": "Comma separated list of tickers, up to a maximum of 250.\n\nWarning: The maximum number of characters allowed in a URL are subject to your own technology stack.\n", + "example": "AAPL,AMD,MSFT", + "in": "query", + "name": "ticker.any_of", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "request_id": "a4f9947955398c28905337f003bfee7c", + "results": [ { "category": "revenue_streams", - "reason": "Company recognizes revenue from the sales of digital products such as digital storage and app store fees.", - "relevance": 0.99, - "tag": "digital_product_sales_software", + "reason": "The text mentions revenue earned from the sale of digital goods or products, such as software licenses, e-books, music downloads, or digital media content.", + "tag": "digital_product_sales", "ticker": "AAPL" }, { - "category": "cost_structure", - "relevance": 0.86, - "tag": "economies_of_scale", + "category": "revenue_streams", + "reason": "The text mentions revenue generated from the licensing of intellectual property rights to third parties, including franchise rights, patent licensing, brand licensing, and the receipt of royalties for authorized use of intellectual property like music royalties, book royalties, or patent royalties.", + "tag": "licensing_and_royalties", "ticker": "AAPL" } - ] + ], + "status": "OK" }, "schema": { "properties": { @@ -30480,28 +31016,24 @@ "items": { "properties": { "category": { - "description": "The classification category.", + "description": "A dimension of a company\u2019s operating model that is agnostic to industry. Category contains a comprehensive list of tags which reflect defined types within that category. The current version of this API supports the following category: revenue_streams", "type": "string" }, "reason": { - "description": "The reason why the classification was given.", + "description": "The reason why the classification was given. The reason is provided by our AI to help you determine whether or not you agree with its applicability for your uses.", "type": "string" }, - "relevance": { - "description": "The relevance score for the tag. This is a measure of confidence in the tag classification.", - "format": "double", - "type": "number" - }, "tag": { - "description": "The classification tag. Each category has a set of associated tags.", + "description": "A specific type within a category. For example \u201cproduct_sales\u201d is a type of revenue stream. A company may have multiple tags within a given category. A taxonomy of tags are determined based on 10k filings.", "type": "string" }, "ticker": { - "description": "The ticker symbol for the asset.", + "description": "The identifying ticker symbol for the asset.", "type": "string" } }, - "x-polygon-go-type": { + "type": "object", + "x-massive-go-type": { "name": "TaxonomyClassificationResult" } }, @@ -30527,26 +31059,13 @@ "Internal", "Public" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-experimental": {}, - "x-polygon-paginate": { - "limit": { - "default": 10, - "max": 250, - "min": 1 - }, - "sort": { - "default": "ticker", - "enum": [ - "ticker" - ] - } - } + "x-massive-experimental": {} }, - "x-polygon-draft": true + "x-massive-draft": true }, "/vX/reference/tickers/{id}/events": { "get": { @@ -30554,7 +31073,7 @@ "operationId": "GetEvents", "parameters": [ { - "description": "Identifier of an asset. This can currently be a Ticker, CUSIP, or Composite FIGI.\nWhen given a ticker, we return events for the entity currently represented by that ticker.\nTo find events for entities previously associated with a ticker, find the relevant identifier using the \n[Ticker Details Endpoint](https://polygon.io/docs/stocks/get_v3_reference_tickers__ticker)", + "description": "Identifier of an asset. This can currently be a Ticker, CUSIP, or Composite FIGI.\nWhen given a ticker, we return events for the entity currently represented by that ticker.\nTo find events for entities previously associated with a ticker, find the relevant identifier using the \n[Ticker Details Endpoint](https://massive.com/docs/stocks/get_v3_reference_tickers__ticker)", "example": "META", "in": "path", "name": "id", @@ -30645,7 +31164,7 @@ } }, "type": "object", - "x-polygon-go-type": { + "x-massive-go-type": { "name": "EventsResults" } }, @@ -30668,11 +31187,11 @@ "tags": [ "reference:tickers:get" ], - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "description": "Reference data", "name": "reference" }, - "x-polygon-experimental": {} + "x-massive-experimental": {} } } }, @@ -30683,19 +31202,19 @@ ], "servers": [ { - "description": "Polygon Platform API", - "url": "https://api.polygon.io" + "description": "Massive Platform API", + "url": "https://api.massive.com" }, { - "description": "Polygon Platform API (Staging)", - "url": "https://api.staging.polygon.io" + "description": "Massive Platform API (Staging)", + "url": "https://api.staging.massive.com" } ], "tags": [ { "description": "Reference API", "name": "reference", - "x-polygon-sub-tags": [ + "x-massive-sub-tags": [ "tickers:list", "tickers:types", "tickers:get", @@ -30717,7 +31236,7 @@ { "description": "Stocks API", "name": "stocks", - "x-polygon-sub-tags": [ + "x-massive-sub-tags": [ "trades", "quotes", "last:trade", @@ -30730,7 +31249,7 @@ { "description": "Options API", "name": "options", - "x-polygon-sub-tags": [ + "x-massive-sub-tags": [ "trades", "quotes", "last:trade", @@ -30743,7 +31262,7 @@ { "description": "Forex API", "name": "fx", - "x-polygon-sub-tags": [ + "x-massive-sub-tags": [ "trades", "quotes", "conversion", @@ -30756,7 +31275,7 @@ { "description": "Crypto API", "name": "crypto", - "x-polygon-sub-tags": [ + "x-massive-sub-tags": [ "trades", "last:trade", "open-close", @@ -30767,7 +31286,7 @@ { "description": "Indices API", "name": "indices", - "x-polygon-sub-tags": [ + "x-massive-sub-tags": [ "trades", "last:trade", "open-close", @@ -30776,7 +31295,7 @@ ] } ], - "x-polygon-order": { + "x-massive-order": { "crypto": { "market": [ { @@ -31290,6 +31809,21 @@ "paths": [ "/v3/reference/exchanges" ] + }, + { + "paths": [ + "/v1/related-companies/{ticker}" + ] + }, + { + "paths": [ + "/vX/reference/ipos" + ] + }, + { + "paths": [ + "/vX/reference/short-interest/{identifier_type}/{identifier}" + ] } ] } diff --git a/.polygon/rest.py b/.massive/rest.py similarity index 52% rename from .polygon/rest.py rename to .massive/rest.py index e4ae124c..4bfcd940 100644 --- a/.polygon/rest.py +++ b/.massive/rest.py @@ -1,8 +1,8 @@ import urllib.request import json -contents = urllib.request.urlopen("https://api.polygon.io/openapi").read() +contents = urllib.request.urlopen("https://api.massive.com/openapi").read() parsed = json.loads(contents) formatted = json.dumps(parsed, indent=2) -with open(".polygon/rest.json", "w") as f: +with open(".massive/rest.json", "w") as f: f.write(formatted) diff --git a/.polygon/websocket.json b/.massive/websocket.json similarity index 93% rename from .polygon/websocket.json rename to .massive/websocket.json index 85245e63..ddaef95e 100644 --- a/.polygon/websocket.json +++ b/.massive/websocket.json @@ -1,21 +1,21 @@ { "openapi": "3.0.3", "info": { - "title": "Polygon Websocket Spec", + "title": "Massive Websocket Spec", "description": "The future of fintech.", "version": "2.0.0" }, "servers": [ { - "url": "wss://socket.polygon.io", + "url": "wss://socket.massive.com", "description": "Real-time" }, { - "url": "wss://delayed.polygon.io", + "url": "wss://delayed.massive.com", "description": "Delayed" } ], - "x-polygon-order": { + "x-massive-order": { "stocks": { "market": [ { @@ -219,7 +219,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -248,7 +248,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "i": { "type": "string", @@ -269,7 +269,7 @@ }, "c": { "type": "array", - "description": "The trade conditions. See Conditions and Indicators\" for Polygon.io's trade conditions glossary.\n", + "description": "The trade conditions. See Conditions and Indicators for Massive.com's trade conditions glossary.\n", "items": { "type": "integer", "description": "The ID of the condition." @@ -277,7 +277,7 @@ }, "t": { "type": "integer", - "description": "The Timestamp in Unix MS." + "description": "The SIP timestamp in Unix MS." }, "q": { "type": "integer", @@ -312,15 +312,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "trades", "description": "Trade data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -340,7 +340,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -399,7 +399,7 @@ }, "i": { "type": "array", - "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).\n", + "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).\n", "items": { "type": "integer", "description": "The indicator code.\n" @@ -407,7 +407,7 @@ }, "t": { "type": "integer", - "description": "The Timestamp in Unix MS." + "description": "The SIP timestamp in Unix MS." }, "q": { "type": "integer", @@ -440,15 +440,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "nbbo", "description": "NBBO data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -464,7 +464,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -583,15 +583,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -611,7 +611,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -730,15 +730,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -758,7 +758,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -832,15 +832,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "limit-up-limit-down", "description": "Limit-Up Limit-Down data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -856,7 +856,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -901,7 +901,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "o": { "type": "integer", @@ -934,15 +934,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "imbalances", "description": "Imbalances data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -958,7 +958,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -983,7 +983,7 @@ "description": "The event type." }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" }, "sym": { "description": "The ticker symbol for the given security." @@ -995,7 +995,7 @@ }, "example": { "ev": "FMV", - "val": 189.22, + "fmv": 189.22, "sym": "AAPL", "t": 1678220098130 } @@ -1003,15 +1003,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1031,7 +1031,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -1132,15 +1132,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1160,7 +1160,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -1205,15 +1205,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "stocks", "description": "Stocks data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1233,7 +1233,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -1262,7 +1262,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "p": { "type": "number", @@ -1307,15 +1307,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "trades", "description": "Trade data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "options", "description": "Options data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1335,7 +1335,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -1364,11 +1364,11 @@ }, "bx": { "type": "integer", - "description": "The bid exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The bid exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "ax": { "type": "integer", - "description": "The ask exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The ask exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "bp": { "type": "number", @@ -1414,15 +1414,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "nbbo", "description": "NBBO data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "options", "description": "Options data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -1438,7 +1438,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -1553,15 +1553,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "options", "description": "Options data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1581,7 +1581,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -1696,15 +1696,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "options", "description": "Options data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1724,7 +1724,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -1749,7 +1749,7 @@ "description": "The event type." }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" }, "sym": { "description": "The ticker symbol for the given security." @@ -1761,7 +1761,7 @@ }, "example": { "ev": "FMV", - "val": 7.2, + "fmv": 7.2, "sym": "O:TSLA210903C00700000", "t": 1401715883806000000 } @@ -1769,15 +1769,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "options", "description": "Options data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1797,7 +1797,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -1898,15 +1898,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "options", "description": "Options data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1926,7 +1926,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -1971,15 +1971,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "options", "description": "Options data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -1999,7 +1999,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n", + "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://massive.com/docs/forex/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2028,7 +2028,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "a": { "type": "number", @@ -2070,15 +2070,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "nbbo", "description": "NBBO data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "fx", "description": "Forex data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -2094,7 +2094,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n", + "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://massive.com/docs/forex/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2170,15 +2170,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "fx", "description": "Forex data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -2194,7 +2194,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n", + "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://massive.com/docs/forex/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2270,15 +2270,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "fx", "description": "Forex data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -2294,7 +2294,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n", + "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://massive.com/docs/forex/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2319,7 +2319,7 @@ "description": "The event type." }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" }, "sym": { "description": "The ticker symbol for the given security." @@ -2331,7 +2331,7 @@ }, "example": { "ev": "FMV", - "val": 1.0631, + "fmv": 1.0631, "sym": "C:EURUSD", "t": 1678220098130 } @@ -2339,15 +2339,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "fx", "description": "Forex data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -2367,7 +2367,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n", + "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://massive.com/docs/forex/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2468,15 +2468,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "fx", "description": "Forex data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -2496,7 +2496,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n", + "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://massive.com/docs/forex/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2541,15 +2541,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "fx", "description": "Forex data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -2569,7 +2569,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2625,11 +2625,11 @@ }, "x": { "type": "integer", - "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" + "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" }, "r": { "type": "integer", - "description": "The timestamp that the tick was received by Polygon." + "description": "The timestamp that the tick was received by Massive." } } }, @@ -2650,15 +2650,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "trades", "description": "Trade data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -2674,7 +2674,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2728,11 +2728,11 @@ }, "x": { "type": "integer", - "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" + "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" }, "r": { "type": "integer", - "description": "The timestamp that the tick was received by Polygon." + "description": "The timestamp that the tick was received by Massive." } } }, @@ -2751,15 +2751,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "nbbo", "description": "NBBO data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -2775,7 +2775,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2833,11 +2833,11 @@ }, "x": { "type": "integer", - "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" + "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" }, "r": { "type": "integer", - "description": "The timestamp that the tick was received by Polygon." + "description": "The timestamp that the tick was received by Massive." } } }, @@ -2872,20 +2872,23 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "nbbo", "description": "NBBO data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" } - ] + ], + "x-massive-deprecation": { + "date": 1719838800000 + } } }, "/crypto/XA": { @@ -2896,7 +2899,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -2984,15 +2987,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -3008,7 +3011,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -3096,15 +3099,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "realtime", "description": "Real Time Data" @@ -3120,7 +3123,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -3145,7 +3148,7 @@ "description": "The event type." }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" }, "sym": { "description": "The ticker symbol for the given security." @@ -3157,7 +3160,7 @@ }, "example": { "ev": "FMV", - "val": 33021.9, + "fmv": 33021.9, "sym": "X:BTC-USD", "t": 1610462007425 } @@ -3165,15 +3168,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -3193,7 +3196,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -3294,15 +3297,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -3322,7 +3325,7 @@ { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -3367,15 +3370,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "indicative-price", "description": "Indicative Price" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "crypto", "description": "Crypto data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -3395,7 +3398,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://polygon.io/docs/indices/get_v3_reference_tickers).\n", + "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://massive.com/docs/indices/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -3483,15 +3486,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "indices", "description": "Indices data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -3511,7 +3514,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://polygon.io/docs/indices/get_v3_reference_tickers).\n", + "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://massive.com/docs/indices/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -3599,15 +3602,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "aggregates", "description": "Aggregate data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "indices", "description": "Indices data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -3627,7 +3630,7 @@ { "name": "ticker", "in": "query", - "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://polygon.io/docs/indices/get_v3_reference_tickers).\n", + "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://massive.com/docs/indices/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -3672,15 +3675,15 @@ } } }, - "x-polygon-entitlement-data-type": { + "x-massive-entitlement-data-type": { "name": "value", "description": "Value data" }, - "x-polygon-entitlement-market-type": { + "x-massive-entitlement-market-type": { "name": "indices", "description": "Indices data" }, - "x-polygon-entitlement-allowed-timeframes": [ + "x-massive-entitlement-allowed-timeframes": [ { "name": "delayed", "description": "15 minute delayed data" @@ -3940,7 +3943,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "i": { "type": "string", @@ -3961,7 +3964,7 @@ }, "c": { "type": "array", - "description": "The trade conditions. See Conditions and Indicators\" for Polygon.io's trade conditions glossary.\n", + "description": "The trade conditions. See Conditions and Indicators for Massive.com's trade conditions glossary.\n", "items": { "type": "integer", "description": "The ID of the condition." @@ -3969,7 +3972,7 @@ }, "t": { "type": "integer", - "description": "The Timestamp in Unix MS." + "description": "The SIP timestamp in Unix MS." }, "q": { "type": "integer", @@ -4030,7 +4033,7 @@ }, "i": { "type": "array", - "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://polygon.io/glossary/us/stocks/conditions-indicators).\n", + "description": "The indicators. For more information, see our glossary of [Conditions and\nIndicators](https://massive.com/glossary/us/stocks/conditions-indicators).\n", "items": { "type": "integer", "description": "The indicator code.\n" @@ -4038,7 +4041,7 @@ }, "t": { "type": "integer", - "description": "The Timestamp in Unix MS." + "description": "The SIP timestamp in Unix MS." }, "q": { "type": "integer", @@ -4366,7 +4369,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "o": { "type": "integer", @@ -4393,7 +4396,7 @@ }, "StockExchangeID": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "OptionTradeEvent": { "type": "object", @@ -4410,7 +4413,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "p": { "type": "number", @@ -4454,11 +4457,11 @@ }, "bx": { "type": "integer", - "description": "The bid exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The bid exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "ax": { "type": "integer", - "description": "The ask exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The ask exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "bp": { "type": "number", @@ -4734,7 +4737,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "a": { "type": "number", @@ -4767,7 +4770,7 @@ }, "x": { "type": "integer", - "description": "The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs." + "description": "The exchange ID. See Exchanges for Massive.com's mapping of exchange IDs." }, "a": { "type": "number", @@ -4933,11 +4936,11 @@ }, "x": { "type": "integer", - "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" + "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" }, "r": { "type": "integer", - "description": "The timestamp that the tick was received by Polygon." + "description": "The timestamp that the tick was received by Massive." } } }, @@ -4983,11 +4986,11 @@ }, "x": { "type": "integer", - "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" + "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" }, "r": { "type": "integer", - "description": "The timestamp that the tick was received by Polygon." + "description": "The timestamp that the tick was received by Massive." } } }, @@ -5149,11 +5152,11 @@ }, "x": { "type": "integer", - "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" + "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" }, "r": { "type": "integer", - "description": "The timestamp that the tick was received by Polygon." + "description": "The timestamp that the tick was received by Massive." } } }, @@ -5163,11 +5166,11 @@ }, "CryptoExchangeID": { "type": "integer", - "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" + "description": "The crypto exchange ID. See Exchanges for a list of exchanges and their IDs.\n" }, "CryptoReceivedTimestamp": { "type": "integer", - "description": "The timestamp that the tick was received by Polygon." + "description": "The timestamp that the tick was received by Massive." }, "IndicesBaseAggregateEvent": { "type": "object", @@ -5452,7 +5455,7 @@ "description": "The event type." }, "fmv": { - "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" + "description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.\n" }, "sym": { "description": "The ticker symbol for the given security." @@ -5467,7 +5470,7 @@ "StocksTickerParam": { "name": "ticker", "in": "query", - "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n", + "description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://massive.com/docs/stocks/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -5478,7 +5481,7 @@ "OptionsTickerParam": { "name": "ticker", "in": "query", - "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract or use * to subscribe to all option contracts.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -5489,7 +5492,7 @@ "OptionsTickerWithoutWildcardParam": { "name": "ticker", "in": "query", - "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n", + "description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://massive.com/docs/options/get_v3_reference_options_contracts).\n", "required": true, "schema": { "type": "string", @@ -5500,7 +5503,7 @@ "ForexTickerParam": { "name": "ticker", "in": "query", - "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n", + "description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://massive.com/docs/forex/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -5511,7 +5514,7 @@ "CryptoTickerParam": { "name": "ticker", "in": "query", - "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n", + "description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://massive.com/docs/crypto/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -5522,7 +5525,7 @@ "IndicesIndexParam": { "name": "ticker", "in": "query", - "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://polygon.io/docs/indices/get_v3_reference_tickers).\n", + "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://massive.com/docs/indices/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", @@ -5533,7 +5536,7 @@ "IndicesIndexParamWithoutWildcard": { "name": "ticker", "in": "query", - "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://polygon.io/docs/indices/get_v3_reference_tickers).\n", + "description": "Specify an index ticker using \"I:\" prefix or use * to subscribe to all index tickers.\nYou can also use a comma separated list to subscribe to multiple index tickers.\nYou can retrieve available index tickers from our [Index Tickers API](https://massive.com/docs/indices/get_v3_reference_tickers).\n", "required": true, "schema": { "type": "string", diff --git a/Makefile b/Makefile index 03f609ba..b3732930 100644 --- a/Makefile +++ b/Makefile @@ -22,22 +22,22 @@ help: ## Check code style style: - poetry run black $(if $(CI),--check,) polygon test_* examples + poetry run black $(if $(CI),--check,) massive test_* examples ## Check static types static: - poetry run mypy polygon test_* examples + poetry run mypy massive test_* examples ## Check code style and static types lint: style static ## Update the REST API spec rest-spec: - poetry run python .polygon/rest.py + poetry run python .massive/rest.py ## Update the WebSocket API spec ws-spec: - curl https://api.polygon.io/specs/websocket.json > .polygon/websocket.json + curl https://api.massive.com/specs/websocket.json > .massive/websocket.json test_rest: poetry run python -m unittest discover -s test_rest diff --git a/README.md b/README.md index 81494a78..565532e6 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,34 @@ -[![PyPI version](https://badge.fury.io/py/polygon-api-client.svg)](https://badge.fury.io/py/polygon-api-client) -[![Docs](https://readthedocs.org/projects/polygon-api-client/badge/?version=latest)](https://polygon-api-client.readthedocs.io/en/latest/) +# Massive (formerly Polygon.io) Python Client - WebSocket & RESTful APIs -# Polygon Python Client - WebSocket & RESTful APIs +Welcome to the official Python client library for the [Massive](https://massive.com/) REST and WebSocket API. To get started, please see the [Getting Started](https://massive.com/docs/stocks/getting-started) section in our documentation, view the [examples](./examples/) directory for code snippets. -Welcome to the official Python client library for the [Polygon](https://polygon.io/) REST and WebSocket API. To get started, please see the [Getting Started](https://polygon.io/docs/stocks/getting-started) section in our documentation, view the [examples](./examples/) directory for code snippets, or the [blog post](https://polygon.io/blog/polygon-io-with-python-for-stock-market-data/) with video tutorials to learn more. +**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. -## Prerequisites +For 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. -Before installing the Polygon Python client, ensure your environment has Python 3.8 or higher. While most Python environments come with setuptools installed, it is a dependency for this library. In the rare case it's not already present, you can install setuptools using pip: +## Prerequisites -``` -pip install setuptools -``` +Before installing the Massive Python client, ensure your environment has Python 3.9 or higher. ## Install Please use pip to install or update to the latest stable version. ``` -pip install -U polygon-api-client +pip install -U massive ``` ## Getting started -To get started, please see the [Getting Started](https://polygon-api-client.readthedocs.io/en/latest/Getting-Started.html) section in our docs, view the [examples](./examples) directory for code snippets, or view the [blog post with videos](https://polygon.io/blog/polygon-io-with-python-for-stock-market-data/) to learn more. +To get started, please see the [Getting Started](https://massive.com/docs/stocks/getting-started) section in our docs, view the [examples](./examples) directory for code snippets. -The free tier of our API comes with usage limitations, potentially leading to rate limit errors if these are exceeded. For uninterrupted access and to support larger data requirements, we recommend reviewing our [subscription plans](https://polygon.io/pricing), which are tailored for a wide range of needs from development to high-demand applications. Refer to our pricing page for detailed information on limits and features to ensure a seamless experience, especially for real-time data processing. +The free tier of our API comes with usage limitations, potentially leading to rate limit errors if these are exceeded. For uninterrupted access and to support larger data requirements, we recommend reviewing our [subscription plans](https://massive.com/pricing), which are tailored for a wide range of needs from development to high-demand applications. Refer to our pricing page for detailed information on limits and features to ensure a seamless experience, especially for real-time data processing. ## REST API Client Import the RESTClient. ```python -from polygon import RESTClient +from massive import RESTClient ``` -Create a new client with your [API key](https://polygon.io/dashboard/api-keys) +Create a new client with your [API key](https://massive.com/dashboard/api-keys) ```python client = RESTClient(api_key="") ``` @@ -66,6 +63,41 @@ for quote in quotes: print(quote) ``` +### Pagination Behavior + +By default, the client paginates results for endpoints like `list_trades` and `list_quotes` behind the scenes for you. Understanding how pagination interacts with the `limit` parameter is key. + +#### Default (Pagination Enabled) + +Pagination is enabled by default (`pagination=True`): + +* `limit` controls the page size, not the total number of results. +* The client automatically fetches all pages, yielding results until none remain. + +Here's an example: + +```python +client = RESTClient(api_key="") +trades = [t for t in client.list_trades(ticker="TSLA", limit=100)] +``` + +This fetches all TSLA trades, 100 per page. + +#### Disabling Pagination + +To return a fixed number of results and stop, disable pagination: + +```python +client = RESTClient(api_key="", pagination=False) +trades = [t for t in client.list_trades(ticker="TSLA", limit=100)] +``` + +This returns at most 100 total trades, no additional pages. + +### Performance Tip + +If you're fetching large datasets, always use the maximum supported limit for the API endpoint. This reduces the number of API calls and improves overall performance. + ### Additional Filter Parameters Many of the APIs in this client library support the use of additional filter parameters to refine your queries. Please refer to the specific API documentation for details on which filter parameters are supported for each endpoint. These filters can be applied using the following operators: @@ -104,20 +136,20 @@ Sometimes you may find it useful to see the actual request and response details You can activate the debug mode as follows: ```python -client = RESTClient(trace=True) +client = RESTClient(trace=True, verbose=True) ``` ### What Does Debug Mode Do? -When debug mode is enabled, the client will print out useful debugging information for each API request. This includes: the request URL, the headers sent in the request, and the headers received in the response. +When debug mode is enabled, the client will print out useful debugging information for each API request. You need to enable `verbose=True` too so that you log the trace or already have your own logger configured. This includes: the request URL, the headers sent in the request, and the headers received in the response. ### Example Output For instance, if you made a request for `TSLA` data for the date `2023-08-01`, you would see debug output similar to the following: ``` -Request URL: https://api.polygon.io/v2/aggs/ticker/TSLA/range/1/minute/2023-08-01/2023-08-01?limit=50000 -Request Headers: {'Authorization': 'Bearer REDACTED', 'Accept-Encoding': 'gzip', 'User-Agent': 'Polygon.io PythonClient/1.12.4'} +Request URL: https://api.massive.com/v2/aggs/ticker/TSLA/range/1/minute/2023-08-01/2023-08-01?limit=50000 +Request Headers: {'Authorization': 'Bearer REDACTED', 'Accept-Encoding': 'gzip', 'User-Agent': 'Massive.com PythonClient/1.12.4'} Response Headers: {'Server': 'nginx/1.19.2', 'Date': 'Tue, 05 Sep 2023 23:07:02 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'X-Request-Id': '727c82feed3790b44084c3f4cae1d7d4', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'} ``` @@ -127,12 +159,12 @@ This can be an invaluable tool for debugging issues or understanding how the cli Import classes ```python -from polygon import WebSocketClient -from polygon.websocket.models import WebSocketMessage +from massive import WebSocketClient +from massive.websocket.models import WebSocketMessage from typing import List ``` ### Using the client -Create a new client with your [API key](https://polygon.io/dashboard/api-keys) and subscription options. +Create a new client with your [API key](https://massive.com/dashboard/api-keys) and subscription options. ```python # Note: Multiple subscriptions can be added to the array # For example, if you want to subscribe to AAPL and META, @@ -148,66 +180,16 @@ def handle_msg(msg: List[WebSocketMessage]): ws.run(handle_msg=handle_msg) ``` -Check out more detailed examples [here](https://github.com/polygon-io/client-python/tree/master/examples/websocket). - -## Launchpad REST API Client -Users of the Launchpad product will need to pass in certain headers in order to make API requests using the RequestOptionBuilder. -Example can be found [here](./examples/launchpad). - -Import classes -```python -from polygon import RESTClient -from polygon.rest.models.request import RequestOptionBuilder -``` -### Using the client -Create client and set options -```python -# create client -c = RESTClient(api_key="API_KEY") - -# create request options -options = RequestOptionBuilder().edge_headers( - edge_id="YOUR_EDGE_ID", # required - edge_ip_address="IP_ADDRESS", # required -) -``` -Request data using client methods. -```python -# get response -res = c.get_aggs("AAPL", 1, "day", "2022-04-04", "2022-04-04", options=options) - -# do something with response -``` -Checkout Launchpad readme for more details on RequestOptionBuilder [here](./examples/launchpad) - - -## Launchpad WebSocket Client - -```python -from polygon import WebSocketClient -from polygon.websocket.models import WebSocketMessage -from polygon.websocket.models.common import Feed, Market -from typing import List - -ws = WebSocketClient(api_key="API_KEY",feed=Feed.Launchpad,market=Market.Stocks, subscriptions=["AM.AAPL"]) - -def handle_msg(msg: List[WebSocketMessage]): - for m in msg: - print(m) - -ws.run(handle_msg=handle_msg) -``` +Check out more detailed examples [here](https://github.com/massive-com/client-python/tree/master/examples/websocket). ## Contributing If you found a bug or have an idea for a new feature, please first discuss it with us by -[submitting a new issue](https://github.com/polygon-io/client-python/issues/new/choose). +[submitting a new issue](https://github.com/massive-com/client-python/issues/new/choose). We will respond to issues within at most 3 weeks. We're also open to volunteers if you want to submit a PR for any open issues but please discuss it with us beforehand. PRs that aren't linked to an existing issue or -discussed with us ahead of time will generally be declined. If you have more general -feedback or want to discuss using this client with other users, feel free to reach out -on our [Slack channel](https://polygon-io.slack.com/archives/C03FRFN7UF3). +discussed with us ahead of time will generally be declined. ### Development diff --git a/docs/source/Aggs.rst b/docs/source/Aggs.rst index 921166e9..b8e3fcc8 100644 --- a/docs/source/Aggs.rst +++ b/docs/source/Aggs.rst @@ -12,7 +12,7 @@ List aggs - `Forex aggs`_ - `Crypto aggs`_ -.. automethod:: polygon.RESTClient.list_aggs +.. automethod:: massive.RESTClient.list_aggs =========== Get aggs @@ -23,7 +23,7 @@ Get aggs - `Forex aggs`_ - `Crypto aggs`_ -.. automethod:: polygon.RESTClient.get_aggs +.. automethod:: massive.RESTClient.get_aggs ============================ Get grouped daily aggs @@ -33,7 +33,7 @@ Get grouped daily aggs - `Forex grouped daily aggs`_ - `Crypto grouped daily aggs`_ -.. automethod:: polygon.RESTClient.get_grouped_daily_aggs +.. automethod:: massive.RESTClient.get_grouped_daily_aggs ============================ Get daily open close agg @@ -43,7 +43,7 @@ Get daily open close agg - `Options daily open/close agg`_ - `Crypto daily open/close agg`_ -.. automethod:: polygon.RESTClient.get_daily_open_close_agg +.. automethod:: massive.RESTClient.get_daily_open_close_agg ============================ Get previous close agg @@ -54,19 +54,19 @@ Get previous close agg - `Forex previous close agg`_ - `Crypto previous close agg`_ -.. automethod:: polygon.RESTClient.get_previous_close_agg - -.. _Stocks aggs: https://polygon.io/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to -.. _Options aggs: https://polygon.io/docs/options/get_v2_aggs_ticker__optionsticker__range__multiplier___timespan___from___to -.. _Forex aggs: https://polygon.io/docs/forex/get_v2_aggs_ticker__forexticker__range__multiplier___timespan___from___to -.. _Crypto aggs: https://polygon.io/docs/crypto/get_v2_aggs_ticker__cryptoticker__range__multiplier___timespan___from___to -.. _Stocks grouped daily aggs: https://polygon.io/docs/stocks/get_v2_aggs_grouped_locale_us_market_stocks__date -.. _Forex grouped daily aggs: https://polygon.io/docs/forex/get_v2_aggs_grouped_locale_global_market_fx__date -.. _Crypto grouped daily aggs: https://polygon.io/docs/crypto/get_v2_aggs_grouped_locale_global_market_crypto__date -.. _Stocks daily open/close agg: https://polygon.io/docs/stocks/get_v1_open-close__stocksticker___date -.. _Options daily open/close agg: https://polygon.io/docs/options/get_v1_open-close__optionsticker___date -.. _Crypto daily open/close agg: https://polygon.io/docs/crypto/get_v1_open-close_crypto__from___to___date -.. _Stocks previous close agg: https://polygon.io/docs/stocks/get_v2_aggs_ticker__stocksticker__prev -.. _Options previous close agg: https://polygon.io/docs/options/get_v2_aggs_ticker__optionsticker__prev -.. _Forex previous close agg: https://polygon.io/docs/forex/get_v2_aggs_ticker__forexticker__prev -.. _Crypto previous close agg: https://polygon.io/docs/crypto/get_v2_aggs_ticker__cryptoticker__prev \ No newline at end of file +.. automethod:: massive.RESTClient.get_previous_close_agg + +.. _Stocks aggs: https://massive.com/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to +.. _Options aggs: https://massive.com/docs/options/get_v2_aggs_ticker__optionsticker__range__multiplier___timespan___from___to +.. _Forex aggs: https://massive.com/docs/forex/get_v2_aggs_ticker__forexticker__range__multiplier___timespan___from___to +.. _Crypto aggs: https://massive.com/docs/crypto/get_v2_aggs_ticker__cryptoticker__range__multiplier___timespan___from___to +.. _Stocks grouped daily aggs: https://massive.com/docs/stocks/get_v2_aggs_grouped_locale_us_market_stocks__date +.. _Forex grouped daily aggs: https://massive.com/docs/forex/get_v2_aggs_grouped_locale_global_market_fx__date +.. _Crypto grouped daily aggs: https://massive.com/docs/crypto/get_v2_aggs_grouped_locale_global_market_crypto__date +.. _Stocks daily open/close agg: https://massive.com/docs/stocks/get_v1_open-close__stocksticker___date +.. _Options daily open/close agg: https://massive.com/docs/options/get_v1_open-close__optionsticker___date +.. _Crypto daily open/close agg: https://massive.com/docs/crypto/get_v1_open-close_crypto__from___to___date +.. _Stocks previous close agg: https://massive.com/docs/stocks/get_v2_aggs_ticker__stocksticker__prev +.. _Options previous close agg: https://massive.com/docs/options/get_v2_aggs_ticker__optionsticker__prev +.. _Forex previous close agg: https://massive.com/docs/forex/get_v2_aggs_ticker__forexticker__prev +.. _Crypto previous close agg: https://massive.com/docs/crypto/get_v2_aggs_ticker__cryptoticker__prev \ No newline at end of file diff --git a/docs/source/Contracts.rst b/docs/source/Contracts.rst index 9278168f..c58c11e5 100644 --- a/docs/source/Contracts.rst +++ b/docs/source/Contracts.rst @@ -9,7 +9,7 @@ Get option contract - `Options Contract`_ -.. automethod:: polygon.RESTClient.get_options_contract +.. automethod:: massive.RESTClient.get_options_contract ================================= List Options Contracts @@ -17,8 +17,8 @@ List Options Contracts - `Options Contracts`_ -.. automethod:: polygon.RESTClient.list_options_contracts +.. automethod:: massive.RESTClient.list_options_contracts -.. _Options Contract: https://polygon.io/docs/options/get_v3_reference_options_contracts__options_ticker -.. _Options Contracts: https://polygon.io/docs/options/get_v3_reference_options_contracts \ No newline at end of file +.. _Options Contract: https://massive.com/docs/options/get_v3_reference_options_contracts__options_ticker +.. _Options Contracts: https://massive.com/docs/options/get_v3_reference_options_contracts \ No newline at end of file diff --git a/docs/source/Enums.rst b/docs/source/Enums.rst index 8f2233a4..47ca8b47 100644 --- a/docs/source/Enums.rst +++ b/docs/source/Enums.rst @@ -6,97 +6,97 @@ Enums ============================================================== Sort ============================================================== -.. autoclass:: polygon.rest.models.Sort +.. autoclass:: massive.rest.models.Sort :members: :undoc-members: ============================================================== Order ============================================================== -.. autoclass:: polygon.rest.models.Order +.. autoclass:: massive.rest.models.Order :members: :undoc-members: ============================================================== Locale ============================================================== -.. autoclass:: polygon.rest.models.Locale +.. autoclass:: massive.rest.models.Locale :members: :undoc-members: ============================================================== Market ============================================================== -.. autoclass:: polygon.rest.models.Market +.. autoclass:: massive.rest.models.Market :members: :undoc-members: ============================================================== AssetClass ============================================================== -.. autoclass:: polygon.rest.models.AssetClass +.. autoclass:: massive.rest.models.AssetClass :members: :undoc-members: ============================================================== DividendType ============================================================== -.. autoclass:: polygon.rest.models.DividendType +.. autoclass:: massive.rest.models.DividendType :members: :undoc-members: ============================================================== Frequency ============================================================== -.. autoclass:: polygon.rest.models.Frequency +.. autoclass:: massive.rest.models.Frequency :members: :undoc-members: ============================================================== DataType ============================================================== -.. autoclass:: polygon.rest.models.DataType +.. autoclass:: massive.rest.models.DataType :members: :undoc-members: ============================================================== SIP ============================================================== -.. autoclass:: polygon.rest.models.SIP +.. autoclass:: massive.rest.models.SIP :members: :undoc-members: ============================================================== ExchangeType ============================================================== -.. autoclass:: polygon.rest.models.ExchangeType +.. autoclass:: massive.rest.models.ExchangeType :members: :undoc-members: ============================================================== Direction ============================================================== -.. autoclass:: polygon.rest.models.Direction +.. autoclass:: massive.rest.models.Direction :members: :undoc-members: ============================================================== SnapshotMarketType ============================================================== -.. autoclass:: polygon.rest.models.SnapshotMarketType +.. autoclass:: massive.rest.models.SnapshotMarketType :members: :undoc-members: ============================================================== Timeframe ============================================================== -.. autoclass:: polygon.rest.models.Timeframe +.. autoclass:: massive.rest.models.Timeframe :members: :undoc-members: ============================================================== Precision ============================================================== -.. autoclass:: polygon.rest.models.Precision +.. autoclass:: massive.rest.models.Precision :members: :undoc-members: diff --git a/docs/source/Exceptions.rst b/docs/source/Exceptions.rst index 554bef82..6a9cc402 100644 --- a/docs/source/Exceptions.rst +++ b/docs/source/Exceptions.rst @@ -6,14 +6,14 @@ Exceptions ============================================================== AuthError ============================================================== -.. autoclass:: polygon.exceptions.AuthError +.. autoclass:: massive.exceptions.AuthError :members: :undoc-members: ============================================================== BadResponse ============================================================== -.. autoclass:: polygon.exceptions.BadResponse +.. autoclass:: massive.exceptions.BadResponse :members: :undoc-members: diff --git a/docs/source/Getting-Started.rst b/docs/source/Getting-Started.rst index a723f93f..120b4b25 100644 --- a/docs/source/Getting-Started.rst +++ b/docs/source/Getting-Started.rst @@ -2,26 +2,26 @@ Getting Started =============== Requirements: - - `Polygon.io API key `_ + - `Massive.com API key `_ - `Python >= 3.8 `_ - - `This package `_ + - `This package `_ .. code-block:: shell - pip install polygon-api-client + pip install massive-api-client HTTP client usage ----------------- -.. automethod:: polygon.RESTClient.__init__ +.. automethod:: massive.RESTClient.__init__ -You can pass your API key via the environment variable :code:`POLYGON_API_KEY` or as the first parameter to the :code:`RESTClient` constructor: +You can pass your API key via the environment variable :code:`MASSIVE_API_KEY` or as the first parameter to the :code:`RESTClient` constructor: .. code-block:: python - from polygon import RESTClient + from massive import RESTClient - client = RESTClient() # POLYGON_API_KEY is used + client = RESTClient() # MASSIVE_API_KEY is used client = RESTClient("api_key") # api_key is used For non-paginated endpoints call :code:`get_*`: @@ -41,7 +41,7 @@ For endpoints that have a set of parameters you can use the provided :doc:`enums .. code-block:: python - from polygon.rest.models import Sort + from massive.rest.models import Sort client.list_trades(..., sort=Sort.ASC) @@ -60,7 +60,7 @@ To provide your own JSON processing library (exposing loads/dumps functions) pas WebSocket client usage ---------------------- -.. automethod:: polygon.WebSocketClient.__init__ +.. automethod:: massive.WebSocketClient.__init__ The simplest way to use the websocket client is to just provide a callback: diff --git a/docs/source/Models.rst b/docs/source/Models.rst index f0eed1c7..393c8d74 100644 --- a/docs/source/Models.rst +++ b/docs/source/Models.rst @@ -6,214 +6,214 @@ Models ============================================================== Universal Snapshot ============================================================== -.. autoclass:: polygon.rest.models.UniversalSnapshot +.. autoclass:: massive.rest.models.UniversalSnapshot ============================================================== Universal Snapshot Session ============================================================== -.. autoclass:: polygon.rest.models.UniversalSnapshotSession +.. autoclass:: massive.rest.models.UniversalSnapshotSession ============================================================== Universal Snapshot Last Quote ============================================================== -.. autoclass:: polygon.rest.models.UniversalSnapshotLastQuote +.. autoclass:: massive.rest.models.UniversalSnapshotLastQuote ============================================================== Universal Snapshot Last Trade ============================================================== -.. autoclass:: polygon.rest.models.UniversalSnapshotLastTrade +.. autoclass:: massive.rest.models.UniversalSnapshotLastTrade ============================================================== Universal Snapshot Details ============================================================== -.. autoclass:: polygon.rest.models.UniversalSnapshotDetails +.. autoclass:: massive.rest.models.UniversalSnapshotDetails ============================================================== Universal Snapshot Underlying Asset ============================================================== -.. autoclass:: polygon.rest.models.UniversalSnapshotUnderlyingAsset +.. autoclass:: massive.rest.models.UniversalSnapshotUnderlyingAsset ============================================================== Agg ============================================================== -.. autoclass:: polygon.rest.models.Agg +.. autoclass:: massive.rest.models.Agg ============================================================== Grouped Daily Agg ============================================================== -.. autoclass:: polygon.rest.models.GroupedDailyAgg +.. autoclass:: massive.rest.models.GroupedDailyAgg ============================================================== Daily Open Close Agg ============================================================== -.. autoclass:: polygon.rest.models.DailyOpenCloseAgg +.. autoclass:: massive.rest.models.DailyOpenCloseAgg ============================================================== Previous Close Agg ============================================================== -.. autoclass:: polygon.rest.models.PreviousCloseAgg +.. autoclass:: massive.rest.models.PreviousCloseAgg ============================================================== Trade ============================================================== -.. autoclass:: polygon.rest.models.Trade +.. autoclass:: massive.rest.models.Trade ============================================================== Last Trade ============================================================== -.. autoclass:: polygon.rest.models.LastTrade +.. autoclass:: massive.rest.models.LastTrade ============================================================== Crypto Trade ============================================================== -.. autoclass:: polygon.rest.models.CryptoTrade +.. autoclass:: massive.rest.models.CryptoTrade ============================================================== Quote ============================================================== -.. autoclass:: polygon.rest.models.Quote +.. autoclass:: massive.rest.models.Quote ============================================================== Last Quote ============================================================== -.. autoclass:: polygon.rest.models.LastQuote +.. autoclass:: massive.rest.models.LastQuote ============================================================== Snapshot Min ============================================================== -.. autoclass:: polygon.rest.models.MinuteSnapshot +.. autoclass:: massive.rest.models.MinuteSnapshot ============================================================== Snapshot ============================================================== -.. autoclass:: polygon.rest.models.TickerSnapshot +.. autoclass:: massive.rest.models.TickerSnapshot ============================================================== Day Option Contract Snapshot ============================================================== -.. autoclass:: polygon.rest.models.DayOptionContractSnapshot +.. autoclass:: massive.rest.models.DayOptionContractSnapshot ============================================================== Option Details ============================================================== -.. autoclass:: polygon.rest.models.OptionDetails +.. autoclass:: massive.rest.models.OptionDetails ============================================================== Option Greeks ============================================================== -.. autoclass:: polygon.rest.models.Greeks +.. autoclass:: massive.rest.models.Greeks ============================================================== Underlying Asset ============================================================== -.. autoclass:: polygon.rest.models.UnderlyingAsset +.. autoclass:: massive.rest.models.UnderlyingAsset ============================================================== Option Contract Snapshot ============================================================== -.. autoclass:: polygon.rest.models.OptionContractSnapshot +.. autoclass:: massive.rest.models.OptionContractSnapshot ============================================================== Order Book Quote ============================================================== -.. autoclass:: polygon.rest.models.OrderBookQuote +.. autoclass:: massive.rest.models.OrderBookQuote ============================================================== Snapshot Ticker Full Book ============================================================== -.. autoclass:: polygon.rest.models.SnapshotTickerFullBook +.. autoclass:: massive.rest.models.SnapshotTickerFullBook ============================================================== Ticker ============================================================== -.. autoclass:: polygon.rest.models.Ticker +.. autoclass:: massive.rest.models.Ticker ============================================================== Address ============================================================== -.. autoclass:: polygon.rest.models.CompanyAddress +.. autoclass:: massive.rest.models.CompanyAddress ============================================================== Branding ============================================================== -.. autoclass:: polygon.rest.models.Branding +.. autoclass:: massive.rest.models.Branding ============================================================== Publisher ============================================================== -.. autoclass:: polygon.rest.models.Publisher +.. autoclass:: massive.rest.models.Publisher ============================================================== Ticker Details ============================================================== -.. autoclass:: polygon.rest.models.TickerDetails +.. autoclass:: massive.rest.models.TickerDetails ============================================================== Ticker News ============================================================== -.. autoclass:: polygon.rest.models.TickerNews +.. autoclass:: massive.rest.models.TickerNews ============================================================== Ticker Types ============================================================== -.. autoclass:: polygon.rest.models.TickerTypes +.. autoclass:: massive.rest.models.TickerTypes ============================================================== Market Holiday ============================================================== -.. autoclass:: polygon.rest.models.MarketHoliday +.. autoclass:: massive.rest.models.MarketHoliday ============================================================== Market Currencies ============================================================== -.. autoclass:: polygon.rest.models.MarketCurrencies +.. autoclass:: massive.rest.models.MarketCurrencies ============================================================== Market Exchanges ============================================================== -.. autoclass:: polygon.rest.models.MarketExchanges +.. autoclass:: massive.rest.models.MarketExchanges ============================================================== Market Status ============================================================== -.. autoclass:: polygon.rest.models.MarketStatus +.. autoclass:: massive.rest.models.MarketStatus ============================================================== Split ============================================================== -.. autoclass:: polygon.rest.models.Split +.. autoclass:: massive.rest.models.Split ============================================================== Dividend ============================================================== -.. autoclass:: polygon.rest.models.Dividend +.. autoclass:: massive.rest.models.Dividend ============================================================== Sip Mapping ============================================================== -.. autoclass:: polygon.rest.models.SipMapping +.. autoclass:: massive.rest.models.SipMapping ============================================================== Consolidated ============================================================== -.. autoclass:: polygon.rest.models.Consolidated +.. autoclass:: massive.rest.models.Consolidated ============================================================== Market Center ============================================================== -.. autoclass:: polygon.rest.models.MarketCenter +.. autoclass:: massive.rest.models.MarketCenter ============================================================== Update Rules ============================================================== -.. autoclass:: polygon.rest.models.UpdateRules +.. autoclass:: massive.rest.models.UpdateRules ============================================================== Condition ============================================================== -.. autoclass:: polygon.rest.models.Condition +.. autoclass:: massive.rest.models.Condition ============================================================== Exchange ============================================================== -.. autoclass:: polygon.rest.models.Exchange +.. autoclass:: massive.rest.models.Exchange diff --git a/docs/source/Quotes.rst b/docs/source/Quotes.rst index 2ef22574..92fbf128 100644 --- a/docs/source/Quotes.rst +++ b/docs/source/Quotes.rst @@ -11,7 +11,7 @@ List quotes - `Options quotes`_ - `Forex quotes`_ -.. automethod:: polygon.RESTClient.list_quotes +.. automethod:: massive.RESTClient.list_quotes ================================= Get last quote @@ -19,7 +19,7 @@ Get last quote - `Stocks last quote`_ -.. automethod:: polygon.RESTClient.get_last_quote +.. automethod:: massive.RESTClient.get_last_quote ================================= Get last forex quote @@ -27,7 +27,7 @@ Get last forex quote - `Forex last quote for a currency pair`_ -.. automethod:: polygon.RESTClient.get_last_forex_quote +.. automethod:: massive.RESTClient.get_last_forex_quote ================================= Get real-time currency conversion @@ -35,11 +35,11 @@ Get real-time currency conversion - `Forex real-time currency conversion`_ -.. automethod:: polygon.RESTClient.get_real_time_currency_conversion +.. automethod:: massive.RESTClient.get_real_time_currency_conversion -.. _Stocks quotes: https://polygon.io/docs/stocks/get_v3_quotes__stockticker -.. _Options quotes: https://polygon.io/docs/options/get_v3_quotes__optionsticker -.. _Forex quotes: https://polygon.io/docs/forex/get_v3_quotes__fxticker -.. _Stocks last quote: https://polygon.io/docs/stocks/get_v2_last_nbbo__stocksticker -.. _Forex last quote for a currency pair: https://polygon.io/docs/forex/get_v1_last_quote_currencies__from___to -.. _Forex real-time currency conversion: https://polygon.io/docs/forex/get_v1_conversion__from___to +.. _Stocks quotes: https://massive.com/docs/stocks/get_v3_quotes__stockticker +.. _Options quotes: https://massive.com/docs/options/get_v3_quotes__optionsticker +.. _Forex quotes: https://massive.com/docs/forex/get_v3_quotes__fxticker +.. _Stocks last quote: https://massive.com/docs/stocks/get_v2_last_nbbo__stocksticker +.. _Forex last quote for a currency pair: https://massive.com/docs/forex/get_v1_last_quote_currencies__from___to +.. _Forex real-time currency conversion: https://massive.com/docs/forex/get_v1_conversion__from___to diff --git a/docs/source/Reference.rst b/docs/source/Reference.rst index 3b7bd3d3..a497ece4 100644 --- a/docs/source/Reference.rst +++ b/docs/source/Reference.rst @@ -12,7 +12,7 @@ Get market holidays - `Forex market holidays`_ - `Crypto market holidays`_ -.. automethod:: polygon.RESTClient.get_market_holidays +.. automethod:: massive.RESTClient.get_market_holidays ==================== Get market status @@ -23,7 +23,7 @@ Get market status - `Forex market status`_ - `Crypto market status`_ -.. automethod:: polygon.RESTClient.get_market_status +.. automethod:: massive.RESTClient.get_market_status ==================== List tickers @@ -34,7 +34,7 @@ List tickers - `Forex tickers`_ - `Crypto tickers`_ -.. automethod:: polygon.RESTClient.list_tickers +.. automethod:: massive.RESTClient.list_tickers ==================== Get ticker details @@ -43,7 +43,7 @@ Get ticker details - `Stocks ticker details`_ - `Options ticker details`_ -.. automethod:: polygon.RESTClient.get_ticker_details +.. automethod:: massive.RESTClient.get_ticker_details ==================== List ticker news @@ -52,7 +52,7 @@ List ticker news - `Stocks ticker news`_ - `Options ticker news`_ -.. automethod:: polygon.RESTClient.list_ticker_news +.. automethod:: massive.RESTClient.list_ticker_news ==================== Get ticker types @@ -61,7 +61,7 @@ Get ticker types - `Stocks ticker types`_ - `Options ticker types`_ -.. automethod:: polygon.RESTClient.get_ticker_types +.. automethod:: massive.RESTClient.get_ticker_types ==================== List splits @@ -69,7 +69,7 @@ List splits - `Stocks splits`_ -.. automethod:: polygon.RESTClient.list_splits +.. automethod:: massive.RESTClient.list_splits ==================== List dividends @@ -77,7 +77,7 @@ List dividends - `Stocks dividends`_ -.. automethod:: polygon.RESTClient.list_dividends +.. automethod:: massive.RESTClient.list_dividends ==================== List conditions @@ -88,7 +88,7 @@ List conditions - `Forex conditions`_ - `Crypto conditions`_ -.. automethod:: polygon.RESTClient.list_conditions +.. automethod:: massive.RESTClient.list_conditions ==================== Get exchanges @@ -99,33 +99,33 @@ Get exchanges - `Forex exchanges`_ - `Crypto exchanges`_ -.. automethod:: polygon.RESTClient.get_exchanges - -.. _Stocks market holidays: https://polygon.io/docs/stocks/get_v1_marketstatus_upcoming -.. _Options market holidays: https://polygon.io/docs/options/get_v1_marketstatus_upcoming -.. _Forex market holidays: https://polygon.io/docs/forex/get_v1_marketstatus_upcoming -.. _Crypto market holidays: https://polygon.io/docs/crypto/get_v1_marketstatus_upcoming -.. _Stocks market status: https://polygon.io/docs/stocks/get_v1_marketstatus_now -.. _Options market status: https://polygon.io/docs/options/get_v1_marketstatus_now -.. _Forex market status: https://polygon.io/docs/forex/get_v1_marketstatus_now -.. _Crypto market status: https://polygon.io/docs/crypto/get_v1_marketstatus_now -.. _Stocks tickers: https://polygon.io/docs/stocks/get_v3_reference_tickers -.. _Options tickers: https://polygon.io/docs/options/get_v3_reference_tickers -.. _Forex tickers: https://polygon.io/docs/forex/get_v3_reference_tickers -.. _Crypto tickers: https://polygon.io/docs/crypto/get_v3_reference_tickers -.. _Stocks ticker details: https://polygon.io/docs/stocks/get_v3_reference_tickers__ticker -.. _Options ticker details: https://polygon.io/docs/options/get_v3_reference_tickers__ticker -.. _Stocks ticker news: https://polygon.io/docs/stocks/get_v2_reference_news -.. _Options ticker news: https://polygon.io/docs/options/get_v2_reference_news -.. _Stocks ticker types: https://polygon.io/docs/stocks/get_v3_reference_tickers_types -.. _Options ticker types: https://polygon.io/docs/options/get_v3_reference_tickers_types -.. _Stocks splits: https://polygon.io/docs/stocks/get_v3_reference_splits -.. _Stocks dividends: https://polygon.io/docs/stocks/get_v3_reference_dividends -.. _Stocks conditions: https://polygon.io/docs/stocks/get_v3_reference_conditions -.. _Options conditions: https://polygon.io/docs/options/get_v3_reference_conditions -.. _Forex conditions: https://polygon.io/docs/forex/get_v3_reference_conditions -.. _Crypto conditions: https://polygon.io/docs/crypto/get_v3_reference_conditions -.. _Stocks exchanges: https://polygon.io/docs/stocks/get_v3_reference_exchanges -.. _Options exchanges: https://polygon.io/docs/options/get_v3_reference_exchanges -.. _Forex exchanges: https://polygon.io/docs/forex/get_v3_reference_exchanges -.. _Crypto exchanges: https://polygon.io/docs/crypto/get_v3_reference_exchanges \ No newline at end of file +.. automethod:: massive.RESTClient.get_exchanges + +.. _Stocks market holidays: https://massive.com/docs/stocks/get_v1_marketstatus_upcoming +.. _Options market holidays: https://massive.com/docs/options/get_v1_marketstatus_upcoming +.. _Forex market holidays: https://massive.com/docs/forex/get_v1_marketstatus_upcoming +.. _Crypto market holidays: https://massive.com/docs/crypto/get_v1_marketstatus_upcoming +.. _Stocks market status: https://massive.com/docs/stocks/get_v1_marketstatus_now +.. _Options market status: https://massive.com/docs/options/get_v1_marketstatus_now +.. _Forex market status: https://massive.com/docs/forex/get_v1_marketstatus_now +.. _Crypto market status: https://massive.com/docs/crypto/get_v1_marketstatus_now +.. _Stocks tickers: https://massive.com/docs/stocks/get_v3_reference_tickers +.. _Options tickers: https://massive.com/docs/options/get_v3_reference_tickers +.. _Forex tickers: https://massive.com/docs/forex/get_v3_reference_tickers +.. _Crypto tickers: https://massive.com/docs/crypto/get_v3_reference_tickers +.. _Stocks ticker details: https://massive.com/docs/stocks/get_v3_reference_tickers__ticker +.. _Options ticker details: https://massive.com/docs/options/get_v3_reference_tickers__ticker +.. _Stocks ticker news: https://massive.com/docs/stocks/get_v2_reference_news +.. _Options ticker news: https://massive.com/docs/options/get_v2_reference_news +.. _Stocks ticker types: https://massive.com/docs/stocks/get_v3_reference_tickers_types +.. _Options ticker types: https://massive.com/docs/options/get_v3_reference_tickers_types +.. _Stocks splits: https://massive.com/docs/stocks/get_v3_reference_splits +.. _Stocks dividends: https://massive.com/docs/stocks/get_v3_reference_dividends +.. _Stocks conditions: https://massive.com/docs/stocks/get_v3_reference_conditions +.. _Options conditions: https://massive.com/docs/options/get_v3_reference_conditions +.. _Forex conditions: https://massive.com/docs/forex/get_v3_reference_conditions +.. _Crypto conditions: https://massive.com/docs/crypto/get_v3_reference_conditions +.. _Stocks exchanges: https://massive.com/docs/stocks/get_v3_reference_exchanges +.. _Options exchanges: https://massive.com/docs/options/get_v3_reference_exchanges +.. _Forex exchanges: https://massive.com/docs/forex/get_v3_reference_exchanges +.. _Crypto exchanges: https://massive.com/docs/crypto/get_v3_reference_exchanges \ No newline at end of file diff --git a/docs/source/Snapshot.rst b/docs/source/Snapshot.rst index 7744ba1c..7268e209 100644 --- a/docs/source/Snapshot.rst +++ b/docs/source/Snapshot.rst @@ -12,7 +12,7 @@ Get snapshots for all asset types - `Forex snapshot all tickers`_ - `Crypto snapshot all tickers`_ -.. automethod:: polygon.RESTClient.list_universal_snapshots +.. automethod:: massive.RESTClient.list_universal_snapshots ================================= Get all snapshots @@ -22,7 +22,7 @@ Get all snapshots - `Forex snapshot all tickers (deprecated)`_ - `Crypto snapshot all tickers (deprecated)`_ -.. automethod:: polygon.RESTClient.get_snapshot_all +.. automethod:: massive.RESTClient.get_snapshot_all ================================= Get gainers/losers snapshot @@ -32,7 +32,7 @@ Get gainers/losers snapshot - `Forex snapshot gainers/losers`_ - `Crypto snapshot gainers/losers`_ -.. automethod:: polygon.RESTClient.get_snapshot_direction +.. automethod:: massive.RESTClient.get_snapshot_direction ================================= Get ticker snapshot @@ -42,7 +42,7 @@ Get ticker snapshot - `Forex snapshot ticker`_ - `Crypto snapshot ticker`_ -.. automethod:: polygon.RESTClient.get_snapshot_ticker +.. automethod:: massive.RESTClient.get_snapshot_ticker ================================= Get options snapshot @@ -50,7 +50,7 @@ Get options snapshot - `Options snapshot option contract`_ -.. automethod:: polygon.RESTClient.get_snapshot_option +.. automethod:: massive.RESTClient.get_snapshot_option ================================= Get crypto L2 book snapshot @@ -58,21 +58,21 @@ Get crypto L2 book snapshot - `Crypto snapshot ticker full book (L2)`_ -.. automethod:: polygon.RESTClient.get_snapshot_crypto_book - -.. _Stocks snapshot all tickers: https://polygon.io/docs/stocks/get_v3_snapshot -.. _Options snapshot all tickers: https://polygon.io/docs/options/get_v3_snapshot -.. _Forex snapshot all tickers: https://polygon.io/docs/forex/get_v3_snapshot -.. _Crypto snapshot all tickers:: https://polygon.io/docs/crypto/get_v3_snapshot -.. _Stocks snapshot all tickers (deprecated): https://polygon.io/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers -.. _Options snapshot all tickers (deprecated): https://polygon.io/docs/options/get_v2_snapshot_locale_us_markets_stocks_tickers -.. _Forex snapshot all tickers (deprecated): https://polygon.io/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers -.. _Crypto snapshot all tickers (deprecated):: https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers -.. _Stocks snapshot gainers/losers: https://polygon.io/docs/stocks/get_v2_snapshot_locale_us_markets_stocks__direction -.. _Forex snapshot gainers/losers: https://polygon.io/docs/forex/get_v2_snapshot_locale_global_markets_forex__direction -.. _Crypto snapshot gainers/losers: https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto__direction -.. _Stocks snapshot ticker: https://polygon.io/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers__stocksticker -.. _Forex snapshot ticker: https://polygon.io/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers__ticker -.. _Crypto snapshot ticker: https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker -.. _Options snapshot option contract: https://polygon.io/docs/options/get_v3_snapshot_options__underlyingasset___optioncontract -.. _Crypto snapshot ticker full book (L2): https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker__book \ No newline at end of file +.. automethod:: massive.RESTClient.get_snapshot_crypto_book + +.. _Stocks snapshot all tickers: https://massive.com/docs/stocks/get_v3_snapshot +.. _Options snapshot all tickers: https://massive.com/docs/options/get_v3_snapshot +.. _Forex snapshot all tickers: https://massive.com/docs/forex/get_v3_snapshot +.. _Crypto snapshot all tickers:: https://massive.com/docs/crypto/get_v3_snapshot +.. _Stocks snapshot all tickers (deprecated): https://massive.com/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers +.. _Options snapshot all tickers (deprecated): https://massive.com/docs/options/get_v2_snapshot_locale_us_markets_stocks_tickers +.. _Forex snapshot all tickers (deprecated): https://massive.com/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers +.. _Crypto snapshot all tickers (deprecated):: https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers +.. _Stocks snapshot gainers/losers: https://massive.com/docs/stocks/get_v2_snapshot_locale_us_markets_stocks__direction +.. _Forex snapshot gainers/losers: https://massive.com/docs/forex/get_v2_snapshot_locale_global_markets_forex__direction +.. _Crypto snapshot gainers/losers: https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto__direction +.. _Stocks snapshot ticker: https://massive.com/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers__stocksticker +.. _Forex snapshot ticker: https://massive.com/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers__ticker +.. _Crypto snapshot ticker: https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker +.. _Options snapshot option contract: https://massive.com/docs/options/get_v3_snapshot_options__underlyingasset___optioncontract +.. _Crypto snapshot ticker full book (L2): https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker__book \ No newline at end of file diff --git a/docs/source/Trades.rst b/docs/source/Trades.rst index 5d6e6992..817b97a3 100644 --- a/docs/source/Trades.rst +++ b/docs/source/Trades.rst @@ -11,7 +11,7 @@ List trades - `Options trades`_ - `Crypto trades`_ -.. automethod:: polygon.RESTClient.list_trades +.. automethod:: massive.RESTClient.list_trades ================================================================== Get last trade @@ -20,7 +20,7 @@ Get last trade - `Stocks last trade`_ - `Options last trade`_ -.. automethod:: polygon.RESTClient.get_last_trade +.. automethod:: massive.RESTClient.get_last_trade ================================================================== Get last crypto trade @@ -28,11 +28,11 @@ Get last crypto trade - `Crypto last trade for crypto pair`_ -.. automethod:: polygon.RESTClient.get_last_crypto_trade +.. automethod:: massive.RESTClient.get_last_crypto_trade -.. _Stocks trades: https://polygon.io/docs/stocks/get_v3_trades__stockticker -.. _Options trades: https://polygon.io/docs/options/get_v3_trades__optionsticker -.. _Crypto trades: https://polygon.io/docs/crypto/get_v3_trades__cryptoticker -.. _Stocks last trade: https://polygon.io/docs/stocks/get_v2_last_trade__stocksticker -.. _Options last trade: https://polygon.io/docs/options/get_v2_last_trade__optionsticker -.. _Crypto last trade for crypto pair: https://polygon.io/docs/crypto/get_v1_last_crypto__from___to \ No newline at end of file +.. _Stocks trades: https://massive.com/docs/stocks/get_v3_trades__stockticker +.. _Options trades: https://massive.com/docs/options/get_v3_trades__optionsticker +.. _Crypto trades: https://massive.com/docs/crypto/get_v3_trades__cryptoticker +.. _Stocks last trade: https://massive.com/docs/stocks/get_v2_last_trade__stocksticker +.. _Options last trade: https://massive.com/docs/options/get_v2_last_trade__optionsticker +.. _Crypto last trade for crypto pair: https://massive.com/docs/crypto/get_v1_last_crypto__from___to \ No newline at end of file diff --git a/docs/source/WebSocket-Enums.rst b/docs/source/WebSocket-Enums.rst index dc2fd199..7e4b5f93 100644 --- a/docs/source/WebSocket-Enums.rst +++ b/docs/source/WebSocket-Enums.rst @@ -6,20 +6,20 @@ WebSocket Enums ============================================================== Feed ============================================================== -.. autoclass:: polygon.websocket.models.Feed +.. autoclass:: massive.websocket.models.Feed :members: :undoc-members: ============================================================== Market ============================================================== -.. autoclass:: polygon.websocket.models.Market +.. autoclass:: massive.websocket.models.Market :members: :undoc-members: ============================================================== EventType ============================================================== -.. autoclass:: polygon.websocket.models.EventType +.. autoclass:: massive.websocket.models.EventType :members: :undoc-members: \ No newline at end of file diff --git a/docs/source/WebSocket.rst b/docs/source/WebSocket.rst index 5f508122..c624d9d2 100644 --- a/docs/source/WebSocket.rst +++ b/docs/source/WebSocket.rst @@ -11,35 +11,35 @@ WebSocket =========== Init client =========== -.. automethod:: polygon.WebSocketClient.__init__ +.. automethod:: massive.WebSocketClient.__init__ :noindex: ============================ Connect ============================ -.. automethod:: polygon.WebSocketClient.connect +.. automethod:: massive.WebSocketClient.connect ============================ Run ============================ -.. automethod:: polygon.WebSocketClient.run +.. automethod:: massive.WebSocketClient.run ============================ Subscribe ============================ -.. automethod:: polygon.WebSocketClient.subscribe +.. automethod:: massive.WebSocketClient.subscribe ============================ Unsubscribe ============================ -.. automethod:: polygon.WebSocketClient.unsubscribe +.. automethod:: massive.WebSocketClient.unsubscribe ============================ Close ============================ -.. automethod:: polygon.WebSocketClient.close +.. automethod:: massive.WebSocketClient.close -.. _Stocks getting started: https://polygon.io/docs/stocks/ws_getting-started -.. _Options getting started: https://polygon.io/docs/options/ws_getting-started -.. _Forex getting started: https://polygon.io/docs/forex/ws_getting-started -.. _Crypto getting started: https://polygon.io/docs/crypto/ws_getting-started \ No newline at end of file +.. _Stocks getting started: https://massive.com/docs/stocks/ws_getting-started +.. _Options getting started: https://massive.com/docs/options/ws_getting-started +.. _Forex getting started: https://massive.com/docs/forex/ws_getting-started +.. _Crypto getting started: https://massive.com/docs/crypto/ws_getting-started \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 235ee004..4ebf65d2 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,13 +14,13 @@ import sys sys.path.insert(0, os.path.abspath('../..')) print('docs path', sys.path[0]) -os.environ['POLYGON_API_KEY'] = 'POLYGON_API_KEY' +os.environ['MASSIVE_API_KEY'] = 'MASSIVE_API_KEY' # -- Project information ----------------------------------------------------- -project = 'polygon-api-client' -copyright = '2022, Polygon.io' -author = 'Polygon.io' +project = 'massive-api-client' +copyright = '2022, Massive.com' +author = 'Massive.com' # The full version, including alpha/beta/rc tags release = '0.3.0' diff --git a/docs/source/index.rst b/docs/source/index.rst index b445b803..7bb2b316 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,7 +1,7 @@ -Welcome to polygon-api-client's documentation! +Welcome to massive-api-client's documentation! ============================================== -This documentation is for the Python client only. For details about the responses see `the official docs `_. +This documentation is for the Python client only. For details about the responses see `the official docs `_. .. toctree:: :maxdepth: 1 diff --git a/docs/source/vX.rst b/docs/source/vX.rst index 69a25311..f6a9125b 100644 --- a/docs/source/vX.rst +++ b/docs/source/vX.rst @@ -14,6 +14,6 @@ List stock financials - `Stocks financials vX`_ -.. automethod:: polygon.rest.VXClient.list_stock_financials +.. automethod:: massive.rest.VXClient.list_stock_financials -.. _Stocks financials vX: https://polygon.io/docs/stocks/get_vx_reference_financials +.. _Stocks financials vX: https://massive.com/docs/stocks/get_vx_reference_financials diff --git a/examples/launchpad/README.md b/examples/launchpad/README.md index 53301593..5a0c3bd3 100644 --- a/examples/launchpad/README.md +++ b/examples/launchpad/README.md @@ -5,8 +5,8 @@ Users of the Launchpad product will need to pass in certain headers in order to ```python # import RESTClient -from polygon import RESTClient -from polygon.rest.models.request import RequestOptionBuilder +from massive import RESTClient +from massive.rest.models.request import RequestOptionBuilder # create client c = RESTClient(api_key="API_KEY") @@ -27,8 +27,8 @@ Launchpad users can also provide the optional User Agent value describing their ```python # import RESTClient -from polygon import RESTClient -from polygon.rest.models.request import RequestOptionBuilder +from massive import RESTClient +from massive.rest.models.request import RequestOptionBuilder # create client c = RESTClient(api_key="API_KEY") diff --git a/examples/launchpad/launchpad.py b/examples/launchpad/launchpad.py index 6c6fbe35..6bd2306c 100644 --- a/examples/launchpad/launchpad.py +++ b/examples/launchpad/launchpad.py @@ -1,5 +1,5 @@ -from polygon import RESTClient -from polygon.rest.models.request import RequestOptionBuilder +from massive import RESTClient +from massive.rest.models.request import RequestOptionBuilder def get_list_trades_launchpad(): diff --git a/examples/rest/bulk_aggs_downloader.py b/examples/rest/bulk_aggs_downloader.py index c5c6099e..89df0765 100644 --- a/examples/rest/bulk_aggs_downloader.py +++ b/examples/rest/bulk_aggs_downloader.py @@ -1,7 +1,7 @@ import datetime import concurrent.futures import logging -from polygon import RESTClient +from massive import RESTClient import signal import sys import pickle @@ -10,7 +10,7 @@ """ This script performs the following tasks: -1. Downloads aggregated market data (referred to as 'aggs') for specific stock symbols using the Polygon API. +1. Downloads aggregated market data (referred to as 'aggs') for specific stock symbols using the Massive API. 2. Handles data for multiple dates and performs these operations in parallel to improve efficiency. 3. Saves the downloaded data in a compressed format (LZ4) using Python's pickle serialization. 4. Utilizes logging to track its progress and any potential errors. @@ -18,7 +18,7 @@ Usage: 1. pip install lz4 -2. Set your Polygon API key in the environment variable 'POLYGON_API_KEY'. +2. Set your Massive API key in the environment variable 'MASSIVE_API_KEY'. 3. Specify the date range and stock symbols you are interested in within the script. 4. Run the script. @@ -43,7 +43,7 @@ def get_aggs_for_symbol_and_date(symbol_date_pair): """Retrieve aggs for a given symbol and date""" symbol, date = symbol_date_pair aggs = [] - client = RESTClient(trace=True) # Uses POLYGON_API_KEY environment variable + client = RESTClient(trace=True) # Uses MASSIVE_API_KEY environment variable for a in client.list_aggs( symbol, diff --git a/examples/rest/crypto-aggregates_bars.py b/examples/rest/crypto-aggregates_bars.py index a3831aeb..443ce21d 100644 --- a/examples/rest/crypto-aggregates_bars.py +++ b/examples/rest/crypto-aggregates_bars.py @@ -1,20 +1,20 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v2_aggs_ticker__cryptoticker__range__multiplier___timespan___from___to -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#polygon.RESTClient.list_aggs +# https://massive.com/docs/crypto/get_v2_aggs_ticker__cryptoticker__range__multiplier___timespan___from___to +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#massive.RESTClient.list_aggs # API key injected below for easy use. If not provided, the script will attempt -# to use the environment variable "POLYGON_API_KEY". +# to use the environment variable "MASSIVE_API_KEY". # -# setx POLYGON_API_KEY "" <- windows -# export POLYGON_API_KEY="" <- mac/linux +# setx MASSIVE_API_KEY "" <- windows +# export MASSIVE_API_KEY="" <- mac/linux # # Note: To persist the environment variable you need to add the above command # to the shell startup script (e.g. .bashrc or .bash_profile. # # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/rest/crypto-conditions.py b/examples/rest/crypto-conditions.py index 93e3feda..339d53f0 100644 --- a/examples/rest/crypto-conditions.py +++ b/examples/rest/crypto-conditions.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v3_reference_conditions -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-conditions +# https://massive.com/docs/crypto/get_v3_reference_conditions +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-conditions # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used conditions = [] for c in client.list_conditions("crypto", limit=1000): diff --git a/examples/rest/crypto-daily_open_close.py b/examples/rest/crypto-daily_open_close.py index 8ff3ad41..5c29db0c 100644 --- a/examples/rest/crypto-daily_open_close.py +++ b/examples/rest/crypto-daily_open_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v1_open-close_crypto__from___to___date -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg +# https://massive.com/docs/crypto/get_v1_open-close_crypto__from___to___date +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # make request request = client.get_daily_open_close_agg( diff --git a/examples/rest/crypto-exchanges.py b/examples/rest/crypto-exchanges.py index cf0a46d0..8a592d55 100644 --- a/examples/rest/crypto-exchanges.py +++ b/examples/rest/crypto-exchanges.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( Exchange, ) # docs -# https://polygon.io/docs/crypto/get_v3_reference_exchanges -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges +# https://massive.com/docs/crypto/get_v3_reference_exchanges +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used exchanges = client.get_exchanges("crypto") print(exchanges) diff --git a/examples/rest/crypto-grouped_daily_bars.py b/examples/rest/crypto-grouped_daily_bars.py index ec1bdb81..4ebd3d36 100644 --- a/examples/rest/crypto-grouped_daily_bars.py +++ b/examples/rest/crypto-grouped_daily_bars.py @@ -1,12 +1,12 @@ -from polygon import RESTClient +from massive import RESTClient import pprint # docs -# https://polygon.io/docs/crypto/get_v2_aggs_grouped_locale_global_market_crypto__date -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-grouped-daily-aggs +# https://massive.com/docs/crypto/get_v2_aggs_grouped_locale_global_market_crypto__date +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-grouped-daily-aggs # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used grouped = client.get_grouped_daily_aggs( "2023-01-09", locale="global", market_type="crypto" diff --git a/examples/rest/crypto-last_trade_for_a_crypto_pair.py b/examples/rest/crypto-last_trade_for_a_crypto_pair.py index 850bd98a..ef75efaa 100644 --- a/examples/rest/crypto-last_trade_for_a_crypto_pair.py +++ b/examples/rest/crypto-last_trade_for_a_crypto_pair.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v1_last_crypto__from___to -# https://polygon-api-client.readthedocs.io/en/latest/Trades.html#get-last-crypto-trade +# https://massive.com/docs/crypto/get_v1_last_crypto__from___to +# https://massive-api-client.readthedocs.io/en/latest/Trades.html#get-last-crypto-trade # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used trade = client.get_last_crypto_trade("BTC", "USD") diff --git a/examples/rest/crypto-market_holidays.py b/examples/rest/crypto-market_holidays.py index 6d1df168..740bbc71 100644 --- a/examples/rest/crypto-market_holidays.py +++ b/examples/rest/crypto-market_holidays.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( MarketHoliday, ) # docs -# https://polygon.io/docs/crypto/get_v1_marketstatus_upcoming -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays +# https://massive.com/docs/crypto/get_v1_marketstatus_upcoming +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used holidays = client.get_market_holidays() # print(holidays) diff --git a/examples/rest/crypto-market_status.py b/examples/rest/crypto-market_status.py index 4265997c..d58d6180 100644 --- a/examples/rest/crypto-market_status.py +++ b/examples/rest/crypto-market_status.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v1_marketstatus_now -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-status +# https://massive.com/docs/crypto/get_v1_marketstatus_now +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-status # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used result = client.get_market_status() print(result) diff --git a/examples/rest/crypto-previous_close.py b/examples/rest/crypto-previous_close.py index bf309fed..b4fd4cea 100644 --- a/examples/rest/crypto-previous_close.py +++ b/examples/rest/crypto-previous_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v2_aggs_ticker__cryptoticker__prev -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg +# https://massive.com/docs/crypto/get_v2_aggs_ticker__cryptoticker__prev +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = client.get_previous_close_agg( "X:BTCUSD", diff --git a/examples/rest/crypto-snapshots_all_tickers.py b/examples/rest/crypto-snapshots_all_tickers.py index 9bb06621..5c5c8e70 100644 --- a/examples/rest/crypto-snapshots_all_tickers.py +++ b/examples/rest/crypto-snapshots_all_tickers.py @@ -1,15 +1,15 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerSnapshot, Agg, ) # docs -# https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots +# https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used snapshot = client.get_snapshot_all("crypto") # all tickers diff --git a/examples/rest/crypto-snapshots_gainers_losers.py b/examples/rest/crypto-snapshots_gainers_losers.py index 34db190b..5ced0e6d 100644 --- a/examples/rest/crypto-snapshots_gainers_losers.py +++ b/examples/rest/crypto-snapshots_gainers_losers.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerSnapshot, ) # docs -# https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto__direction -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-gainers-losers-snapshot +# https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto__direction +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-gainers-losers-snapshot # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # get gainers gainers = client.get_snapshot_direction("crypto", "gainers") diff --git a/examples/rest/crypto-snapshots_ticker.py b/examples/rest/crypto-snapshots_ticker.py index 31a48ebd..36e639d2 100644 --- a/examples/rest/crypto-snapshots_ticker.py +++ b/examples/rest/crypto-snapshots_ticker.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-ticker-snapshot +# https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-ticker-snapshot # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ticker = client.get_snapshot_ticker("crypto", "X:BTCUSD") print(ticker) diff --git a/examples/rest/crypto-snapshots_ticker_full_book_l2.py b/examples/rest/crypto-snapshots_ticker_full_book_l2.py index 38d239cf..b8b9157c 100644 --- a/examples/rest/crypto-snapshots_ticker_full_book_l2.py +++ b/examples/rest/crypto-snapshots_ticker_full_book_l2.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker__book -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-crypto-l2-book-snapshot +# https://massive.com/docs/crypto/get_v2_snapshot_locale_global_markets_crypto_tickers__ticker__book +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-crypto-l2-book-snapshot # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used snapshot = client.get_snapshot_crypto_book("X:BTCUSD") diff --git a/examples/rest/crypto-technical_indicators_ema.py b/examples/rest/crypto-technical_indicators_ema.py index 49958006..1eb50c20 100644 --- a/examples/rest/crypto-technical_indicators_ema.py +++ b/examples/rest/crypto-technical_indicators_ema.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v1_indicators_ema__cryptoticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/crypto/get_v1_indicators_ema__cryptoticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ema = client.get_ema( ticker="X:BTCUSD", diff --git a/examples/rest/crypto-technical_indicators_macd.py b/examples/rest/crypto-technical_indicators_macd.py index ee168d0f..17c25bb7 100644 --- a/examples/rest/crypto-technical_indicators_macd.py +++ b/examples/rest/crypto-technical_indicators_macd.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v1_indicators_macd__cryptoticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/crypto/get_v1_indicators_macd__cryptoticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used macd = client.get_macd( ticker="X:BTCUSD", diff --git a/examples/rest/crypto-technical_indicators_rsi.py b/examples/rest/crypto-technical_indicators_rsi.py index 1eb3c01f..d490d879 100644 --- a/examples/rest/crypto-technical_indicators_rsi.py +++ b/examples/rest/crypto-technical_indicators_rsi.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v1_indicators_rsi__cryptoticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/crypto/get_v1_indicators_rsi__cryptoticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used rsi = client.get_rsi( ticker="X:BTCUSD", diff --git a/examples/rest/crypto-technical_indicators_sma.py b/examples/rest/crypto-technical_indicators_sma.py index e8d503fc..255291c0 100644 --- a/examples/rest/crypto-technical_indicators_sma.py +++ b/examples/rest/crypto-technical_indicators_sma.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v1_indicators_sma__cryptoticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/crypto/get_v1_indicators_sma__cryptoticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used sma = client.get_sma( ticker="X:BTCUSD", diff --git a/examples/rest/crypto-tickers.py b/examples/rest/crypto-tickers.py index 8eb07170..9052e487 100644 --- a/examples/rest/crypto-tickers.py +++ b/examples/rest/crypto-tickers.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v3_reference_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-tickers +# https://massive.com/docs/crypto/get_v3_reference_tickers +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-tickers # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used tickers = [] for t in client.list_tickers(market="crypto", limit=1000): diff --git a/examples/rest/crypto-trades.py b/examples/rest/crypto-trades.py index 7cafd989..d76182af 100644 --- a/examples/rest/crypto-trades.py +++ b/examples/rest/crypto-trades.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/crypto/get_v3_trades__cryptoticker -# https://polygon-api-client.readthedocs.io/en/latest/Trades.html#polygon.RESTClient.list_trades +# https://massive.com/docs/crypto/get_v3_trades__cryptoticker +# https://massive-api-client.readthedocs.io/en/latest/Trades.html#massive.RESTClient.list_trades # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used trades = [] for t in client.list_trades("X:BTC-USD", "2023-02-01", limit=50000): diff --git a/examples/rest/custom-json-get.py b/examples/rest/custom-json-get.py index c10d0a03..5ea5c400 100644 --- a/examples/rest/custom-json-get.py +++ b/examples/rest/custom-json-get.py @@ -1,4 +1,4 @@ -from polygon import RESTClient +from massive import RESTClient # type: ignore import orjson diff --git a/examples/rest/demo_correlation_matrix.py b/examples/rest/demo_correlation_matrix.py index f056ab6d..f3ae4298 100644 --- a/examples/rest/demo_correlation_matrix.py +++ b/examples/rest/demo_correlation_matrix.py @@ -1,11 +1,11 @@ """ This script computes and visualizes the correlation matrix of a selected set of -stocks using Polygon's API. This script is for educational purposes only and is +stocks using Massive's API. This script is for educational purposes only and is not intended to provide investment advice. The examples provided analyze the correlation between different stocks from diverse sectors, as well as within specific sectors. -Blog: https://polygon.io/blog/finding-correlation-between-stocks/ +Blog: https://massive.com/blog/finding-correlation-between-stocks/ Video: https://www.youtube.com/watch?v=q0TgaUGWPFc Before running this script, there are 4 prerequisites: @@ -16,17 +16,17 @@ - numpy - seaborn - matplotlib.pyplot - - polygon's python-client library + - massive's python-client library You can likely run: - pip install pandas numpy seaborn matplotlib polygon-api-client + pip install pandas numpy seaborn matplotlib massive-api-client -2) API Key: You will need a Polygon API key to fetch the stock data. This can +2) API Key: You will need a Massive API key to fetch the stock data. This can be set manually in the script below, or you can set an environment variable - 'POLYGON_API_KEY'. + 'MASSIVE_API_KEY'. - setx POLYGON_API_KEY "" <- windows - export POLYGON_API_KEY="" <- mac/linux + setx MASSIVE_API_KEY "" <- windows + export MASSIVE_API_KEY="" <- mac/linux 3) Select Stocks: You need to select the stocks you're interested in analyzing. Update the 'symbols' variable in this script with your chosen stock symbols. @@ -40,11 +40,12 @@ essential to do your own research or consult a financial advisor for personalized advice when investing. """ + import pandas as pd # type: ignore import numpy as np # type: ignore import seaborn as sns # type: ignore import matplotlib.pyplot as plt # type: ignore -from polygon import RESTClient +from massive import RESTClient # Less likely to be correlated due to being in different sectors and are # exposed to different market forces, economic trends, and price risks. @@ -68,7 +69,7 @@ def fetch_stock_data(symbols, start_date, end_date): stocks = [] # client = RESTClient("XXXXXX") # hardcoded api_key is used - client = RESTClient() # POLYGON_API_KEY environment variable is used + client = RESTClient() # MASSIVE_API_KEY environment variable is used try: for symbol in symbols: diff --git a/examples/rest/economy-treasury_yields.py b/examples/rest/economy-treasury_yields.py new file mode 100644 index 00000000..fe4d79f7 --- /dev/null +++ b/examples/rest/economy-treasury_yields.py @@ -0,0 +1,13 @@ +from massive import RESTClient + +# docs +# https://massive.com/docs/rest/economy/treasury-yields + +# client = RESTClient("XXXXXX") # hardcoded api_key is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used + +yields = [] +for date in client.list_treasury_yields(): + yields.append(date) + +print(yields) diff --git a/examples/rest/financials.py b/examples/rest/financials.py index f9e6dad5..4dc21668 100644 --- a/examples/rest/financials.py +++ b/examples/rest/financials.py @@ -1,4 +1,4 @@ -from polygon import RESTClient +from massive import RESTClient client = RESTClient() diff --git a/examples/rest/forex-aggregates_bars.py b/examples/rest/forex-aggregates_bars.py index b7ab233d..7e9c770f 100644 --- a/examples/rest/forex-aggregates_bars.py +++ b/examples/rest/forex-aggregates_bars.py @@ -1,20 +1,20 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v2_aggs_ticker__forexticker__range__multiplier___timespan___from___to -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#polygon.RESTClient.list_aggs +# https://massive.com/docs/forex/get_v2_aggs_ticker__forexticker__range__multiplier___timespan___from___to +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#massive.RESTClient.list_aggs # API key injected below for easy use. If not provided, the script will attempt -# to use the environment variable "POLYGON_API_KEY". +# to use the environment variable "MASSIVE_API_KEY". # -# setx POLYGON_API_KEY "" <- windows -# export POLYGON_API_KEY="" <- mac/linux +# setx MASSIVE_API_KEY "" <- windows +# export MASSIVE_API_KEY="" <- mac/linux # # Note: To persist the environment variable you need to add the above command # to the shell startup script (e.g. .bashrc or .bash_profile. # # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/rest/forex-conditions.py b/examples/rest/forex-conditions.py index fca1e887..9fed0838 100644 --- a/examples/rest/forex-conditions.py +++ b/examples/rest/forex-conditions.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v3_reference_conditions -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-conditions +# https://massive.com/docs/forex/get_v3_reference_conditions +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-conditions # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used conditions = [] for c in client.list_conditions("fx", limit=1000): diff --git a/examples/rest/forex-exchanges.py b/examples/rest/forex-exchanges.py index e85b3425..a816a053 100644 --- a/examples/rest/forex-exchanges.py +++ b/examples/rest/forex-exchanges.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( Exchange, ) # docs -# https://polygon.io/docs/options/get_v3_reference_exchanges -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges +# https://massive.com/docs/options/get_v3_reference_exchanges +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used exchanges = client.get_exchanges("fx") print(exchanges) diff --git a/examples/rest/forex-grouped_daily_bars.py b/examples/rest/forex-grouped_daily_bars.py index f8130877..452faa4b 100644 --- a/examples/rest/forex-grouped_daily_bars.py +++ b/examples/rest/forex-grouped_daily_bars.py @@ -1,12 +1,12 @@ -from polygon import RESTClient +from massive import RESTClient import pprint # docs -# https://polygon.io/docs/forex/get_v2_aggs_grouped_locale_global_market_fx__date -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-grouped-daily-aggs +# https://massive.com/docs/forex/get_v2_aggs_grouped_locale_global_market_fx__date +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-grouped-daily-aggs # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used grouped = client.get_grouped_daily_aggs( "2023-03-27", diff --git a/examples/rest/forex-last_quote_for_a_currency_pair.py b/examples/rest/forex-last_quote_for_a_currency_pair.py index 8b3c78b1..bf349732 100644 --- a/examples/rest/forex-last_quote_for_a_currency_pair.py +++ b/examples/rest/forex-last_quote_for_a_currency_pair.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v1_last_quote_currencies__from___to -# https://polygon-api-client.readthedocs.io/en/latest/Quotes.html#get-last-forex-quote +# https://massive.com/docs/forex/get_v1_last_quote_currencies__from___to +# https://massive-api-client.readthedocs.io/en/latest/Quotes.html#get-last-forex-quote # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used quote = client.get_last_forex_quote( "AUD", diff --git a/examples/rest/forex-market_holidays.py b/examples/rest/forex-market_holidays.py index 70c03f44..df3b8bb4 100644 --- a/examples/rest/forex-market_holidays.py +++ b/examples/rest/forex-market_holidays.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( MarketHoliday, ) # docs -# https://polygon.io/docs/forex/get_v1_marketstatus_upcoming -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays +# https://massive.com/docs/forex/get_v1_marketstatus_upcoming +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used holidays = client.get_market_holidays() # print(holidays) diff --git a/examples/rest/forex-market_status.py b/examples/rest/forex-market_status.py index 06f544cc..f5d6a451 100644 --- a/examples/rest/forex-market_status.py +++ b/examples/rest/forex-market_status.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v1_marketstatus_now -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-status +# https://massive.com/docs/forex/get_v1_marketstatus_now +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-status # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used result = client.get_market_status() print(result) diff --git a/examples/rest/forex-previous_close.py b/examples/rest/forex-previous_close.py index 0de11709..e6896afe 100644 --- a/examples/rest/forex-previous_close.py +++ b/examples/rest/forex-previous_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v2_aggs_ticker__forexticker__prev -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg +# https://massive.com/docs/forex/get_v2_aggs_ticker__forexticker__prev +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = client.get_previous_close_agg( "C:EURUSD", diff --git a/examples/rest/forex-quotes.py b/examples/rest/forex-quotes.py index 880ebca8..36e8a7de 100644 --- a/examples/rest/forex-quotes.py +++ b/examples/rest/forex-quotes.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v3_quotes__fxticker -# https://polygon-api-client.readthedocs.io/en/latest/Quotes.html#list-quotes +# https://massive.com/docs/forex/get_v3_quotes__fxticker +# https://massive-api-client.readthedocs.io/en/latest/Quotes.html#list-quotes # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used quotes = [] for t in client.list_quotes("C:EUR-USD", "2023-02-01", limit=50000): diff --git a/examples/rest/forex-real-time_currency_conversion.py b/examples/rest/forex-real-time_currency_conversion.py index b50099c9..77590dac 100644 --- a/examples/rest/forex-real-time_currency_conversion.py +++ b/examples/rest/forex-real-time_currency_conversion.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v1_conversion__from___to -# https://polygon-api-client.readthedocs.io/en/latest/Quotes.html#get-real-time-currency-conversion +# https://massive.com/docs/forex/get_v1_conversion__from___to +# https://massive-api-client.readthedocs.io/en/latest/Quotes.html#get-real-time-currency-conversion # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used rate = client.get_real_time_currency_conversion( "AUD", diff --git a/examples/rest/forex-snapshots_all_tickers.py b/examples/rest/forex-snapshots_all_tickers.py index 8e0ec6bd..b61f5eda 100644 --- a/examples/rest/forex-snapshots_all_tickers.py +++ b/examples/rest/forex-snapshots_all_tickers.py @@ -1,15 +1,15 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerSnapshot, Agg, ) # docs -# https://polygon.io/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots +# https://massive.com/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used snapshot = client.get_snapshot_all("forex") # all tickers diff --git a/examples/rest/forex-snapshots_gainers_losers.py b/examples/rest/forex-snapshots_gainers_losers.py index dd064e63..9fc7e36a 100644 --- a/examples/rest/forex-snapshots_gainers_losers.py +++ b/examples/rest/forex-snapshots_gainers_losers.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerSnapshot, ) # docs -# https://polygon.io/docs/forex/get_v2_snapshot_locale_global_markets_forex__direction -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-gainers-losers-snapshot +# https://massive.com/docs/forex/get_v2_snapshot_locale_global_markets_forex__direction +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-gainers-losers-snapshot # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # get gainers gainers = client.get_snapshot_direction("forex", "gainers") diff --git a/examples/rest/forex-snapshots_ticker.py b/examples/rest/forex-snapshots_ticker.py index 9dbfc0ff..f8cb5562 100644 --- a/examples/rest/forex-snapshots_ticker.py +++ b/examples/rest/forex-snapshots_ticker.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers__ticker -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-ticker-snapshot +# https://massive.com/docs/forex/get_v2_snapshot_locale_global_markets_forex_tickers__ticker +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-ticker-snapshot # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ticker = client.get_snapshot_ticker("forex", "C:EURUSD") print(ticker) diff --git a/examples/rest/forex-technical_indicators_ema.py b/examples/rest/forex-technical_indicators_ema.py index ba67ee87..2521e36d 100644 --- a/examples/rest/forex-technical_indicators_ema.py +++ b/examples/rest/forex-technical_indicators_ema.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v1_indicators_ema__fxticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/forex/get_v1_indicators_ema__fxticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ema = client.get_ema( ticker="C:EURUSD", diff --git a/examples/rest/forex-technical_indicators_macd.py b/examples/rest/forex-technical_indicators_macd.py index ee32c4b1..8c07521c 100644 --- a/examples/rest/forex-technical_indicators_macd.py +++ b/examples/rest/forex-technical_indicators_macd.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v1_indicators_macd__fxticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/forex/get_v1_indicators_macd__fxticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used macd = client.get_macd( ticker="C:EURUSD", diff --git a/examples/rest/forex-technical_indicators_rsi.py b/examples/rest/forex-technical_indicators_rsi.py index a63185d4..5ec4d6f2 100644 --- a/examples/rest/forex-technical_indicators_rsi.py +++ b/examples/rest/forex-technical_indicators_rsi.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v1_indicators_rsi__fxticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/forex/get_v1_indicators_rsi__fxticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used rsi = client.get_rsi( ticker="C:EURUSD", diff --git a/examples/rest/forex-technical_indicators_sma.py b/examples/rest/forex-technical_indicators_sma.py index cd4aab2f..51ede4d2 100644 --- a/examples/rest/forex-technical_indicators_sma.py +++ b/examples/rest/forex-technical_indicators_sma.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v1_indicators_sma__fxticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/forex/get_v1_indicators_sma__fxticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used sma = client.get_sma( ticker="C:EURUSD", diff --git a/examples/rest/forex-tickers.py b/examples/rest/forex-tickers.py index c1736721..10c49b6f 100644 --- a/examples/rest/forex-tickers.py +++ b/examples/rest/forex-tickers.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/forex/get_v3_reference_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-tickers +# https://massive.com/docs/forex/get_v3_reference_tickers +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-tickers # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used tickers = [] for t in client.list_tickers(market="fx", limit=1000): diff --git a/examples/rest/indices-aggregates_bars.py b/examples/rest/indices-aggregates_bars.py index b2b561ad..ddb9f9cd 100644 --- a/examples/rest/indices-aggregates_bars.py +++ b/examples/rest/indices-aggregates_bars.py @@ -1,20 +1,20 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v2_aggs_ticker__indicesticker__range__multiplier___timespan___from___to -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#polygon.RESTClient.list_aggs +# https://massive.com/docs/indices/get_v2_aggs_ticker__indicesticker__range__multiplier___timespan___from___to +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#massive.RESTClient.list_aggs # API key injected below for easy use. If not provided, the script will attempt -# to use the environment variable "POLYGON_API_KEY". +# to use the environment variable "MASSIVE_API_KEY". # -# setx POLYGON_API_KEY "" <- windows -# export POLYGON_API_KEY="" <- mac/linux +# setx MASSIVE_API_KEY "" <- windows +# export MASSIVE_API_KEY="" <- mac/linux # # Note: To persist the environment variable you need to add the above command # to the shell startup script (e.g. .bashrc or .bash_profile. # # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/rest/indices-daily_open_close.py b/examples/rest/indices-daily_open_close.py index f84a51ab..85c0d405 100644 --- a/examples/rest/indices-daily_open_close.py +++ b/examples/rest/indices-daily_open_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v1_open-close__indicesticker___date -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg +# https://massive.com/docs/indices/get_v1_open-close__indicesticker___date +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # make request request = client.get_daily_open_close_agg( diff --git a/examples/rest/indices-market_holidays.py b/examples/rest/indices-market_holidays.py index 0bf112d4..49fe6fd2 100644 --- a/examples/rest/indices-market_holidays.py +++ b/examples/rest/indices-market_holidays.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( MarketHoliday, ) # docs -# https://polygon.io/docs/indices/get_v1_marketstatus_upcoming -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays +# https://massive.com/docs/indices/get_v1_marketstatus_upcoming +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used holidays = client.get_market_holidays() # print(holidays) diff --git a/examples/rest/indices-market_status.py b/examples/rest/indices-market_status.py index 6c74dee3..10296a94 100644 --- a/examples/rest/indices-market_status.py +++ b/examples/rest/indices-market_status.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v1_marketstatus_now -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-status +# https://massive.com/docs/indices/get_v1_marketstatus_now +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-status # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used result = client.get_market_status() print(result) diff --git a/examples/rest/indices-previous_close.py b/examples/rest/indices-previous_close.py index 8774bd6e..18d7ceb5 100644 --- a/examples/rest/indices-previous_close.py +++ b/examples/rest/indices-previous_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v2_aggs_ticker__indicesticker__prev -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg +# https://massive.com/docs/indices/get_v2_aggs_ticker__indicesticker__prev +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = client.get_previous_close_agg( "I:SPX", diff --git a/examples/rest/indices-snapshots.py b/examples/rest/indices-snapshots.py index 407d2de1..5e85343f 100644 --- a/examples/rest/indices-snapshots.py +++ b/examples/rest/indices-snapshots.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v3_snapshot_indices -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/snapshot.py# +# https://massive.com/docs/indices/get_v3_snapshot_indices +# https://github.com/massive-com/client-python/blob/master/massive/rest/snapshot.py# # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used tickers = ["I:SPX", "I:DJI", "I:VIX"] snapshot = client.get_snapshot_indices(tickers) diff --git a/examples/rest/indices-technical_indicators_ema.py b/examples/rest/indices-technical_indicators_ema.py index bacf9e85..35bc82ce 100644 --- a/examples/rest/indices-technical_indicators_ema.py +++ b/examples/rest/indices-technical_indicators_ema.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v1_indicators_ema__indicesticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/indices/get_v1_indicators_ema__indicesticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ema = client.get_ema( ticker="I:SPX", diff --git a/examples/rest/indices-technical_indicators_macd.py b/examples/rest/indices-technical_indicators_macd.py index bb3950d1..c64524b7 100644 --- a/examples/rest/indices-technical_indicators_macd.py +++ b/examples/rest/indices-technical_indicators_macd.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v1_indicators_macd__indicesticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/indices/get_v1_indicators_macd__indicesticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used macd = client.get_macd( ticker="I:SPX", diff --git a/examples/rest/indices-technical_indicators_rsi.py b/examples/rest/indices-technical_indicators_rsi.py index ec5ca4d6..c8e3bce1 100644 --- a/examples/rest/indices-technical_indicators_rsi.py +++ b/examples/rest/indices-technical_indicators_rsi.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v1_indicators_rsi__indicesticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/indices/get_v1_indicators_rsi__indicesticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used rsi = client.get_rsi( ticker="I:SPX", diff --git a/examples/rest/indices-technical_indicators_sma.py b/examples/rest/indices-technical_indicators_sma.py index 1dfa7b7f..709ec54b 100644 --- a/examples/rest/indices-technical_indicators_sma.py +++ b/examples/rest/indices-technical_indicators_sma.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v1_indicators_sma__indicesticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/indices/get_v1_indicators_sma__indicesticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used sma = client.get_sma( ticker="I:SPX", diff --git a/examples/rest/indices-ticker_types.py b/examples/rest/indices-ticker_types.py index ec3277e9..dfe62a1b 100644 --- a/examples/rest/indices-ticker_types.py +++ b/examples/rest/indices-ticker_types.py @@ -1,16 +1,16 @@ from typing import Optional, Union, List from urllib3 import HTTPResponse -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerTypes, ) # docs -# https://polygon.io/docs/indices/get_v3_reference_tickers_types -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-types +# https://massive.com/docs/indices/get_v3_reference_tickers_types +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-types # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used types: Optional[Union[List[TickerTypes], HTTPResponse]] = None diff --git a/examples/rest/indices-tickers.py b/examples/rest/indices-tickers.py index a0786f19..0270a9be 100644 --- a/examples/rest/indices-tickers.py +++ b/examples/rest/indices-tickers.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/indices/get_v3_reference_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-tickers +# https://massive.com/docs/indices/get_v3_reference_tickers +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-tickers # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used tickers = [] for t in client.list_tickers(market="indices", limit=1000): diff --git a/examples/rest/options-aggregates_bars.py b/examples/rest/options-aggregates_bars.py index 62e3297b..71c5343f 100644 --- a/examples/rest/options-aggregates_bars.py +++ b/examples/rest/options-aggregates_bars.py @@ -1,20 +1,20 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v2_aggs_ticker__optionsticker__range__multiplier___timespan___from___to -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#polygon.RESTClient.list_aggs +# https://massive.com/docs/options/get_v2_aggs_ticker__optionsticker__range__multiplier___timespan___from___to +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#massive.RESTClient.list_aggs # API key injected below for easy use. If not provided, the script will attempt -# to use the environment variable "POLYGON_API_KEY". +# to use the environment variable "MASSIVE_API_KEY". # -# setx POLYGON_API_KEY "" <- windows -# export POLYGON_API_KEY="" <- mac/linux +# setx MASSIVE_API_KEY "" <- windows +# export MASSIVE_API_KEY="" <- mac/linux # # Note: To persist the environment variable you need to add the above command # to the shell startup script (e.g. .bashrc or .bash_profile. # # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/rest/options-conditions.py b/examples/rest/options-conditions.py index 3d72e3e7..30e40905 100644 --- a/examples/rest/options-conditions.py +++ b/examples/rest/options-conditions.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_reference_conditions -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-conditions +# https://massive.com/docs/options/get_v3_reference_conditions +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-conditions # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used conditions = [] for c in client.list_conditions("options", limit=1000): diff --git a/examples/rest/options-contract.py b/examples/rest/options-contract.py index f87c161e..84093aa1 100644 --- a/examples/rest/options-contract.py +++ b/examples/rest/options-contract.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_reference_options_contracts__options_ticker -# https://polygon-api-client.readthedocs.io/en/latest/Contracts.html +# https://massive.com/docs/options/get_v3_reference_options_contracts__options_ticker +# https://massive-api-client.readthedocs.io/en/latest/Contracts.html # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used contract = client.get_options_contract("O:EVRI240119C00002500") diff --git a/examples/rest/options-contracts.py b/examples/rest/options-contracts.py index 34d7327b..08995c10 100644 --- a/examples/rest/options-contracts.py +++ b/examples/rest/options-contracts.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_reference_options_contracts -# https://polygon-api-client.readthedocs.io/en/latest/Contracts.html#list-options-contracts +# https://massive.com/docs/options/get_v3_reference_options_contracts +# https://massive-api-client.readthedocs.io/en/latest/Contracts.html#list-options-contracts # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used contracts = [] for c in client.list_options_contracts("HCP"): diff --git a/examples/rest/options-daily_open_close.py b/examples/rest/options-daily_open_close.py index 54a700ce..7a756613 100644 --- a/examples/rest/options-daily_open_close.py +++ b/examples/rest/options-daily_open_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v1_open-close__optionsticker___date -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg +# https://massive.com/docs/options/get_v1_open-close__optionsticker___date +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # make request request = client.get_daily_open_close_agg( diff --git a/examples/rest/options-exchanges.py b/examples/rest/options-exchanges.py index 881eed3a..9678e19a 100644 --- a/examples/rest/options-exchanges.py +++ b/examples/rest/options-exchanges.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( Exchange, ) # docs -# https://polygon.io/docs/options/get_v3_reference_exchanges -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges +# https://massive.com/docs/options/get_v3_reference_exchanges +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used exchanges = client.get_exchanges("options") print(exchanges) diff --git a/examples/rest/options-last_trade.py b/examples/rest/options-last_trade.py index bf3e7662..d24cc79d 100644 --- a/examples/rest/options-last_trade.py +++ b/examples/rest/options-last_trade.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v2_last_trade__optionsticker -# https://polygon-api-client.readthedocs.io/en/latest/Trades.html#get-last-trade +# https://massive.com/docs/options/get_v2_last_trade__optionsticker +# https://massive-api-client.readthedocs.io/en/latest/Trades.html#get-last-trade # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used trade = client.get_last_trade( "O:TSLA210903C00700000", diff --git a/examples/rest/options-market_holidays.py b/examples/rest/options-market_holidays.py index d6b03ab2..134aff86 100644 --- a/examples/rest/options-market_holidays.py +++ b/examples/rest/options-market_holidays.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( MarketHoliday, ) # docs -# https://polygon.io/docs/options/get_v1_marketstatus_upcoming -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays +# https://massive.com/docs/options/get_v1_marketstatus_upcoming +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used holidays = client.get_market_holidays() # print(holidays) diff --git a/examples/rest/options-market_status.py b/examples/rest/options-market_status.py index fb8e5ccd..8a8e7bfc 100644 --- a/examples/rest/options-market_status.py +++ b/examples/rest/options-market_status.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v1_marketstatus_now -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-status +# https://massive.com/docs/options/get_v1_marketstatus_now +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-status # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used result = client.get_market_status() print(result) diff --git a/examples/rest/options-previous_close.py b/examples/rest/options-previous_close.py index f7b9d06b..720dc9d0 100644 --- a/examples/rest/options-previous_close.py +++ b/examples/rest/options-previous_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v2_aggs_ticker__optionsticker__prev -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg +# https://massive.com/docs/options/get_v2_aggs_ticker__optionsticker__prev +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = client.get_previous_close_agg( "O:SPY251219C00650000", diff --git a/examples/rest/options-quotes.py b/examples/rest/options-quotes.py index 71d2577a..1cdf9b8a 100644 --- a/examples/rest/options-quotes.py +++ b/examples/rest/options-quotes.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_quotes__optionsticker -# https://polygon-api-client.readthedocs.io/en/latest/Quotes.html#list-quotes +# https://massive.com/docs/options/get_v3_quotes__optionsticker +# https://massive-api-client.readthedocs.io/en/latest/Quotes.html#list-quotes # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used quotes = [] for t in client.list_quotes("O:SPY241220P00720000", limit=50000): diff --git a/examples/rest/options-snapshots_option_contract.py b/examples/rest/options-snapshots_option_contract.py index 280e3315..bffc9ff4 100644 --- a/examples/rest/options-snapshots_option_contract.py +++ b/examples/rest/options-snapshots_option_contract.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_snapshot_options__underlyingasset___optioncontract -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html +# https://massive.com/docs/options/get_v3_snapshot_options__underlyingasset___optioncontract +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used snapshot = client.get_snapshot_option("AAPL", "O:AAPL230616C00150000") diff --git a/examples/rest/options-snapshots_options_chain.py b/examples/rest/options-snapshots_options_chain.py index 9ebdd93a..8b0c5f02 100644 --- a/examples/rest/options-snapshots_options_chain.py +++ b/examples/rest/options-snapshots_options_chain.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_snapshot_options__underlyingasset -# ttps://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots +# https://massive.com/docs/options/get_v3_snapshot_options__underlyingasset +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used options_chain = [] for o in client.list_snapshot_options_chain( diff --git a/examples/rest/options-technical_indicators_ema.py b/examples/rest/options-technical_indicators_ema.py index ff04ff76..82dd99d7 100644 --- a/examples/rest/options-technical_indicators_ema.py +++ b/examples/rest/options-technical_indicators_ema.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v1_indicators_ema__optionsticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/options/get_v1_indicators_ema__optionsticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ema = client.get_ema( ticker="O:SPY241220P00720000", timespan="day", window=50, series_type="close" diff --git a/examples/rest/options-technical_indicators_macd.py b/examples/rest/options-technical_indicators_macd.py index e7961c8f..a49f78a1 100644 --- a/examples/rest/options-technical_indicators_macd.py +++ b/examples/rest/options-technical_indicators_macd.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v1_indicators_macd__optionsticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/options/get_v1_indicators_macd__optionsticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used macd = client.get_macd( ticker="O:SPY241220P00720000", diff --git a/examples/rest/options-technical_indicators_rsi.py b/examples/rest/options-technical_indicators_rsi.py index 4bf9ebde..0a92caec 100644 --- a/examples/rest/options-technical_indicators_rsi.py +++ b/examples/rest/options-technical_indicators_rsi.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v1_indicators_rsi__optionsticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/options/get_v1_indicators_rsi__optionsticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used rsi = client.get_rsi( ticker="O:SPY241220P00720000", timespan="day", window=14, series_type="close" diff --git a/examples/rest/options-technical_indicators_sma.py b/examples/rest/options-technical_indicators_sma.py index ce6f3d0c..a6f0870e 100644 --- a/examples/rest/options-technical_indicators_sma.py +++ b/examples/rest/options-technical_indicators_sma.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v1_indicators_sma__optionsticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/options/get_v1_indicators_sma__optionsticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used sma = client.get_sma( ticker="O:SPY241220P00720000", timespan="day", window=50, series_type="close" diff --git a/examples/rest/options-ticker_details.py b/examples/rest/options-ticker_details.py index 43d59156..fe742286 100644 --- a/examples/rest/options-ticker_details.py +++ b/examples/rest/options-ticker_details.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_reference_tickers__ticker -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-details +# https://massive.com/docs/options/get_v3_reference_tickers__ticker +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-details # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used details = client.get_ticker_details("TSLA") print(details) diff --git a/examples/rest/options-ticker_news.py b/examples/rest/options-ticker_news.py index be9497d7..76b36c03 100644 --- a/examples/rest/options-ticker_news.py +++ b/examples/rest/options-ticker_news.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerNews, ) # docs -# https://polygon.io/docs/options/get_v2_reference_news -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-ticker-news +# https://massive.com/docs/options/get_v2_reference_news +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-ticker-news # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used news = [] for n in client.list_ticker_news("AAPL", order="desc", limit=1000): diff --git a/examples/rest/options-tickers.py b/examples/rest/options-tickers.py index d77ef641..4a5e1104 100644 --- a/examples/rest/options-tickers.py +++ b/examples/rest/options-tickers.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_reference_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-tickers +# https://massive.com/docs/options/get_v3_reference_tickers +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-tickers # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used tickers = [] for t in client.list_tickers(limit=1000): diff --git a/examples/rest/options-trades.py b/examples/rest/options-trades.py index 210362d5..8ff559ec 100644 --- a/examples/rest/options-trades.py +++ b/examples/rest/options-trades.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/options/get_v3_trades__optionsticker -# https://polygon-api-client.readthedocs.io/en/latest/Trades.html#polygon.RESTClient.list_trades +# https://massive.com/docs/options/get_v3_trades__optionsticker +# https://massive-api-client.readthedocs.io/en/latest/Trades.html#massive.RESTClient.list_trades # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used trades = [] for t in client.list_trades("O:TSLA210903C00700000", limit=50000): diff --git a/examples/rest/raw-get.py b/examples/rest/raw-get.py index 89800015..8eab428b 100644 --- a/examples/rest/raw-get.py +++ b/examples/rest/raw-get.py @@ -1,4 +1,4 @@ -from polygon import RESTClient +from massive import RESTClient from typing import cast from urllib3 import HTTPResponse @@ -16,7 +16,7 @@ ), ) print(aggs.geturl()) -# https://api.polygon.io/v2/aggs/ticker/AAPL/range/1/day/2022-04-01/2022-04-04 +# https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2022-04-01/2022-04-04 print(aggs.status) # 200 print(aggs.data) diff --git a/examples/rest/raw-list.py b/examples/rest/raw-list.py index 5a5a5642..05455a1f 100644 --- a/examples/rest/raw-list.py +++ b/examples/rest/raw-list.py @@ -1,4 +1,4 @@ -from polygon import RESTClient +from massive import RESTClient from typing import cast from urllib3 import HTTPResponse @@ -6,7 +6,7 @@ trades = cast( HTTPResponse, - client.list_trades("AAA", "2022-04-20", 5, raw=True), + client.list_trades("AAA", "2022-04-20", raw=True), ) print(trades.data) # b'{ @@ -79,5 +79,5 @@ # ], # "status": "OK", # "request_id": "618bb99e7a632ed9f55454a541404b44", -# "next_url": "https://api.polygon.io/v3/trades/AAA?cursor=YXA9NSZhcz0mbGltaXQ9NSZvcmRlcj1kZXNjJnNvcnQ9dGltZXN0YW1wJnRpbWVzdGFtcC5ndGU9MjAyMi0wNC0yMFQwNCUzQTAwJTNBMDBaJnRpbWVzdGFtcC5sdGU9MjAyMi0wNC0yMFQyMCUzQTEwJTNBMDAuMDAzODY5OTUyWg" +# "next_url": "https://api.massive.com/v3/trades/AAA?cursor=YXA9NSZhcz0mbGltaXQ9NSZvcmRlcj1kZXNjJnNvcnQ9dGltZXN0YW1wJnRpbWVzdGFtcC5ndGU9MjAyMi0wNC0yMFQwNCUzQTAwJTNBMDBaJnRpbWVzdGFtcC5sdGU9MjAyMi0wNC0yMFQyMCUzQTEwJTNBMDAuMDAzODY5OTUyWg" # }' diff --git a/examples/rest/simple-get.py b/examples/rest/simple-get.py index 8a9586ad..377943cc 100644 --- a/examples/rest/simple-get.py +++ b/examples/rest/simple-get.py @@ -1,5 +1,5 @@ -from polygon import RESTClient -from polygon.rest import models +from massive import RESTClient +from massive.rest import models client = RESTClient() diff --git a/examples/rest/simple-list.py b/examples/rest/simple-list.py index dc93f315..c83d3a89 100644 --- a/examples/rest/simple-list.py +++ b/examples/rest/simple-list.py @@ -1,4 +1,4 @@ -from polygon import RESTClient +from massive import RESTClient client = RESTClient() diff --git a/examples/rest/stocks-aggregates_bars.py b/examples/rest/stocks-aggregates_bars.py index c553b00e..3f2d0e59 100644 --- a/examples/rest/stocks-aggregates_bars.py +++ b/examples/rest/stocks-aggregates_bars.py @@ -1,20 +1,20 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#polygon.RESTClient.list_aggs +# https://massive.com/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#massive.RESTClient.list_aggs # API key injected below for easy use. If not provided, the script will attempt -# to use the environment variable "POLYGON_API_KEY". +# to use the environment variable "MASSIVE_API_KEY". # -# setx POLYGON_API_KEY "" <- windows -# export POLYGON_API_KEY="" <- mac/linux +# setx MASSIVE_API_KEY "" <- windows +# export MASSIVE_API_KEY="" <- mac/linux # # Note: To persist the environment variable you need to add the above command # to the shell startup script (e.g. .bashrc or .bash_profile. # # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/rest/stocks-aggregates_bars_extra.py b/examples/rest/stocks-aggregates_bars_extra.py index 4fd76c37..feeb3218 100644 --- a/examples/rest/stocks-aggregates_bars_extra.py +++ b/examples/rest/stocks-aggregates_bars_extra.py @@ -1,13 +1,13 @@ # This code retrieves stock market data for a specific stock using the -# Polygon REST API and writes it to a CSV file. It uses the "polygon" +# Massive REST API and writes it to a CSV file. It uses the "massive" # library to communicate with the API and the "csv" library to write # the data to a CSV file. The script retrieves data for the stock "AAPL" # for the dates "2023-01-30" to "2023-02-03" in 1 hour intervals. The # resulting data includes the open, high, low, close, volume, vwap, # timestamp, transactions, and otc values for each hour. The output is # then printed to the console. -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( Agg, ) import csv @@ -15,11 +15,11 @@ import io # docs -# https://polygon.io/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#polygon.RESTClient.list_aggs +# https://massive.com/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#massive.RESTClient.list_aggs # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/rest/stocks-aggregates_bars_highcharts.py b/examples/rest/stocks-aggregates_bars_highcharts.py index b2529972..4695ed9d 100644 --- a/examples/rest/stocks-aggregates_bars_highcharts.py +++ b/examples/rest/stocks-aggregates_bars_highcharts.py @@ -1,5 +1,5 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( Agg, ) import datetime @@ -8,13 +8,13 @@ import traceback import json -# This program retrieves stock price data for the AAPL stock from the Polygon +# This program retrieves stock price data for the AAPL stock from the Massive # API using a REST client, and formats the data in a format expected by the # Highcharts JavaScript library. The program creates a web server that serves # an HTML page that includes a candlestick chart of the AAPL stock prices using # Highcharts. The chart displays data for the time range from January 1, 2019, # to February 16, 2023. The chart data is updated by retrieving the latest data -# from the Polygon API every time the HTML page is loaded or refreshed. The +# from the Massive API every time the HTML page is loaded or refreshed. The # server listens on port 8888 and exits gracefully when a KeyboardInterrupt is # received. # @@ -68,7 +68,7 @@ """ -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/rest/stocks-conditions.py b/examples/rest/stocks-conditions.py index 1be9b483..99740665 100644 --- a/examples/rest/stocks-conditions.py +++ b/examples/rest/stocks-conditions.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_reference_conditions -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-conditions +# https://massive.com/docs/stocks/get_v3_reference_conditions +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-conditions # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used conditions = [] for c in client.list_conditions(limit=1000): diff --git a/examples/rest/stocks-daily_open_close.py b/examples/rest/stocks-daily_open_close.py index 65c96265..0e811597 100644 --- a/examples/rest/stocks-daily_open_close.py +++ b/examples/rest/stocks-daily_open_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v1_open-close__stocksticker___date -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg +# https://massive.com/docs/stocks/get_v1_open-close__stocksticker___date +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-daily-open-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # make request request = client.get_daily_open_close_agg( diff --git a/examples/rest/stocks-dividends.py b/examples/rest/stocks-dividends.py index 75cd795c..0c312195 100644 --- a/examples/rest/stocks-dividends.py +++ b/examples/rest/stocks-dividends.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_reference_dividends -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-dividends +# https://massive.com/docs/stocks/get_v3_reference_dividends +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-dividends # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used dividends = [] for d in client.list_dividends("MSFT", limit=1000): diff --git a/examples/rest/stocks-exchanges.py b/examples/rest/stocks-exchanges.py index 20c9477a..a8208163 100644 --- a/examples/rest/stocks-exchanges.py +++ b/examples/rest/stocks-exchanges.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( Exchange, ) # docs -# https://polygon.io/docs/stocks/get_v3_reference_exchanges -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges +# https://massive.com/docs/stocks/get_v3_reference_exchanges +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-exchanges # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used exchanges = client.get_exchanges() print(exchanges) diff --git a/examples/rest/stocks-grouped_daily_bars.py b/examples/rest/stocks-grouped_daily_bars.py index ea0ff1cd..e5e75722 100644 --- a/examples/rest/stocks-grouped_daily_bars.py +++ b/examples/rest/stocks-grouped_daily_bars.py @@ -1,12 +1,12 @@ -from polygon import RESTClient +from massive import RESTClient import pprint # docs -# https://polygon.io/docs/stocks/get_v2_aggs_grouped_locale_us_market_stocks__date -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-grouped-daily-aggs +# https://massive.com/docs/stocks/get_v2_aggs_grouped_locale_us_market_stocks__date +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-grouped-daily-aggs # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used grouped = client.get_grouped_daily_aggs( "2023-02-16", diff --git a/examples/rest/stocks-ipos.py b/examples/rest/stocks-ipos.py new file mode 100644 index 00000000..abaf8b04 --- /dev/null +++ b/examples/rest/stocks-ipos.py @@ -0,0 +1,13 @@ +from massive import RESTClient + +# docs +# https://massive.com/docs/rest/stocks/corporate-actions/ipos + +# client = RESTClient("XXXXXX") # hardcoded api_key is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used + +ipos = [] +for ipo in client.vx.list_ipos(ticker="RDDT"): + ipos.append(ipo) + +print(ipos) diff --git a/examples/rest/stocks-last_quote.py b/examples/rest/stocks-last_quote.py index 15b83e55..78da1600 100644 --- a/examples/rest/stocks-last_quote.py +++ b/examples/rest/stocks-last_quote.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v2_last_nbbo__stocksticker -# https://polygon-api-client.readthedocs.io/en/latest/Quotes.html#get-last-quote +# https://massive.com/docs/stocks/get_v2_last_nbbo__stocksticker +# https://massive-api-client.readthedocs.io/en/latest/Quotes.html#get-last-quote # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used quote = client.get_last_quote( "AAPL", diff --git a/examples/rest/stocks-last_trade.py b/examples/rest/stocks-last_trade.py index 42278ba0..77f19451 100644 --- a/examples/rest/stocks-last_trade.py +++ b/examples/rest/stocks-last_trade.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v2_last_trade__stocksticker -# https://polygon-api-client.readthedocs.io/en/latest/Trades.html#get-last-trade +# https://massive.com/docs/stocks/get_v2_last_trade__stocksticker +# https://massive-api-client.readthedocs.io/en/latest/Trades.html#get-last-trade # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used trade = client.get_last_trade( "AAPL", diff --git a/examples/rest/stocks-market_holidays.py b/examples/rest/stocks-market_holidays.py index 054bfa87..8e55248d 100644 --- a/examples/rest/stocks-market_holidays.py +++ b/examples/rest/stocks-market_holidays.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( MarketHoliday, ) # docs -# https://polygon.io/docs/stocks/get_v1_marketstatus_upcoming -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays +# https://massive.com/docs/stocks/get_v1_marketstatus_upcoming +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-holidays # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used holidays = client.get_market_holidays() # print(holidays) diff --git a/examples/rest/stocks-market_status.py b/examples/rest/stocks-market_status.py index bd4362b3..dc143f57 100644 --- a/examples/rest/stocks-market_status.py +++ b/examples/rest/stocks-market_status.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v1_marketstatus_now -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-market-status +# https://massive.com/docs/stocks/get_v1_marketstatus_now +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-market-status # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used result = client.get_market_status() print(result) diff --git a/examples/rest/stocks-previous_close.py b/examples/rest/stocks-previous_close.py index 9785ab2e..a1d0fab0 100644 --- a/examples/rest/stocks-previous_close.py +++ b/examples/rest/stocks-previous_close.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v2_aggs_ticker__stocksticker__prev -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg +# https://massive.com/docs/stocks/get_v2_aggs_ticker__stocksticker__prev +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#get-previous-close-agg # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = client.get_previous_close_agg( "AAPL", diff --git a/examples/rest/stocks-quotes.py b/examples/rest/stocks-quotes.py index 4d615dab..80f61c2b 100644 --- a/examples/rest/stocks-quotes.py +++ b/examples/rest/stocks-quotes.py @@ -1,8 +1,8 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_quotes__stockticker -# https://polygon-api-client.readthedocs.io/en/latest/Quotes.html#list-quotes +# https://massive.com/docs/stocks/get_v3_quotes__stockticker +# https://massive-api-client.readthedocs.io/en/latest/Quotes.html#list-quotes # NBBO (National Best Bid and Offer) is a term used in the financial industry # to describe the best bid and offer prices for a particular stock or security @@ -13,7 +13,7 @@ # investment decisions and execute trades at the best available price. # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used quotes = [] for t in client.list_quotes("IBIO", "2023-02-01", limit=50000): diff --git a/examples/rest/stocks-related_companies.py b/examples/rest/stocks-related_companies.py new file mode 100644 index 00000000..f0dc6fea --- /dev/null +++ b/examples/rest/stocks-related_companies.py @@ -0,0 +1,10 @@ +from massive import RESTClient + +# docs +# https://massive.com/docs/stocks/get_v1_related-companies__ticker + +# client = RESTClient("XXXXXX") # hardcoded api_key is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used + +related_companies = client.get_related_companies("AAPL") +print(related_companies) diff --git a/examples/rest/stocks-short_interest.py b/examples/rest/stocks-short_interest.py new file mode 100644 index 00000000..075f079c --- /dev/null +++ b/examples/rest/stocks-short_interest.py @@ -0,0 +1,13 @@ +from massive import RESTClient + +# docs +# https://massive.com/docs/rest/stocks/fundamentals/short-interest + +# client = RESTClient("XXXXXX") # hardcoded api_key is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used + +items = [] +for item in client.list_short_interest(ticker="RDDT"): + items.append(item) + +print(items) diff --git a/examples/rest/stocks-short_volume.py b/examples/rest/stocks-short_volume.py new file mode 100644 index 00000000..31aa03ae --- /dev/null +++ b/examples/rest/stocks-short_volume.py @@ -0,0 +1,13 @@ +from massive import RESTClient + +# docs +# https://massive.com/docs/rest/stocks/fundamentals/short-volume + +# client = RESTClient("XXXXXX") # hardcoded api_key is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used + +items = [] +for item in client.list_short_volume(ticker="RDDT"): + items.append(item) + +print(items) diff --git a/examples/rest/stocks-snapshots_all.py b/examples/rest/stocks-snapshots_all.py index d1682983..f351f918 100644 --- a/examples/rest/stocks-snapshots_all.py +++ b/examples/rest/stocks-snapshots_all.py @@ -1,15 +1,15 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerSnapshot, Agg, ) # docs -# https://polygon.io/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots +# https://massive.com/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-all-snapshots # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # tickers we are interested in tickers = ["TSLA", "AAPL", "MSFT", "META"] diff --git a/examples/rest/stocks-snapshots_gainers_losers.py b/examples/rest/stocks-snapshots_gainers_losers.py index d0a0e365..80fadc14 100644 --- a/examples/rest/stocks-snapshots_gainers_losers.py +++ b/examples/rest/stocks-snapshots_gainers_losers.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerSnapshot, ) # docs -# https://polygon.io/docs/stocks/get_v2_snapshot_locale_us_markets_stocks__direction -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-gainers-losers-snapshot +# https://massive.com/docs/stocks/get_v2_snapshot_locale_us_markets_stocks__direction +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-gainers-losers-snapshot # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # get gainers gainers = client.get_snapshot_direction("stocks", "gainers") diff --git a/examples/rest/stocks-snapshots_ticker.py b/examples/rest/stocks-snapshots_ticker.py index 2b264338..f12107ec 100644 --- a/examples/rest/stocks-snapshots_ticker.py +++ b/examples/rest/stocks-snapshots_ticker.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers__stocksticker -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html#get-ticker-snapshot +# https://massive.com/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers__stocksticker +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html#get-ticker-snapshot # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ticker = client.get_snapshot_ticker("stocks", "AAPL") print(ticker) diff --git a/examples/rest/stocks-stock_financials.py b/examples/rest/stocks-stock_financials.py index dc356494..2eb0c957 100644 --- a/examples/rest/stocks-stock_financials.py +++ b/examples/rest/stocks-stock_financials.py @@ -1,13 +1,20 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_vx_reference_financials -# https://polygon-api-client.readthedocs.io/en/latest/vX.html#list-stock-financials +# https://massive.com/docs/stocks/get_vx_reference_financials +# https://massive-api-client.readthedocs.io/en/latest/vX.html#list-stock-financials # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used financials = [] -for f in client.vx.list_stock_financials("AAPL"): +for f in client.vx.list_stock_financials("AAPL", filing_date="2024-11-01"): financials.append(f) + + # get diluted_earnings_per_share + # print(f.financials.income_statement.diluted_earnings_per_share) + + # get net_income_loss + # print(f.financials.income_statement.net_income_loss) + print(financials) diff --git a/examples/rest/stocks-stock_splits.py b/examples/rest/stocks-stock_splits.py index 55980973..4a43cad2 100644 --- a/examples/rest/stocks-stock_splits.py +++ b/examples/rest/stocks-stock_splits.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_reference_splits -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-splits +# https://massive.com/docs/stocks/get_v3_reference_splits +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-splits # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used splits = [] for s in client.list_splits("TSLA", limit=1000): diff --git a/examples/rest/stocks-technical_indicators_ema.py b/examples/rest/stocks-technical_indicators_ema.py index 20092d7e..b71abe46 100644 --- a/examples/rest/stocks-technical_indicators_ema.py +++ b/examples/rest/stocks-technical_indicators_ema.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v1_indicators_ema__stockticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/stocks/get_v1_indicators_ema__stockticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used ema = client.get_ema( ticker="AAPL", diff --git a/examples/rest/stocks-technical_indicators_macd.py b/examples/rest/stocks-technical_indicators_macd.py index 187e8ae6..4b9bd323 100644 --- a/examples/rest/stocks-technical_indicators_macd.py +++ b/examples/rest/stocks-technical_indicators_macd.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v1_indicators_macd__stockticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/stocks/get_v1_indicators_macd__stockticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used macd = client.get_macd( ticker="AAPL", diff --git a/examples/rest/stocks-technical_indicators_rsi.py b/examples/rest/stocks-technical_indicators_rsi.py index a69d6ae3..20ac8758 100644 --- a/examples/rest/stocks-technical_indicators_rsi.py +++ b/examples/rest/stocks-technical_indicators_rsi.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v1_indicators_rsi__stockticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/stocks/get_v1_indicators_rsi__stockticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used rsi = client.get_rsi( ticker="AAPL", diff --git a/examples/rest/stocks-technical_indicators_sma.py b/examples/rest/stocks-technical_indicators_sma.py index 41a9c7c4..a08fec13 100644 --- a/examples/rest/stocks-technical_indicators_sma.py +++ b/examples/rest/stocks-technical_indicators_sma.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v1_indicators_sma__stockticker -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/indicators.py +# https://massive.com/docs/stocks/get_v1_indicators_sma__stockticker +# https://github.com/massive-com/client-python/blob/master/massive/rest/indicators.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used sma = client.get_sma( ticker="AAPL", diff --git a/examples/rest/stocks-ticker_details.py b/examples/rest/stocks-ticker_details.py index 5f81b4bc..ac3b6b1e 100644 --- a/examples/rest/stocks-ticker_details.py +++ b/examples/rest/stocks-ticker_details.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_reference_tickers__ticker -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-details +# https://massive.com/docs/stocks/get_v3_reference_tickers__ticker +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-details # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used details = client.get_ticker_details("AAPL") print(details) diff --git a/examples/rest/stocks-ticker_events.py b/examples/rest/stocks-ticker_events.py index 09b13432..b8337f43 100644 --- a/examples/rest/stocks-ticker_events.py +++ b/examples/rest/stocks-ticker_events.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_vx_reference_tickers__id__events -# https://github.com/polygon-io/client-python/blob/master/polygon/rest/reference.py +# https://massive.com/docs/stocks/get_vx_reference_tickers__id__events +# https://github.com/massive-com/client-python/blob/master/massive/rest/reference.py # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used events = client.get_ticker_events("META") print(events) diff --git a/examples/rest/stocks-ticker_news.py b/examples/rest/stocks-ticker_news.py index fa834891..cea11857 100644 --- a/examples/rest/stocks-ticker_news.py +++ b/examples/rest/stocks-ticker_news.py @@ -1,14 +1,14 @@ -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( TickerNews, ) # docs -# https://polygon.io/docs/stocks/get_v2_reference_news -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-ticker-news +# https://massive.com/docs/stocks/get_v2_reference_news +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-ticker-news # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used news = [] for n in client.list_ticker_news("BBBY", order="desc", limit=1000): diff --git a/examples/rest/stocks-ticker_types.py b/examples/rest/stocks-ticker_types.py index fa09338d..7748868c 100644 --- a/examples/rest/stocks-ticker_types.py +++ b/examples/rest/stocks-ticker_types.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_reference_tickers_types -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-types +# https://massive.com/docs/stocks/get_v3_reference_tickers_types +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#get-ticker-types # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used types = client.get_ticker_types() print(types) diff --git a/examples/rest/stocks-tickers.py b/examples/rest/stocks-tickers.py index 7fc09230..c441fab2 100644 --- a/examples/rest/stocks-tickers.py +++ b/examples/rest/stocks-tickers.py @@ -1,11 +1,11 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_reference_tickers -# https://polygon-api-client.readthedocs.io/en/latest/Reference.html#list-tickers +# https://massive.com/docs/stocks/get_v3_reference_tickers +# https://massive-api-client.readthedocs.io/en/latest/Reference.html#list-tickers # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used tickers = [] for t in client.list_tickers(market="stocks", type="CS", active=True, limit=1000): diff --git a/examples/rest/stocks-trades.py b/examples/rest/stocks-trades.py index 8f2f147b..9d1de07c 100644 --- a/examples/rest/stocks-trades.py +++ b/examples/rest/stocks-trades.py @@ -1,8 +1,8 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v3_trades__stockticker -# https://polygon-api-client.readthedocs.io/en/latest/Trades.html#polygon.RESTClient.list_trades +# https://massive.com/docs/stocks/get_v3_trades__stockticker +# https://massive-api-client.readthedocs.io/en/latest/Trades.html#massive.RESTClient.list_trades # Trade data refers to the tick records of individual transactions that have # taken place in a financial market, such as the price, size, and time of @@ -11,7 +11,7 @@ # market behavior and inform their investment decisions. # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used trades = [] for t in client.list_trades("IBIO", "2023-02-01", limit=50000): diff --git a/examples/rest/stocks-trades_extra.py b/examples/rest/stocks-trades_extra.py index 1fcf566d..0aa27142 100644 --- a/examples/rest/stocks-trades_extra.py +++ b/examples/rest/stocks-trades_extra.py @@ -1,15 +1,15 @@ # This code retrieves trade records and counts the amount of money that changes hands. -from polygon import RESTClient -from polygon.rest.models import ( +from massive import RESTClient +from massive.rest.models import ( Trade, ) # docs -# https://polygon.io/docs/stocks/get_v3_trades__stockticker -# https://polygon-api-client.readthedocs.io/en/latest/Trades.html#polygon.RESTClient.list_trades +# https://massive.com/docs/stocks/get_v3_trades__stockticker +# https://massive-api-client.readthedocs.io/en/latest/Trades.html#massive.RESTClient.list_trades # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used # used to track money across trades money = float(0) diff --git a/examples/rest/universal-snapshot.py b/examples/rest/universal-snapshot.py index 1ab5e804..ba37c62d 100644 --- a/examples/rest/universal-snapshot.py +++ b/examples/rest/universal-snapshot.py @@ -1,14 +1,14 @@ from typing import cast, Iterator, Union from urllib3 import HTTPResponse -from polygon import RESTClient -from polygon.rest.models import UniversalSnapshot, SnapshotMarketType +from massive import RESTClient +from massive.rest.models import UniversalSnapshot, SnapshotMarketType # docs -# https://polygon.io/docs/stocks/get_v3_snapshot -# https://polygon-api-client.readthedocs.io/en/latest/Snapshot.html +# https://massive.com/docs/stocks/get_v3_snapshot +# https://massive-api-client.readthedocs.io/en/latest/Snapshot.html # client = RESTClient("XXXXXX") # hardcoded api_key is used -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used def print_snapshots(iterator: Union[Iterator[UniversalSnapshot], HTTPResponse]): diff --git a/examples/tools/async_websocket_rest_handler/async_websocket_rest_handler.py b/examples/tools/async_websocket_rest_handler/async_websocket_rest_handler.py index d60a257c..c19975f1 100644 --- a/examples/tools/async_websocket_rest_handler/async_websocket_rest_handler.py +++ b/examples/tools/async_websocket_rest_handler/async_websocket_rest_handler.py @@ -4,15 +4,15 @@ import re from concurrent.futures import ThreadPoolExecutor from typing import Optional, Union -from polygon import RESTClient, WebSocketClient -from polygon.websocket.models import Market, Feed +from massive import RESTClient, WebSocketClient +from massive.websocket.models import Market, Feed class ApiCallHandler: def __init__(self): self.api_call_queue = asyncio.Queue() self.executor = ThreadPoolExecutor() # Thread pool for running synchronous code - self.client = RESTClient() # Assumes POLYGON_API_KEY is set in the environment + self.client = RESTClient() # Assumes MASSIVE_API_KEY is set in the environment async def enqueue_api_call(self, options_ticker): await self.api_call_queue.put(options_ticker) @@ -75,8 +75,8 @@ def extract_symbol(self, input_string): class MyClient: def __init__(self, feed, market, subscriptions): - api_key = os.getenv("POLYGON_API_KEY") - self.polygon_websocket_client = WebSocketClient( + api_key = os.getenv("MASSIVE_API_KEY") + self.massive_websocket_client = WebSocketClient( api_key=api_key, feed=feed, market=market, @@ -89,7 +89,7 @@ def __init__(self, feed, market, subscriptions): async def start_event_stream(self): try: await asyncio.gather( - self.polygon_websocket_client.connect(self.message_handler.add), + self.massive_websocket_client.connect(self.message_handler.add), self.message_handler.start_handling(), self.api_call_handler.start_processing_api_calls(), ) diff --git a/examples/tools/async_websocket_rest_handler/readme.md b/examples/tools/async_websocket_rest_handler/readme.md index a4482ff3..f68f535f 100644 --- a/examples/tools/async_websocket_rest_handler/readme.md +++ b/examples/tools/async_websocket_rest_handler/readme.md @@ -2,12 +2,12 @@ This script demonstrates a non-blocking pattern for handling WebSocket streams and REST API calls in Python using asyncio. It focuses on efficient, concurrent processing of real-time financial data and asynchronous fetching of additional information, ensuring that real-time data streams are managed without delays or blockages. The tutorial provides both theoretical insights and a practical, adaptable example, ideal for applications in financial data processing and similar real-time data handling scenarios. -Please see the [tutorial](https://polygon.io/blog/pattern-for-non-blocking-websocket-and-rest-calls-in-python) for more details. +Please see the [tutorial](https://massive.com/blog/pattern-for-non-blocking-websocket-and-rest-calls-in-python) for more details. ### Prerequisites - Python 3.x -- Polygon.io account and Options API key +- Massive.com account and Options API key ### Running the Example diff --git a/examples/tools/docker/Dockerfile b/examples/tools/docker/Dockerfile index 253c1fc1..b79a7af1 100644 --- a/examples/tools/docker/Dockerfile +++ b/examples/tools/docker/Dockerfile @@ -8,12 +8,12 @@ WORKDIR /usr/src/app COPY . . # Install any needed packages specified in requirements.txt -RUN pip install --no-cache-dir polygon-api-client +RUN pip install --no-cache-dir massive -# Set the environment variable for the Polygon API key +# Set the environment variable for the Massive API key # Note: Replace "" with your actual API key or use Docker's --env flag when running the container to set it dynamically # Warning: Not recommended for production or shared environments -ENV POLYGON_API_KEY= +ENV MASSIVE_API_KEY= # Run the script when the container launches CMD ["python", "./app.py"] diff --git a/examples/tools/docker/app.py b/examples/tools/docker/app.py index 8e5c0223..321bb4b9 100644 --- a/examples/tools/docker/app.py +++ b/examples/tools/docker/app.py @@ -1,10 +1,10 @@ -from polygon import RESTClient +from massive import RESTClient # docs -# https://polygon.io/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to -# https://polygon-api-client.readthedocs.io/en/latest/Aggs.html#polygon.RESTClient.list_aggs +# https://massive.com/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to +# https://massive-api-client.readthedocs.io/en/latest/Aggs.html#massive.RESTClient.list_aggs -client = RESTClient() # POLYGON_API_KEY environment variable is used +client = RESTClient() # MASSIVE_API_KEY environment variable is used aggs = [] for a in client.list_aggs( diff --git a/examples/tools/docker/readme.md b/examples/tools/docker/readme.md index 776fd70c..ff3f24e4 100644 --- a/examples/tools/docker/readme.md +++ b/examples/tools/docker/readme.md @@ -1,16 +1,16 @@ -# Dockerized Python Application with Polygon API Client +# Dockerized Python Application with Massive API Client -This Docker setup provides a ready-to-use environment for running Python scripts that utilize the `polygon-api-client` for financial data processing. It encapsulates the Python environment and the `polygon-api-client` library in a Docker container, making it easy to deploy and run the application consistently across any system with Docker installed. This approach is particularly useful for developers looking to integrate Polygon's financial data APIs into their applications without worrying about environment inconsistencies. +This Docker setup provides a ready-to-use environment for running Python scripts that utilize the `massive-api-client` for financial data processing. It encapsulates the Python environment and the `massive-api-client` library in a Docker container, making it easy to deploy and run the application consistently across any system with Docker installed. This approach is particularly useful for developers looking to integrate Massive's financial data APIs into their applications without worrying about environment inconsistencies. ### Prerequisites - [Docker](https://www.docker.com/) installed on your machine -- [Polygon.io](https://polygon.io/) account and API key +- [Massive.com](https://massive.com/) account and API key ### Setup and Configuration 1. Clone the repository or download the Dockerfile and your Python script into a directory. -2. Use Docker's `--env` flag when running the container to set the `POLYGON_API_KEY` environment variable dynamically, or replace `` in the Dockerfile with your Polygon API key (not recommended for production or shared environments). +2. Use Docker's `--env` flag when running the container to set the `MASSIVE_API_KEY` environment variable dynamically, or replace `` in the Dockerfile with your Massive API key (not recommended for production or shared environments). 3. Ensure your Python script (e.g., `app.py`) is in the same directory as the Dockerfile. ### Building the Docker Image @@ -20,22 +20,22 @@ Any modifications to the Python script will require rebuilding the Docker image Navigate to the directory containing your Dockerfile and execute the following command to build your Docker image: ``` -docker build -t polygon-client-app . +docker build -t massive-client-app . ``` -This command creates a Docker image named `polygon-client-app` based on the instructions in your Dockerfile. +This command creates a Docker image named `massive-client-app` based on the instructions in your Dockerfile. ### Running the Docker Container Run your Docker container using the following command: ``` -docker run --env POLYGON_API_KEY="" polygon-client-app +docker run --env MASSIVE_API_KEY="" massive-client-app ``` -Replace `` with your actual Polygon API key. This command starts a Docker container based on the `polygon-client-app` image, sets the `POLYGON_API_KEY` environment variable to your provided API key, and runs your Python script inside the container. +Replace `` with your actual Massive API key. This command starts a Docker container based on the `massive-client-app` image, sets the `MASSIVE_API_KEY` environment variable to your provided API key, and runs your Python script inside the container. ### Additional Notes - The Docker setup provided here is a very basic example. Depending on your specific requirements, you might need to customize the Dockerfile, such as adding volume mounts for persistent data or exposing ports for network communication. -- For more details on using the Polygon API and the `polygon-api-client` library, please refer to the [Polygon documentation](https://polygon.io/docs), the [polygon-io/client-python](https://github.com/polygon-io/client-python) repo, or the [polygon-api-client documentation](https://polygon-api-client.readthedocs.io/en/latest/). \ No newline at end of file +- For more details on using the Massive API and the `massive-api-client` library, please refer to the [Massive documentation](https://massive.com/docs), the [massive-com/client-python](https://github.com/massive-com/client-python) repo, or the [massive-api-client documentation](https://massive-api-client.readthedocs.io/en/latest/). \ No newline at end of file diff --git a/examples/tools/flatfiles-stock-trades/exchange-heatmap.py b/examples/tools/flatfiles-stock-trades/exchange-heatmap.py new file mode 100644 index 00000000..0ea4ce4f --- /dev/null +++ b/examples/tools/flatfiles-stock-trades/exchange-heatmap.py @@ -0,0 +1,68 @@ +# We can use a Python script that aggregates trades by exchange into 30-minute +# chunks, setting the stage for a visual analysis. This approach will highlight +# trade flows, including opening hours and peak activity times, across the +# exchanges. Please see https://massive.com/blog/insights-from-trade-level-data +# +import pandas as pd # type: ignore +import seaborn as sns # type: ignore +import matplotlib.pyplot as plt # type: ignore +import numpy as np # type: ignore +import pytz # type: ignore + +# Replace '2024-04-05.csv' with the path to your actual file +file_path = "2024-04-05.csv" + +# Load the CSV file into a pandas DataFrame +df = pd.read_csv(file_path) + +# Convert 'participant_timestamp' to datetime (assuming nanoseconds Unix timestamp) +df["participant_timestamp"] = pd.to_datetime( + df["participant_timestamp"], unit="ns", utc=True +) + +# Convert to Eastern Time (ET), accounting for both EST and EDT +df["participant_timestamp"] = df["participant_timestamp"].dt.tz_convert( + "America/New_York" +) + +# Create a new column for 30-minute time intervals, now in ET +df["time_interval"] = df["participant_timestamp"].dt.floor("30T").dt.time + +# Ensure full 24-hour coverage by generating all possible 30-minute intervals +all_intervals = pd.date_range(start="00:00", end="23:59", freq="30T").time +all_exchanges = df["exchange"].unique() +full_index = pd.MultiIndex.from_product( + [all_exchanges, all_intervals], names=["exchange", "time_interval"] +) + +# Group by 'exchange' and 'time_interval', count trades, and reset index +grouped = ( + df.groupby(["exchange", "time_interval"]) + .size() + .reindex(full_index, fill_value=0) + .reset_index(name="trade_count") +) + +# Pivot the DataFrame for the heatmap, ensuring all intervals and exchanges are represented +pivot_table = grouped.pivot("exchange", "time_interval", "trade_count").fillna(0) + +# Apply a log scale transformation to the trade counts + 1 to handle zero trades correctly +log_scale_data = np.log1p(pivot_table.values) + +# Plotting the heatmap using the log scale data +plt.figure(figsize=(20, 10)) +sns.heatmap( + log_scale_data, + annot=False, + cmap="Reds", + linewidths=0.5, + cbar=False, + xticklabels=[t.strftime("%H:%M") for t in all_intervals], + yticklabels=pivot_table.index, +) +plt.title("Trade Count Heatmap by Exchange and Time Interval (Log Scale, ET)") +plt.ylabel("Exchange") +plt.xlabel("Time Interval (ET)") +plt.xticks(rotation=45) +plt.tight_layout() # Adjust layout to not cut off labels +plt.show() diff --git a/examples/tools/flatfiles-stock-trades/exchanges-seen.py b/examples/tools/flatfiles-stock-trades/exchanges-seen.py new file mode 100644 index 00000000..fcb42572 --- /dev/null +++ b/examples/tools/flatfiles-stock-trades/exchanges-seen.py @@ -0,0 +1,23 @@ +# Here's a Python script for analyzing the dataset, that identifies the +# distribution of trades across different exchanges and calculates their +# respective percentages of the total trades. Please see +# https://massive.com/blog/insights-from-trade-level-data +# +import pandas as pd # type: ignore + +# Replace '2024-04-05.csv' with the path to your actual file +file_path = "2024-04-05.csv" + +# Load the CSV file into a pandas DataFrame +df = pd.read_csv(file_path) + +# Count the number of trades for each exchange +exchange_counts = df["exchange"].value_counts() + +# Calculate the total number of trades +total_trades = exchange_counts.sum() + +# Print out all exchanges and their percentage of total trades +for exchange, count in exchange_counts.items(): + percentage = (count / total_trades) * 100 + print(f"Exchange {exchange}: {count} trades, {percentage:.2f}% of total trades") diff --git a/examples/tools/flatfiles-stock-trades/heatmap.png b/examples/tools/flatfiles-stock-trades/heatmap.png new file mode 100644 index 00000000..9cf4c0ac Binary files /dev/null and b/examples/tools/flatfiles-stock-trades/heatmap.png differ diff --git a/examples/tools/flatfiles-stock-trades/histogram.png b/examples/tools/flatfiles-stock-trades/histogram.png new file mode 100644 index 00000000..1ccb62dd Binary files /dev/null and b/examples/tools/flatfiles-stock-trades/histogram.png differ diff --git a/examples/tools/flatfiles-stock-trades/readme.md b/examples/tools/flatfiles-stock-trades/readme.md new file mode 100644 index 00000000..5465e29f --- /dev/null +++ b/examples/tools/flatfiles-stock-trades/readme.md @@ -0,0 +1,86 @@ +# Massive.com Flat Files Stock Trades Analysis Scripts + +This repository contains Python scripts for analyzing stock market trading data using Flat Files from Massive.com. These scripts demonstrate various ways to dissect and visualize trade data for comprehensive market analysis. + +Please see the tutorial: [Deep Dive into Trade-Level Data with Flat Files](https://massive.com/blog/insights-from-trade-level-data) + +## Scripts Overview + +### **exchange-heatmap.py** +This script aggregates trades by exchange into 30-minute chunks and creates a heatmap visualization. It highlights the flow of trades and peak activity times across different exchanges, providing insights into how different exchanges operate throughout the day. + +![Treemap Visualization](./heatmap.png) + +### **exchanges-seen.py** +Analyzes the distribution of trades across different exchanges and calculates their respective percentages of total trades. This script helps identify which exchanges handle the most trading volume, offering a perspective on market structure. + +``` +Exchange 4: 25,570,324 trades, 36.32% of total trades +Exchange 12: 15,147,689 trades, 21.52% of total trades +Exchange 11: 6,877,306 trades, 9.77% of total trades +Exchange 19: 5,098,852 trades, 7.24% of total trades +Exchange 10: 4,006,611 trades, 5.69% of total trades +Exchange 8: 3,686,168 trades, 5.24% of total trades +Exchange 15: 2,446,340 trades, 3.47% of total trades +Exchange 21: 2,173,744 trades, 3.09% of total trades +Exchange 7: 1,509,083 trades, 2.14% of total trades +Exchange 20: 1,296,811 trades, 1.84% of total trades +Exchange 18: 674,553 trades, 0.96% of total trades +Exchange 13: 527,767 trades, 0.75% of total trades +Exchange 2: 417,295 trades, 0.59% of total trades +Exchange 3: 393,919 trades, 0.56% of total trades +Exchange 17: 230,210 trades, 0.33% of total trades +Exchange 1: 183,010 trades, 0.26% of total trades +Exchange 9: 159,020 trades, 0.23% of total trades +Exchange 14: 1,211 trades, 0.00% of total trades +``` + +### **top-10-tickers.py** +Identifies the top 10 most traded stocks and calculates their respective percentages of the total trades. This script provides a clear view of the market's most active stocks, highlighting where the most trading activity is concentrated. + +``` +TSLA: 1,549,605 trades, 2.20% of total trades +NVDA: 788,331 trades, 1.12% of total trades +SPY: 669,762 trades, 0.95% of total trades +AMD: 587,140 trades, 0.83% of total trades +MDIA: 561,698 trades, 0.80% of total trades +AAPL: 540,870 trades, 0.77% of total trades +SOXL: 533,511 trades, 0.76% of total trades +QQQ: 508,822 trades, 0.72% of total trades +CADL: 466,604 trades, 0.66% of total trades +AMZN: 465,526 trades, 0.66% of total trades +``` + +### **trades-histogram.py** +Creates a histogram that aggregates trades into 30-minute intervals throughout the day. This visualization helps understand the distribution of trading volume across different times, including pre-market, regular trading hours, and after-hours. + +![Treemap Visualization](./histogram.png) + +## Download the Data + +First, let's download an actual file and explore the data and see what we can learn. We start by downloading the trades for 2024-04-05 via the [File Browser](https://massive.com/flat-files/stocks-trades/2024/04). The `us_stocks_sip/trades_v1/2024/04/2024-04-05.csv.gz` file is about 1.35GB and is in a compressed gzip format. + +``` +gunzip 2024-04-05.csv.gz +``` + +## Getting Started + +To run these scripts, you will need Python 3 and several dependencies installed, including pandas, matplotlib, seaborn, and pytz. Ensure that you have the trading data file available and modify the `file_path` variable in each script to point to your data file location. + +``` +pip install pandas matplotlib seaborn pytz +``` + +## Usage + +Each script is designed to be run independently: + +```bash +python exchange-heatmap.py +python exchanges-seen.py +python top-10-tickers.py +python trades-histogram.py +``` + +Adjust the script parameters as necessary to fit your specific analysis needs or to accommodate different datasets. \ No newline at end of file diff --git a/examples/tools/flatfiles-stock-trades/top-10-tickers.py b/examples/tools/flatfiles-stock-trades/top-10-tickers.py new file mode 100644 index 00000000..35d59a4e --- /dev/null +++ b/examples/tools/flatfiles-stock-trades/top-10-tickers.py @@ -0,0 +1,25 @@ +# Here's a Python script for analyzing the dataset, that identifies the top 10 +# most traded stocks and calculates their respective percentages of the total +# trades. Please see https://massive.com/blog/insights-from-trade-level-data +# +import pandas as pd # type: ignore + +# Replace '2024-04-05.csv' with the path to your actual file +file_path = "2024-04-05.csv" + +# Load the CSV file into a pandas DataFrame +df = pd.read_csv(file_path) + +# Count the number of trades for each ticker +trade_counts = df["ticker"].value_counts() + +# Calculate the total number of trades +total_trades = trade_counts.sum() + +# Get the top 10 traded stocks +top_10_traded = trade_counts.head(10) + +# Print out the top 10 traded stocks and their percentage of total trades +for ticker, count in top_10_traded.items(): + percentage = (count / total_trades) * 100 + print(f"{ticker}: {count} trades, {percentage:.2f}% of total trades") diff --git a/examples/tools/flatfiles-stock-trades/trades-histogram.py b/examples/tools/flatfiles-stock-trades/trades-histogram.py new file mode 100644 index 00000000..3e89cdfc --- /dev/null +++ b/examples/tools/flatfiles-stock-trades/trades-histogram.py @@ -0,0 +1,63 @@ +# To visualize these dynamics, we can use a Python script to create a histogram +# aggregating trades into 30-minute intervals, providing a clear view of when +# trading activity concentrates during the day. This analysis aims to highlight +# the distribution of trading volume across the day, from pre-market to after- +# hours. Please see https://massive.com/blog/insights-from-trade-level-data +# +import pandas as pd # type: ignore +import matplotlib.pyplot as plt # type: ignore + +# Replace '2024-04-05.csv' with the path to your actual file +file_path = "2024-04-05.csv" + +# Load the CSV file into a pandas DataFrame +df = pd.read_csv(file_path) + +# Convert 'participant_timestamp' to datetime (assuming nanoseconds Unix timestamp) +df["participant_timestamp"] = pd.to_datetime( + df["participant_timestamp"], unit="ns", utc=True +) + +# Convert to Eastern Time (ET), accounting for both EST and EDT +df["participant_timestamp"] = df["participant_timestamp"].dt.tz_convert( + "America/New_York" +) + +# Create a new column for 30-minute time intervals, now in ET +df["time_interval"] = df["participant_timestamp"].dt.floor("30T") + +# Aggregate trades into 30-minute intervals for the entire dataset +trade_counts_per_interval = df.groupby("time_interval").size() + +# Prepare the plot +plt.figure(figsize=(15, 7)) + +# Plotting the histogram/bar chart +bars = plt.bar( + trade_counts_per_interval.index, trade_counts_per_interval.values, width=0.02 +) + +# Adding trade count annotations on each bar +for bar in bars: + height = bar.get_height() + plt.annotate( + f"{int(height)}", + xy=(bar.get_x() + bar.get_width() / 2, height), + xytext=(0, 3), # 3 points vertical offset + textcoords="offset points", + ha="center", + va="bottom", + ) + +plt.title("Trade Counts Aggregated by 30-Minute Intervals (ET)") +plt.xlabel("Time Interval (ET)") +plt.ylabel("Number of Trades") +plt.xticks(rotation=45, ha="right") + +# Ensure that every 30-minute interval is represented on the x-axis +plt.gca().set_xticklabels( + [t.strftime("%Y-%m-%d %H:%M") for t in trade_counts_per_interval.index], rotation=90 +) + +plt.tight_layout() +plt.show() diff --git a/examples/tools/hunting-anomalies/README.md b/examples/tools/hunting-anomalies/README.md new file mode 100644 index 00000000..874ad568 --- /dev/null +++ b/examples/tools/hunting-anomalies/README.md @@ -0,0 +1,49 @@ +# Hunting Anomalies in the Stock Market + +This repository contains all the necessary scripts and data directories used in the [Hunting Anomalies in the Stock Market](https://massive.com/blog/hunting-anomalies-in-stock-market/) tutorial, hosted on Massive.com's blog. The tutorial demonstrates how to detect statistical anomalies in historical US stock market data through a comprehensive workflow that involves downloading data, building a lookup table, querying for anomalies, and visualizing them through a web interface. + +### Prerequisites + +- Python 3.8+ +- Access to Massive.com's historical data via Flat Files +- An active Massive.com API key, obtainable by signing up for a Stocks paid plan + +### Repository Contents + +- `README.md`: This file, outlining setup and execution instructions. +- `aggregates_day`: Directory where downloaded CSV data files are stored. +- `build-lookup-table.py`: Python script to build a lookup table from the historical data. +- `query-lookup-table.py`: Python script to query the lookup table for anomalies. +- `gui-lookup-table.py`: Python script for a browser-based interface to explore anomalies visually. + +### Running the Tutorial + +1. **Ensure Python 3.8+ is installed:** Check your Python version and ensure all required libraries (massive-api-client, pandas, pickle, and argparse) are installed. + +2. **Set up your API key:** Make sure you have an active paid Massive.com Stock subscription for accessing Flat Files. Set up your API key in your environment or directly in the scripts where required. + +3. **Download Historical Data:** Use the MinIO client to download historical stock market data. Adjust the commands and paths based on the data you are interested in. + ```bash + mc alias set s3massive https://files.massive.com YOUR_ACCESS_KEY YOUR_SECRET_KEY + mc cp --recursive s3massive/flatfiles/us_stocks_sip/day_aggs_v1/2024/08/ ./aggregates_day/ + mc cp --recursive s3massive/flatfiles/us_stocks_sip/day_aggs_v1/2024/09/ ./aggregates_day/ + mc cp --recursive s3massive/flatfiles/us_stocks_sip/day_aggs_v1/2024/10/ ./aggregates_day/ + gunzip ./aggregates_day/*.gz + ``` + +4. **Build the Lookup Table:** This script processes the downloaded data and builds a lookup table, saving it as `lookup_table.pkl`. + ```bash + python build-lookup-table.py + ``` + +5. **Query Anomalies:** Replace `2024-10-18` with the date you want to analyze for anomalies. + ```bash + python query-lookup-table.py 2024-10-18 + ``` + +6. **Run the GUI:** Access the web interface at `http://localhost:8888` to explore the anomalies visually. + ```bash + python gui-lookup-table.py + ``` + +For a complete step-by-step guide on each phase of the anomaly detection process, including additional configurations and troubleshooting, refer to the detailed [tutorial on our blog](https://massive.com/blog/hunting-anomalies-in-stock-market/). diff --git a/examples/tools/hunting-anomalies/aggregates_day/README.md b/examples/tools/hunting-anomalies/aggregates_day/README.md new file mode 100644 index 00000000..a0ade480 --- /dev/null +++ b/examples/tools/hunting-anomalies/aggregates_day/README.md @@ -0,0 +1 @@ +Download flat files into here. diff --git a/examples/tools/hunting-anomalies/build-lookup-table.py b/examples/tools/hunting-anomalies/build-lookup-table.py new file mode 100644 index 00000000..16abca2d --- /dev/null +++ b/examples/tools/hunting-anomalies/build-lookup-table.py @@ -0,0 +1,91 @@ +import os +import pandas as pd # type: ignore +from collections import defaultdict +import pickle +import json +from typing import DefaultDict, Dict, Any, BinaryIO + +# Directory containing the daily CSV files +data_dir = "./aggregates_day/" + +# Initialize a dictionary to hold trades data +trades_data = defaultdict(list) + +# List all CSV files in the directory +files = sorted([f for f in os.listdir(data_dir) if f.endswith(".csv")]) + +print("Starting to process files...") + +# Process each file (assuming files are named in order) +for file in files: + print(f"Processing {file}") + file_path = os.path.join(data_dir, file) + df = pd.read_csv(file_path) + # For each stock, store the date and relevant data + for _, row in df.iterrows(): + ticker = row["ticker"] + date = pd.to_datetime(row["window_start"], unit="ns").date() + trades = row["transactions"] + close_price = row["close"] # Ensure 'close' column exists in your CSV + trades_data[ticker].append( + {"date": date, "trades": trades, "close_price": close_price} + ) + +print("Finished processing files.") +print("Building lookup table...") + +# Now, build the lookup table with rolling averages and percentage price change +lookup_table: DefaultDict[str, Dict[str, Any]] = defaultdict( + dict +) # Nested dict: ticker -> date -> stats + +for ticker, records in trades_data.items(): + # Convert records to DataFrame + df_ticker = pd.DataFrame(records) + # Sort records by date + df_ticker.sort_values("date", inplace=True) + df_ticker.set_index("date", inplace=True) + + # Calculate the percentage change in close_price + df_ticker["price_diff"] = ( + df_ticker["close_price"].pct_change() * 100 + ) # Multiply by 100 for percentage + + # Shift trades to exclude the current day from rolling calculations + df_ticker["trades_shifted"] = df_ticker["trades"].shift(1) + # Calculate rolling average and standard deviation over the previous 5 days + df_ticker["avg_trades"] = df_ticker["trades_shifted"].rolling(window=5).mean() + df_ticker["std_trades"] = df_ticker["trades_shifted"].rolling(window=5).std() + # Store the data in the lookup table + for date, row in df_ticker.iterrows(): + # Convert date to string for JSON serialization + date_str = date.strftime("%Y-%m-%d") + # Ensure rolling stats are available + if pd.notnull(row["avg_trades"]) and pd.notnull(row["std_trades"]): + lookup_table[ticker][date_str] = { + "trades": row["trades"], + "close_price": row["close_price"], + "price_diff": row["price_diff"], + "avg_trades": row["avg_trades"], + "std_trades": row["std_trades"], + } + else: + # Store data without rolling stats if not enough data points + lookup_table[ticker][date_str] = { + "trades": row["trades"], + "close_price": row["close_price"], + "price_diff": row["price_diff"], + "avg_trades": None, + "std_trades": None, + } + +print("Lookup table built successfully.") + +# Convert defaultdict to regular dict for JSON serialization +lookup_table_dict = {k: v for k, v in lookup_table.items()} + +# Save the lookup table to a file for later use +with open("lookup_table.pkl", "wb") as f: # type: BinaryIO + pickle.dump(lookup_table_dict, f) + +print("Lookup table saved to 'lookup_table.pkl'.") diff --git a/examples/tools/hunting-anomalies/gui-lookup-table.py b/examples/tools/hunting-anomalies/gui-lookup-table.py new file mode 100644 index 00000000..8d8e49c2 --- /dev/null +++ b/examples/tools/hunting-anomalies/gui-lookup-table.py @@ -0,0 +1,302 @@ +import os +import pickle +import json +from datetime import datetime +from massive import RESTClient +from massive.rest.models import Agg +import http.server +import socketserver +import traceback +from urllib.parse import urlparse, parse_qs + +PORT = 8888 + +# Load the lookup_table +with open("lookup_table.pkl", "rb") as f: + lookup_table = pickle.load(f) + + +class handler(http.server.SimpleHTTPRequestHandler): + def do_GET(self): + # Parse the path and query parameters + parsed_path = urlparse(self.path) + path = parsed_path.path + query_params = parse_qs(parsed_path.query) + + if path == "/": + # Handle the root path + # Get the date parameter if provided + date_param = query_params.get("date", [None])[0] + + # Get all dates from the lookup table + all_dates = set() + for ticker_data in lookup_table.values(): + all_dates.update(ticker_data.keys()) + all_dates = sorted(all_dates) + + # If date is None, get the latest date from the lookup table + if date_param is None: + if all_dates: + latest_date = max(all_dates) + else: + self.send_response(200) + self.send_header("Content-type", "text/html") + self.end_headers() + html_content = ( + "

No data available.

" + ) + self.wfile.write(html_content.encode()) + return + else: + latest_date = date_param + + # Ensure latest_date is in all_dates + if latest_date not in all_dates: + # Handle the case where the provided date is invalid + self.send_response(400) + self.send_header("Content-type", "text/html") + self.end_headers() + error_html = f"

Error: No data available for date {latest_date}

" + self.wfile.write(error_html.encode()) + return + + # Now, get the anomalies for the latest_date + anomalies = [] + for ticker, date_data in lookup_table.items(): + if latest_date in date_data: + data = date_data[latest_date] + trades = data["trades"] + avg_trades = data["avg_trades"] + std_trades = data["std_trades"] + if ( + avg_trades is not None + and std_trades is not None + and std_trades > 0 + ): + z_score = (trades - avg_trades) / std_trades + threshold_multiplier = 3 # Adjust as needed + if z_score > threshold_multiplier: + anomalies.append( + { + "ticker": ticker, + "date": latest_date, + "trades": trades, + "avg_trades": avg_trades, + "std_trades": std_trades, + "z_score": z_score, + "close_price": data["close_price"], + "price_diff": data["price_diff"], + } + ) + # Sort anomalies by trades in descending order + anomalies.sort(key=lambda x: x["trades"], reverse=True) + # Generate the HTML to display the anomalies + self.send_response(200) + self.send_header("Content-type", "text/html") + self.end_headers() + # Build the HTML content + html_content = 'Anomalies for {}'.format( + latest_date + ) + html_content += '

Anomalies for {}

'.format( + latest_date + ) + # Add navigation links (prev and next dates) + current_index = all_dates.index(latest_date) + prev_date = all_dates[current_index - 1] if current_index > 0 else None + next_date = ( + all_dates[current_index + 1] + if current_index < len(all_dates) - 1 + else None + ) + html_content += "

" + if prev_date: + html_content += 'Previous Date '.format( + prev_date + ) + if next_date: + html_content += 'Next Date '.format(next_date) + html_content += "

" + # Display the anomalies in a table + html_content += ( + '' + ) + html_content += "" + html_content += "" + html_content += "" + html_content += "" + html_content += "" + html_content += "" + html_content += "" + html_content += "" + html_content += "" + html_content += "" + for anomaly in anomalies: + html_content += "" + html_content += "".format(anomaly["ticker"]) + html_content += "".format(anomaly["trades"]) + html_content += "".format(anomaly["avg_trades"]) + html_content += "".format(anomaly["std_trades"]) + html_content += "".format(anomaly["z_score"]) + html_content += "".format(anomaly["close_price"]) + html_content += "".format(anomaly["price_diff"]) + # Add a link to the chart + html_content += ( + ''.format( + anomaly["ticker"], latest_date + ) + ) + html_content += "" + html_content += '
TickerTradesAvg TradesStd DevZ-scoreClose PricePrice DiffChart
{}{}{:.2f}{:.2f}{:.2f}{:.2f}{:.2f}View Chart
' + html_content += "
" + self.wfile.write(html_content.encode()) + elif path == "/chart": + # Handle the chart page + # Get 'ticker' and 'date' from query parameters + ticker = query_params.get("ticker", [None])[0] + date = query_params.get("date", [None])[0] + if ticker is None or date is None: + # Return an error page + self.send_response(400) + self.send_header("Content-type", "text/html") + self.end_headers() + error_html = "

Error: Missing ticker or date parameter

" + self.wfile.write(error_html.encode()) + else: + # Fetch minute aggregates for the ticker and date + client = RESTClient( + trace=True + ) # MASSIVE_API_KEY environment variable is used + try: + aggs = [] + date_from = date + date_to = date + for a in client.list_aggs( + ticker, + 1, + "minute", + date_from, + date_to, + limit=50000, + ): + aggs.append(a) + # Prepare data for the chart + data = [] + for agg in aggs: + if isinstance(agg, Agg) and isinstance(agg.timestamp, int): + new_record = [ + agg.timestamp, + agg.open, + agg.high, + agg.low, + agg.close, + ] + data.append(new_record) + # Generate the HTML for the chart page + chart_html = """ + + + + + + + + + + + + +
+ +
+ + + """ % ( + json.dumps(data), + ticker, + date, + ticker, + ) + self.send_response(200) + self.send_header("Content-type", "text/html") + self.send_header("Access-Control-Allow-Origin", "*") + self.end_headers() + self.wfile.write(chart_html.encode()) + except Exception as e: + # Handle exceptions + self.send_response(500) + self.send_header("Content-type", "text/html") + self.end_headers() + error_html = "

Error fetching data: {}

".format( + str(e) + ) + self.wfile.write(error_html.encode()) + else: + # Serve files from the current directory + super().do_GET() + + +def run_server(): + with socketserver.TCPServer(("", PORT), handler) as httpd: + print("serving at port", PORT) + try: + httpd.serve_forever() + except KeyboardInterrupt: + print("\nExiting gracefully...") + httpd.shutdown() + httpd.server_close() + + +if __name__ == "__main__": + run_server() diff --git a/examples/tools/hunting-anomalies/query-lookup-table.py b/examples/tools/hunting-anomalies/query-lookup-table.py new file mode 100644 index 00000000..38bb86cf --- /dev/null +++ b/examples/tools/hunting-anomalies/query-lookup-table.py @@ -0,0 +1,63 @@ +import pickle +import argparse + +# Parse command-line arguments +parser = argparse.ArgumentParser(description="Anomaly Detection Script") +parser.add_argument("date", type=str, help="Target date in YYYY-MM-DD format") +args = parser.parse_args() + +# Load the lookup_table +with open("lookup_table.pkl", "rb") as f: + lookup_table = pickle.load(f) + +# Threshold for considering an anomaly (e.g., 3 standard deviations) +threshold_multiplier = 3 + +# Date for which we want to find anomalies +target_date_str = args.date + +# List to store anomalies +anomalies = [] + +# Iterate over all tickers in the lookup table +for ticker, date_data in lookup_table.items(): + if target_date_str in date_data: + data = date_data[target_date_str] + trades = data["trades"] + avg_trades = data["avg_trades"] + std_trades = data["std_trades"] + if avg_trades is not None and std_trades is not None and std_trades > 0: + z_score = (trades - avg_trades) / std_trades + if z_score > threshold_multiplier: + anomalies.append( + { + "ticker": ticker, + "date": target_date_str, + "trades": trades, + "avg_trades": avg_trades, + "std_trades": std_trades, + "z_score": z_score, + "close_price": data["close_price"], + "price_diff": data["price_diff"], + } + ) + +# Sort anomalies by trades in descending order +anomalies.sort(key=lambda x: x["trades"], reverse=True) + +# Print the anomalies with aligned columns +print(f"\nAnomalies Found for {target_date_str}:\n") +print( + f"{'Ticker':<10}{'Trades':>10}{'Avg Trades':>15}{'Std Dev':>10}{'Z-score':>10}{'Close Price':>12}{'Price Diff':>12}" +) +print("-" * 91) +for anomaly in anomalies: + print( + f"{anomaly['ticker']:<10}" + f"{anomaly['trades']:>10.0f}" + f"{anomaly['avg_trades']:>15.2f}" + f"{anomaly['std_trades']:>10.2f}" + f"{anomaly['z_score']:>10.2f}" + f"{anomaly['close_price']:>12.2f}" + f"{anomaly['price_diff']:>12.2f}" + ) diff --git a/examples/tools/related-companies/data.json b/examples/tools/related-companies/data.json new file mode 100644 index 00000000..2b63ea05 --- /dev/null +++ b/examples/tools/related-companies/data.json @@ -0,0 +1 @@ +{"nodes": [{"id": 1, "label": "MSFT"}, {"id": 2, "label": "GOOGL"}, {"id": 3, "label": "NVDA"}, {"id": 4, "label": "AMZN"}, {"id": 5, "label": "GOOG"}, {"id": 6, "label": "META"}, {"id": 7, "label": "TSLA"}, {"id": 8, "label": "AAPL"}, {"id": 9, "label": "CRM"}, {"id": 10, "label": "ORCL"}, {"id": 11, "label": "AMD"}, {"id": 12, "label": "NFLX"}, {"id": 13, "label": "WMT"}, {"id": 14, "label": "DIS"}, {"id": 15, "label": "SNAP"}, {"id": 16, "label": "SHOP"}, {"id": 17, "label": "INTC"}, {"id": 18, "label": "ANET"}, {"id": 19, "label": "RIVN"}, {"id": 20, "label": "GM"}, {"id": 21, "label": "F"}, {"id": 22, "label": "LCID"}, {"id": 23, "label": "WBD"}, {"id": 24, "label": "CMCSA"}, {"id": 25, "label": "PARA"}, {"id": 26, "label": "T"}, {"id": 27, "label": "ROKU"}], "edges": [{"from": 1, "to": 2}, {"from": 1, "to": 3}, {"from": 1, "to": 4}, {"from": 1, "to": 5}, {"from": 1, "to": 6}, {"from": 1, "to": 7}, {"from": 1, "to": 8}, {"from": 1, "to": 9}, {"from": 1, "to": 10}, {"from": 1, "to": 11}, {"from": 4, "to": 1}, {"from": 4, "to": 2}, {"from": 4, "to": 5}, {"from": 4, "to": 8}, {"from": 4, "to": 7}, {"from": 4, "to": 3}, {"from": 4, "to": 6}, {"from": 4, "to": 12}, {"from": 4, "to": 13}, {"from": 4, "to": 14}, {"from": 6, "to": 5}, {"from": 6, "to": 2}, {"from": 6, "to": 1}, {"from": 6, "to": 4}, {"from": 6, "to": 8}, {"from": 6, "to": 7}, {"from": 6, "to": 3}, {"from": 6, "to": 15}, {"from": 6, "to": 12}, {"from": 6, "to": 11}, {"from": 8, "to": 1}, {"from": 8, "to": 2}, {"from": 8, "to": 4}, {"from": 8, "to": 5}, {"from": 8, "to": 7}, {"from": 8, "to": 3}, {"from": 8, "to": 6}, {"from": 8, "to": 12}, {"from": 8, "to": 14}, {"from": 8, "to": 11}, {"from": 5, "to": 2}, {"from": 5, "to": 1}, {"from": 5, "to": 6}, {"from": 5, "to": 4}, {"from": 5, "to": 8}, {"from": 5, "to": 7}, {"from": 5, "to": 3}, {"from": 5, "to": 15}, {"from": 5, "to": 12}, {"from": 5, "to": 16}, {"from": 3, "to": 11}, {"from": 3, "to": 6}, {"from": 3, "to": 2}, {"from": 3, "to": 7}, {"from": 3, "to": 5}, {"from": 3, "to": 1}, {"from": 3, "to": 8}, {"from": 3, "to": 4}, {"from": 3, "to": 17}, {"from": 3, "to": 18}, {"from": 7, "to": 19}, {"from": 7, "to": 2}, {"from": 7, "to": 4}, {"from": 7, "to": 20}, {"from": 7, "to": 21}, {"from": 7, "to": 22}, {"from": 7, "to": 5}, {"from": 7, "to": 6}, {"from": 7, "to": 8}, {"from": 7, "to": 3}, {"from": 14, "to": 12}, {"from": 14, "to": 23}, {"from": 14, "to": 4}, {"from": 14, "to": 24}, {"from": 14, "to": 25}, {"from": 14, "to": 8}, {"from": 14, "to": 2}, {"from": 14, "to": 26}, {"from": 14, "to": 5}, {"from": 14, "to": 27}]} \ No newline at end of file diff --git a/examples/tools/related-companies/index.html b/examples/tools/related-companies/index.html new file mode 100644 index 00000000..1b5ae182 --- /dev/null +++ b/examples/tools/related-companies/index.html @@ -0,0 +1,30 @@ + + + + Vis Network | Related Companies + + + + + +
+ + diff --git a/examples/tools/related-companies/readme.md b/examples/tools/related-companies/readme.md new file mode 100644 index 00000000..75327a35 --- /dev/null +++ b/examples/tools/related-companies/readme.md @@ -0,0 +1,36 @@ +# See Connections with the Related Companies API + +This repository contains the Python script and HTML file used in our tutorial to demonstrate how to identify and visualize relationships between companies using Massive.com's Related Companies API. The tutorial showcases how to fetch related company data and create a dynamic network graph using Python and vis.js, providing insights into the interconnected corporate landscape. + +![Related Companies](./related-companies.png) + +Please see the [tutorial](https://massive.com/blog/related-companies-api) for more details. + +### Prerequisites + +- Python 3.8+ +- Have Massive.com's [python client](https://github.com/massive-com/client-python) installed +- An active Massive.com account with an API key + +### Repository Contents + +- `related-companies-demo.py`: Python script to fetch and process data from the Related Companies API. +- `index.html`: HTML file for visualizing the data as a network graph using vis.js. + +### Running the Example + +To run the Python script, ensure you have Python installed and your API key ready. Execute the following command: + +``` +python related-companies-demo.py +``` + +The script will generate a `data.json` file, which contains the nodes and edges for the network graph. + +To visualize the relationships: + +1. Take the `nodes` and `edges` from the `data.json` file and replace them in the `index.html` file +2. Open `index.html` in your web browser. +3. The web page should display the network graph. + +For a complete step-by-step guide on setting up and exploring the capabilities of the Related Companies API, refer to our detailed [tutorial](https://massive.com/blog/related-companies-api). \ No newline at end of file diff --git a/examples/tools/related-companies/related-companies-demo.py b/examples/tools/related-companies/related-companies-demo.py new file mode 100644 index 00000000..774bb353 --- /dev/null +++ b/examples/tools/related-companies/related-companies-demo.py @@ -0,0 +1,40 @@ +from massive import RESTClient +import json + + +def get_related_tickers(): + client = RESTClient(trace=True) + + # Fetch a limited list of tickers to keep the example manageable + main_tickers = ["MSFT", "AMZN", "META", "AAPL", "GOOG", "NVDA", "TSLA", "DIS"] + + # Prepare data structures for nodes and edges + nodes = [] + edges = [] + id_map = {} + current_id = 1 + + # Iterate over each main ticker and find related tickers + for ticker in main_tickers: + if ticker not in id_map: + id_map[ticker] = current_id + nodes.append({"id": current_id, "label": ticker}) + current_id += 1 + + related_companies = client.get_related_companies(ticker) + for company in related_companies: + related_ticker = company.ticker + if related_ticker not in id_map: + id_map[related_ticker] = current_id + nodes.append({"id": current_id, "label": related_ticker}) + current_id += 1 + + edges.append({"from": id_map[ticker], "to": id_map[related_ticker]}) + + # Save the nodes and edges to a JSON file for web visualization + with open("data.json", "w") as f: + json.dump({"nodes": nodes, "edges": edges}, f) + + +if __name__ == "__main__": + get_related_tickers() diff --git a/examples/tools/related-companies/related-companies.png b/examples/tools/related-companies/related-companies.png new file mode 100644 index 00000000..ac9b14c7 Binary files /dev/null and b/examples/tools/related-companies/related-companies.png differ diff --git a/examples/tools/treemap/polygon_sic_code_data_gatherer.py b/examples/tools/treemap/polygon_sic_code_data_gatherer.py index bb1a2611..04307e3c 100644 --- a/examples/tools/treemap/polygon_sic_code_data_gatherer.py +++ b/examples/tools/treemap/polygon_sic_code_data_gatherer.py @@ -1,11 +1,11 @@ import json import concurrent.futures -from polygon import RESTClient +from massive import RESTClient -# Initialize Polygon API client +# Initialize Massive API client client = RESTClient( trace=True -) # Assuming you have POLYGON_API_KEY environment variable set up +) # Assuming you have MASSIVE_API_KEY environment variable set up # Initialize the data structure to hold SIC code groups sic_code_groups = {} diff --git a/examples/tools/treemap/readme.md b/examples/tools/treemap/readme.md index f0512051..8c55ec3f 100644 --- a/examples/tools/treemap/readme.md +++ b/examples/tools/treemap/readme.md @@ -1,47 +1,47 @@ -# Mapping Market Movements with Polygon.io and D3.js Treemap +# Mapping Market Movements with Massive.com and D3.js Treemap -This repository offers a tutorial on how to create a Treemap visualization of the current stock market conditions. Using D3.js Treemap, Polygon.io's [Snapshot API](https://polygon.io/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers), and the [python-client library](https://github.com/polygon-io/client-python), we'll guide you through building an interactive visualization. The Snapshot API allows us to fetch the most recent market data for all US-traded stocks, transforming them into color-coded nested rectangles within the Treemap. This presents an insightful and interactive snapshot of the market's current status. +This repository offers a tutorial on how to create a Treemap visualization of the current stock market conditions. Using D3.js Treemap, Massive.com's [Snapshot API](https://massive.com/docs/stocks/get_v2_snapshot_locale_us_markets_stocks_tickers), and the [python-client library](https://github.com/massive-com/client-python), we'll guide you through building an interactive visualization. The Snapshot API allows us to fetch the most recent market data for all US-traded stocks, transforming them into color-coded nested rectangles within the Treemap. This presents an insightful and interactive snapshot of the market's current status. ![Treemap Visualization](./market-wide-treemap.png) -Please see the [tutorial](https://polygon.io/blog/market-movements-with-treemap) for more details. +Please see the [tutorial](https://massive.com/blog/market-movements-with-treemap) for more details. ## Structure The repo consists of: -- `polygon_sic_code_data_gatherer.py`: Builds ticker to SIC code mapping for treemap groups. +- `massive_sic_code_data_gatherer.py`: Builds ticker to SIC code mapping for treemap groups. - `sic_code_groups.json`: Pre-built JSON file containing grouped ticker to SIC code data. - `treemap_server.py`: Simple server to host the treemap visualization (requires sic_code_groups.json). -For those interested in the underlying mechanics, the `polygon_sic_code_data_gatherer.py` script retrieves a snapshot of all ticker symbols, processes each one to obtain its SIC code via the Ticker Details API, and then saves these classifications into the file named `sic_code_groups.json`. +For those interested in the underlying mechanics, the `massive_sic_code_data_gatherer.py` script retrieves a snapshot of all ticker symbols, processes each one to obtain its SIC code via the Ticker Details API, and then saves these classifications into the file named `sic_code_groups.json`. The logic of this SIC code-to-group enables us to transform a large dataset into a neatly structured visualization. This structured approach facilitates easy identification of market conditions, providing a snapshot of the market's overall health. You don't need to do anything since it is pre-built but we added the script if you wanted to modify anything. ## Getting Started -Setting up and visualizing the stock market's current conditions is straightforward. All you'll need to do is clone the repository, secure an API key from Polygon.io, install the required Python library, launch the visualization server example, and then dive into the visualization through your web browser. +Setting up and visualizing the stock market's current conditions is straightforward. All you'll need to do is clone the repository, secure an API key from Massive.com, install the required Python library, launch the visualization server example, and then dive into the visualization through your web browser. ### Prerequisites - Python 3.x -- Polygon.io account and API key +- Massive.com account and API key ### Setup 1. Clone the repository: ``` - git clone https://github.com/polygon-io/client-python.git + git clone https://github.com/massive-com/client-python.git ``` 2. Install the necessary Python packages. ``` - pip install -U polygon-api-client + pip install -U massive-api-client ``` -3. Store your Polygon.io API key securely, or set it as an environment variable: +3. Store your Massive.com API key securely, or set it as an environment variable: ``` - export POLYGON_API_KEY=YOUR_API_KEY_HERE + export MASSIVE_API_KEY=YOUR_API_KEY_HERE ``` ### Running the Treemap Server diff --git a/examples/tools/treemap/treemap_server.py b/examples/tools/treemap/treemap_server.py index 67267fc5..fca539e5 100644 --- a/examples/tools/treemap/treemap_server.py +++ b/examples/tools/treemap/treemap_server.py @@ -1,4 +1,4 @@ -from polygon import RESTClient +from massive import RESTClient from collections import defaultdict import http.server import socketserver @@ -14,7 +14,7 @@ - Polygon.io Snapshot + D3.js Treemap + Massive.com Snapshot + D3.js Treemap