Shrimpy Crypto Trading API
The Shrimpy Universal Crypto Exchange APIs connect to every major exchange. This provides a unified interface to interact with exchanges. Instead of learning the quirks and unique issues of every individual exchange, the Shrimpy Developer APIs can be used to prevent these irregularities.
Instead of managing user API keys and connections to every exchange, developers can directly store API Keys with Shrimpy and even trade on top of Shrimpy’s unified interface.
Our journey begins at the Shrimpy developer APIs.
Register for your Developer Account
Using the Shrimpy Universal Crypto Exchange API requires you to first register with the Shrimpy developer platform here. It’s free to sign up and everyone gets 10 free credits, which is enough for 10 months of testing the developer APIs.
Create Master API Keys
You will first have to create a new API Master Key to use the Shrimpy API. You must also have Multi-Factor Authentication enabled in Settings.
In the developer dashboard, select Create API Master Key. Verify your account by submitting an API Key request to your email. Complete the email request verification and return to the developer dashboard.
Under API Keys, you should now see a new set of private/public API Keys. These keys communicate with Shrimpy to create users, authorize subscriptions, and execute trades. For security reasons, you will have to verify your account through 2FA again to view the Private API Key. Copy and save both the Public Key and Private Key.
Note: Keep your public and private key secure! The master keys should never be shared with anyone. If you would like users to be able to trade on their own devices, the master keys can be used to generate user keys. The user keys are intended to be shared with users. We will discuss this in more detail in the next sections.
Within your Master API Key Settings, you will be able to add IP Whitelists and enable specific API Key functions, separated into User, Account, and Trade. Let’s go over these functions in detail.
User Settings (Create a User/User API Key)
Create a User
Before you can start trading, we need to create a user who can interact with the exchange. This is easy to do with Shrimpy!
Note: These requests are signed with the master API keys.
Create a User API Key
User API Keys can also be created for each user. Unlike Master API Keys, User API Keys are specifically designed to manage an individual user and can be shared with the associated user. This allows them to manage their own personal account with these keys by directly sending requests to Shrimpy.
Multiple exchange accounts can be linked to a single user API key. Therefore allowing one user to manage countless exchange accounts with a single user API key. This user API key can execute trades, collecting account information, or accessing full order book data across every connected exchange.
Note: These requests are signed with the master API keys
In order to complete setup for trading, we also need to link an exchange account that we’ll be using to trade. Similar to our earlier example, we’ll be using Bittrex as the exchange we want to link.
Note: These requests can be signed with the user API keys.
Connect an Exchange Account
Perfect! Now we have our user all set up. Let’s start trading!
In order to know which assets an account is holding on an exchange, we need to collect balance data. This can be done easily with Shrimpy.
Note: These requests can be signed with user API keys.
Awesome! It was that simple to get the balances for our exchange account.
Let’s see how easy it is to perform a trade with Shrimpy. We will use the following endpoint:
This endpoint provides a simple method to execute a single trade through the Shrimpy APIs. All we will need to do is specify the “from” asset, the “to” asset, and the “amount”. With this information, Shrimpy will intelligently route your trades through quote currencies (if necessary) to accomplish the trade.
Note: These requests can be signed with the user API keys.
That’s it! You have now successfully submitted a trade through Shrimpy’s Trading API. Wasn’t that a piece of cake?
Now that we’ve gone through the process to execute a trade, let’s explore some other useful endpoints that are available.
Now, you might be wondering how you can execute a trading strategy based on market data. Shrimpy can collect market data based on the complete order book or the ticker. In this example, we will look at the ticker. For order book data, please refer to our API documentation.
These endpoints should be enough to start building many applications. If you have other features you need, check out the Shrimpy APIs for additional functionality. We support limit orders, open orders, full order book data, and much more. Each of these endpoints have different use cases.
To condense and simplify all of the steps above, we created a flowchart for Shrimpy’s Crypto Trading API below.
Let’s quickly walk through the steps we took to execute our first trade with Shrimpy.
- Created a master key through the Shrimpy UI here.
- Created a user.
- Created user keys.
- Linked an exchange.
- Executed a trade.
Shrimpy offers the most advanced APIs for developers looking to integrate scalable crypto exchange trading functionality into their app.
Shrimpy’s Crypto Trading API was created as a cloud-based solution to address several crypto developer roadblocks including Exchange Trading, Product Scalability, and User Management. With Shrimpy’s API in hand, developers can focus on creating the next era of groundbreaking products that will shape the future of crypto.
Shrimpy’s API is readily compatible with the following exchanges and API endpoints: Binance API, CoinbasePro API, Bittrex API, Kraken API, Gemini API, Poloniex API, Huobi API, KuCoin API, Bibox API, BitMart API, and HitBTC API.
Traders and developers can leverage Shrimpy’s existing trading infrastructure for trading platform/app development instead of having to manage connections to each and every exchange.