How to Connect Hyperliquid to AstraBit
This guide explains how to connect your Hyperliquid account to AstraBit using API keys so the two platforms can communicate securely.
The steps cover where to find API settings on Hyperliquid, how to create and configure keys, and where to enter that information in AstraBit.
This article does not provide trading advice and is only for technical setup.
Users who register for Hyperliquid through this link for the first time are eligible for the Freemium plan, where you can earn credits based on trading volume to help reduce or cover costs associated with AstraBit products or services.
Step 1: Connect Your Wallet to Hyperliquid
- In Hyperliquid, click Connect wallet (top-right).
- Your wallet (ex: MetaMask) pops up for app.hyperliquid.xyz.
- Select the account you want to use.
- Click Connect.
✅ Result: Your wallet is connected to Hyperliquid.


Step 2: Create Your Hyperliquid Account and Fund It
- You will need to accept the Terms of Use, Privacy Policy, and Cookie Policy of Hyperliquid
- (Optional) In the referral/code field, enter: ASTRABIT
- There may be a signature request, but no gas fee will be required.
- You will then be asked to deposit USDC. We are using the Arbitrum network here.
- There will be a small (typically less than $0.01) gas fee required in the form of ETH on Arbitrum.
- Once confirmed, you deposit will appear shortly. It can be affected by network fees, congestion, platform activity, etc.
✅ Result: Your Hyperliquid trading account is created and USDC deposited.



Step 3: Toggle Unified Account Mode
- This is critically important
- Click on the wheel icon to open additional settings
- Click to toggle “Disable Unified Account Mode”
- This will allow you to transfer your USDC
✅ Result: You can transfer USDC from Spot to Perps

Step 4: Transfer USDC from Spot to Perps Account
- Under the Deposit button on the right side, click on the Spot/Perps button
- Enter the amount of USDC you want to transfer and click Confirm
- Your USDC will be moved into your Perps account and can now be used for trading.
- If you do not do this step, your funds will not show in the API section or be able to be used for trading via AstraBit.

Step 5: Create an API in Hyperliquid
- Under ‘More’ at the top, select ‘API’
- Click on ‘Generate’ on the right hand side to generate an API wallet address. Then click on ‘Authorize Wallet’.
- NOTE: You will not need this address, but it is required to create the API.
- Name your API whatever you want to.
- Copy your Private Key in a safe location.
- Set ‘Days Valid’ to MAX (180 days) or to the amount of days you want it to be valid.
- NOTE: Once the API has expired, you will need to create a new one and update your trading bot.


Step 6: Connect the API in AstraBit
- In the Nexus API Manager, click on ‘Connect New API’ and select Hyperliquid from the drop-down menu.
- Name it whatever you want.
- Contract Type: leave default
- Position Mode: leave default or select Force one way
- Margin Type: leave default or select Force Cross Margin or Force Isolated Margin
- Main Wallet Address: this is your MetaMask (or whichever) wallet address you used to connect to Hyperliquid
- Private Key: paste in the private key generated on Hyperliquid
- Trusted IPs: if Hyperliquid allows it, you can add these IPs during API creation
- Once all of the information is there, click ‘Connect’
- You will see it succesfully added to the API Manager dashboard
- It is now ready to be used to create a crypto trading bot.


- AstraBit: Can NOT withdraw funds.
- AstraBit: Can NOT transfer funds.
- AstraBit: ONLY executes trades via API permissions.