Universal Websockets for Real-Time Crypto Exchange Order Book Data

cyber-3400789_960_720.jpg

The Shrimpy team has been known to give away things for free. Lots of things. From our free portfolio management application to our free trading APIs for KuCoin and Coinbase, or our free real-time rest API endpoints for market data.

Everyone loves free stuff!

That’s why we are announcing the release of more free stuff today! Unlike other services which charge an arm and a leg for real-time data websockets to exchanges, Shrimpy is opening up our live websockets for everyone at no cost. Collect real-time order book data across 16 different exchanges with a unified set of APIs. 

There are no catches!

When Shrimpy says free, we mean free free. None of that gotch-ya “free”. You don’t even need to create an account or provide an email address. The endpoints are 100% public.

Why do we give away free stuff?

Cryptocurrency startups are struggling. Exchanges have become increasingly difficult to manage and developers don’t have the resources available to integrate proper solutions into their applications. Our team is on a mission to solve this growing problem. 

The Shrimpy infrastructure is designed to manage the entire exchange integration process for developers. That way we present data in uniform formats, trade execution is consistent across all exchanges, and you never need to write custom code to manage individual exchanges. 

We have more releases coming soon, so stay up to date with everything Shrimpy has to offer by joining our Developer Telegram.

Websocket Code Example

Let’s dive right into how you can start collecting data from the live Shrimpy websocket! To follow along with this example, feel free to visit the Shrimpy Developer API documentation where you can find an in-depth discussion of these features. Jump into the link here.

The Shrimpy Real-Time Order Book Websocket

Access the websocket stream at wss://ws-feed.shrimpy.io/.

Order Book Subscription

{
    "type": "subscribe",
    "exchange": "coinbasepro",
    "pair": "btc-ltc",
    "channel": "orderbook"
}

Snapshot Format

The order book channel provides the full order book for the given pair and exchange. Once subscribed, the first update will be the initial order book snapshot.

{
    "exchange": "coinbasepro",
    "pair": "btc-ltc",
    "channel": "orderbook",
    "snapshot": true,
    "content": {
        "sequence": 6784322,
        "asks": [
            {
                "price": "59.782355",
                "quantity": "3.456722"
            },
            {
                "price": "60.782355",
                "quantity": "3.456722"
            },
            ...
        ],
        "bids": [
            {
                "price": "58.782355",
                "quantity": "3.456722"
            },
            {
                "price": "56.782355",
                "quantity": "3.456722"
            },
            ...
        ]
    }
}

Update Format

The snapshot will be followed by order book updates. Updates include the full list of bid/ask data. 

{
    "exchange": "coinbasepro",
    "pair": "btc-ltc",
    "channel": "orderbook",
    "snapshot": false,
    "content": {
        "sequence": 6784322,
        "asks": [
            {
                "price": "59.782355",
                "quantity": "3.456722"
            },
            {
                "price": "60.782355",
                "quantity": "3.456722"
            },
            ...
        ],
        "bids": [
            {
                "price": "58.782355",
                "quantity": "3.456722"
            },
            {
                "price": "56.782355",
                "quantity": "3.456722"
            },
            ...
        ]
    }
}

It’s as easy as that!  

Integrate this data into your application to enable real-time full order book data for your users.

Whether you support 1 or 1,000,000 users, Shrimpy is ready to scale with you. Manage users across the 16 exchanges we support, execute smart order routing strategies, and build the future of crypto trading.

Shrimpy | Crypto Trading APIs for Developers

About Shrimpy

Shrimpy is a free application for crypto market indexing, rebalancing, and portfolio management. Begin automating your portfolio in less than 3 minutes by linking each of your exchange accounts. Shrimpy supports Binance, Bittrex, Kraken, Coinbase Pro, KuCoin, Poloniex, and more!

Shrimpy’s Universal Crypto Exchange APIs are the only unified APIs for crypto exchanges that are specifically designed for application developers. Manage user exchange accounts, execute trading strategies, collect data, and simplify the way you connect to each exchange.

CoinOrderBook is a public order book data provider for every major cryptocurrency exchange. Browse asset listings, analyze arbitrage opportunities, collect order book data, and evaluate trading pair spreads.

~The Shrimpy Team