KuCoin
A comprehensive guide on how to generate your API keys on KuCoin!

Note: This guide will walk through how to create an API Key for both Margin/Spot accounts and Futures accounts, as the process is largely the same. Please note that KuCoin separates these into two accounts, therefore you will need to create one API key for Margin/Spot and one API key for Futures.
Step One: Log in to your Kucoin account at https://www.kucoin.com/

Step Two: After signing in, select your profile icon in the top right corner, then select API Management from the dropdown.

Step Three: Select the correct API to add, then select "Create API"
Specific to Kucoin, you will need to choose whether you are creating an API for your Spot/Margin account, or an API for your Futures account. The process will be the same for both, but please ensure you have selected the correct account - be aware that if you are trading both Spot/Margin and Futures, you will need to run two separate APIs to capture complete data.

Step Four: Enter your API key parameter information
You will be prompted to create a new API Key. In "API Name", enter a label for your key. In our example we chose to make it “How To Guide”. We recommend making the label as descriptive as possible to reflect the use case of the specific API.
KuCoin also requires you to enter an API Passphrase - do NOT enter a passphrase you have used anywhere else, as you will need to enter this into the Hash Data tool later.
Next, verify that API restrictions are correct - by default, KuCoin will select "General" which contains all Read-Only functionality. This is perfect, so ensure you do NOT select Trade or Transfer. It is important to double-check at this stage as the Hash Data tool will deny the API key if any trading functions are enabled.
Finally, ensure the IP Restriction is set to "No" and the period of validity is set to Permanent, as otherwise our tool will not be able to pull information from the API.
Once you are comfortable with all the information shown, hit "Next"

Step Five: Complete the 2FA authentication when prompted, then check your email
KuCoin will email you asking for approval to create the API key. Check for this verification email (typically takes around two minutes to arrive). As a note, KuCoin emails are formatted using tables that your email browser may not like, resulting in emails that look like the example below - do not be concerned, as the Activate API button should still be visible.
Once you are happy with the permissions, click the "Activate API" in the email- you will be re-directed back to the KuCoin webpage.

Step Six: Record your API keys and verify permissions once more
This next screen will display your API keys - be sure to record your Secret Key in a secure location, as this key will be permanently hidden once the page is refreshed. Also take this time to conduct your final check to ensure that the "API Restrictions" states "General", and that this key has a Permanent validity. Once recorded, be sure to hit "Confirm".

Step Seven: Enter your API keys into the Hash Data tool
Log into the Client Portal of the Hash Data tool, then navigate down to Exchange Accounts (1), selected Add Exchange (2), then enter your keys (and passphrase) where prompted (3). As reference, the "Key" from KuCoin is the "" in the Hash Data tool.

Step Eight: Click "Test Keys" and let that complete.
If the test sends an error in response, please re-review the information entered and the permissions associated with the API key. The software has a number of checks in place to prevent users from uploading keys with "Edit" capabilities, so this is the most common source of errors.
Once the keys are tested and no errors are noted, click "Submit".
Congratulation - the Hash Data tool is now able to read your exchange account!
If you are looking for information on how to process information from your exchange account and begin running reports from this balance, please proceed to the User Guide!
For any questions, please reach out to Support@HashData.co for additional assistance.

Last updated