Exchange

Market Data Connections

Web Socket Market Data

Effective June 17, 2024, Coinbase Exchange will be implementing changes to WebSocket market data connections: 

  • Exchange accounts will be limited to ten duplicate WebSocket subscriptions on a per product, per channel basis. Users can purchase higher duplicate subscription limits if desired

  • All WebSocket subscription requests will be subject to a connection rate limit of 10 RPS / 1000 burst RPS

These adjustments will help us maintain the integrity and efficiency of our platform, while continuing to maintain fair data access.

We will be offering subscription tiers for Exchange users to purchase higher duplicate subscription limits. Starting June 17th, users will be able to subscribe and adjust their tier within a new Exchange data subscription user interface in the Coinbase Developer Platform.

If a user attempts to exceed 10 duplicate subscriptions and is not a member of a paid subscription tier, the new subscription will be rejected.


Latest Updates

Coinbase Exchange will not be following through with the changes to Level 2 channels that were previously communicated as a part of these changes. 


FAQs

How many market data connections can I have? 

Effective June 17, 2024, Coinbase Exchange accounts are limited to ten duplicate WebSocket subscriptions on a per product, per channel basis. Users can purchase a higher duplicate subscription limit if desired. If a user attempts to exceed 10 duplicate subscriptions and is not a member of a paid subscription tier, the new subscription will be rejected.

Note: this change only applies to WebSocket market data feeds.

What is a duplicate subscription?

  • A duplicate subscription is defined on a per product, per channel basis

  • Below is an example of a total of 4 duplicate subscriptions for BTC-USD full

    • User123: BTC-USD full (duplicate)

    • User123: BTC-USD full (duplicate)

    • User123: BTC-USD full (duplicate)

    • User123: BTC-USD full (duplicate)

    • User123: BTC-USD Level 2 (unique)

    • User123: BTC-USD Level 3 (unique)

  • In this case, User123 has 6 remaining subscriptions to BTC-USD full channel, and 9 remaining subscriptions to BTC-USD Level 2 and Level 3 channels.

How do I pay for these subscriptions?

A new Exchange data subscription user interface will be launched in the Coinbase Developer Platform for users to manage their subscriptions tiers. Users will use the Coinbase Developer Platform website to enter payment information. After adding a payment method, users will be able to select their subscription tier. If a user wishes to unsubscribe from higher limits, they must change their subscription in the Coinbase Developer Platform UI.

What are the fees if I need more than ten connections? 

Below are the prices for enhanced duplicate subscription limits.

Duplicate Subscription Limit

Cost Per Month

10 (Default)

$0

15

$250

25

$1,000

50

$2,000

100

$3,500

250

$6,500

500

$10,000

What is the rate limit being introduced for WebSocket connections?

All WebSocket subscription requests will be subject to a connection rate limit of 10 RPS / 1000 burst RPS. This rate limit will be enforced at the user level, regardless of IP or API key.


What is the difference between the two rate limits of 10 RPS and 1000 RPS?

  • Similar to our other lazy-fill token bucket rate limits, a user will start with 1000 subscription requests and can consume them instantly

  • Requests refresh at a rate of 10 RPS and max out at 1000 requests again

  • In practice, a user could use all 1000 requests in one second (0 left), then wait another second to generate 10 more (10 requests now), then fire those instantly (back to 0 requests). If they choose, they can wait 100 seconds to refresh all 1000 requests

  • This should not be confused with a subscription rate limit, as users can subscribe to multiple channels within the same subscription request. The theoretical subscription rate limit is much higher


Upon a market data redeploy by Coinbase Exchange, I have to reconnect many more subscriptions beyond 1000 RPS. Will I no longer be able to do this?

  • Users will maintain the ability to reconnect all subscriptions upon a redeploy or at their choosing

  • A user can submit a subscription request for multiple products and multiple channels in the same request. This means that reconnecting all subscriptions can be done in one request, far below the new rate limit

Do Liquidity Program members have a higher rate limit on WebSocket connections?

No. This is a global change for Exchange accounts.