Knowledge Base/Can I create multiple Massive API keys?

Can I create multiple Massive API keys?

Yes, up to 100 active keys per account, from the keys page of your dashboard. Every key on an account shares the same subscriptions and the same limits, so a second key separates your integrations without adding capacity.

What an extra Massive API key does not do is give you more capacity. Every key on an account reads the same subscriptions, so it inherits the same per-asset-class request limits and the same WebSocket connection allowance. That is why generating a second key never lifts a 429. What keys are for is separation: revoking one without touching the others.

Applies to

  • Plans: every plan, including the free Basic tier.
  • Endpoints: a key works across REST, the WebSocket clusters and the flat files, subject to the account's subscriptions.
  • Asset classes: all. Entitlement is per account, not per key.

How to manage your keys

  1. Open the keys page of your dashboard.
  2. Create a key, and name it for where it will run. The name is the only way to tell them apart later.
  3. Delete a key when the thing using it is retired. Deletion is immediate and the key stops working, so check nothing is still using it. An account holds at most 100 active keys, so deleting retired ones is housekeeping rather than a formality.

Deleting and recreating a key does not reset a rate limit or clear an entitlement problem, because neither belongs to the key. Both follow the account's subscriptions, one per asset class.

What a second key is and is not good for

A second key is good for operational separation and not for extra capacity:

What you might wantDoes a second key help?
Separate production from a local scriptYes. Revoke one without redeploying the other
Rotate credentials without downtimeYes. Add the new key, deploy, delete the old one
Know which integration is making the requestsYes, through the usage view per key
More than 5 requests a minute on an asset class you have not boughtNo. The limit follows the subscription, not the key
A second simultaneous WebSocket connectionNo. Connections are counted per account per cluster
Access to an asset class you have not subscribed toNo. Entitlement is per account

Why entitlement is per account

Entitlement is per account because subscriptions are what you buy and a key is only a credential pointing at them. That is deliberate: it means an upgrade applies to every key you already have, with nothing to regenerate or redeploy, and it means a compromised key can be deleted without disturbing the subscription.

If you see an error

{"status":"ERROR","error":"Unknown API Key"} with HTTP 401 means the key was deleted or mistyped. Copy it again from the keys page.

A 429 that persists after making a new key is the rate limit on that request's asset class, not a key problem. Check whether you hold a paid plan for the asset class you are querying.

NOT_AUTHORIZED on a new key that works on an old one is not possible, because both carry the same entitlements. Check the request rather than the key.

Related


Was this article helpful?

Modernizing Wall St.

Reimagining financial market data for the 21st century.

Schedule a demo

Talk with our market data experts

Recommended

Can't find the answer you're looking for? Contact our team.
  • Title
    Are all indices available through the basic subscription tier?
    Data Coverage Category

    Data Coverage

    Indices Category

    Indices

    Description
    No, and the ones it withholds are the famous ones: SPX, DJI, RUT and VIX all need a paid Indices tier. Basic still reaches more than 10,000 of the 13,000-odd indices Massive publishes, and NDX and the Nasdaq Composite are among them.
  • Title
    Does Massive offer dark pool data?
    Data Coverage Category

    Data Coverage

    Stocks Category

    Stocks

    Description
    Yes. Off-exchange prints, which include dark pool executions, arrive on the ordinary trades feed and are identified by an exchange ID of 4. There is no separate dark pool endpoint, and no way to tell which individual venue a print came from.
  • Title
    Does Massive offer pre-market and after-hours data?
    FAQ Category

    FAQ

    Stocks Category

    Stocks

    Description
    Yes. Every extended-hours trade and quote is published, from 04:00 to 20:00 Eastern. There is no session parameter, so you select a session with timestamps, and expect far fewer aggregate bars outside regular hours because many extended-hours trades are odd lots that cannot set a price.