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

  1. In Hyperliquid, click Connect wallet (top-right).
  2. Your wallet (ex: MetaMask) pops up for app.hyperliquid.xyz.
  3. Select the account you want to use.
  4. Click Connect.

✅ Result: Your wallet is connected to Hyperliquid.


Screenshot of the Hyperliquid trading interface showing the HYPE/USDC market with a candlestick price chart on the left and order book with buy and sell panel on the right.
Connect wallet pop‑up on the Hyperliquid trading screen showing options to log in with email, MetaMask, WalletConnect, OKX Wallet, or Coinbase Wallet.

Step 2: Create Your Hyperliquid Account and Fund It

  1. You will need to accept the Terms of Use, Privacy Policy, and Cookie Policy of Hyperliquid
  2. (Optional) In the referral/code field, enter: ASTRABIT
  3. There may be a signature request, but no gas fee will be required.
  4. You will then be asked to deposit USDC. We are using the Arbitrum network here.
  5. There will be a small (typically less than $0.01) gas fee required in the form of ETH on Arbitrum.
  6. 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.


Hyperliquid trading screen with a Terms of Use, Privacy Policy, and Cookie Policy pop‑up asking the user to review and accept before enabling trading.
Hyperliquid trading screen with a ‘Deposit USDC from Arbitrum’ pop‑up showing asset, deposit chain, and amount fields before funding the account.
Hyperliquid deposit flow showing a ‘Sign Transactions’ prompt on the trading screen and a connected wallet window asking the user to confirm a USDC deposit on Arbitrum.
If you experience any problems, contact support by email or submit a ticket through Discord .

Step 3: Toggle Unified Account Mode

  1. This is critically important
  2. Click on the wheel icon to open additional settings
  3. Click to toggle “Disable Unified Account Mode”
  4. This will allow you to transfer your USDC

✅ Result: You can transfer USDC from Spot to Perps


Hyperliquid settings dropdown showing trading, layout, and advanced options including the checkbox to disable Unified Account Mode.
If you experience any problems, contact support by email or submit a ticket through Discord .

Step 4: Transfer USDC from Spot to Perps Account

  1. Under the Deposit button on the right side, click on the Spot/Perps button
  2. Enter the amount of USDC you want to transfer and click Confirm
  3. Your USDC will be moved into your Perps account and can now be used for trading.
  4. 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.

Hyperliquid ‘Transfer USDC’ pop‑up showing a transfer of 550 USDC from the Spot balance to the Perps balance with a Confirm button.
If you experience any problems, contact support by email or submit a ticket through Discord .

Step 5: Create an API in Hyperliquid

  1. Under ‘More’ at the top, select ‘API’
  2. 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.
  3. Name your API whatever you want to.
  4. Copy your Private Key in a safe location.
  5. 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.

Hyperliquid API page showing the API wallet configuration screen with the top navigation ‘More’ menu expanded and the API option highlighted.
Hyperliquid ‘Authorize API Wallet’ pop‑up showing fields for API wallet name, address, days valid, and a warning to save the generated private key before authorizing.
If you experience any problems, contact support by email or submit a ticket through Discord .

Step 6: Connect the API in AstraBit

  1. 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
  2. Once all of the information is there, click ‘Connect’
  3. You will see it succesfully added to the API Manager dashboard
  4. It is now ready to be used to create a crypto trading bot.

AstraBit ‘Connect Hyperliquid API’ form showing fields for custom API name, contract type, position mode, margin type, main wallet address, private key, and trusted IPs.
AstraBit Nexus API Manager showing a connected Hyperliquid demo account with 550 USDC available and a prompt to create your trading bot.
Security Reminder
  • AstraBit: Can NOT withdraw funds.
  • AstraBit: Can NOT transfer funds.
  • AstraBit: ONLY executes trades via API permissions.
If you experience any problems, contact support by email or submit a ticket through Discord .