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.

Important Hyperliquid Configuration

For AstraBit to correctly detect your balance and execute trades, your Hyperliquid account must be configured as follows:
  • Account Type: Manual
  • Funds Location: Perps rather than Spot
Accounts configured differently may display a 0 balance in AstraBit or prevent trades from executing.

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.

Step 3: Configure Your Hyperliquid Account Type

Toggle Unified Account Mode

AstraBit requires Hyperliquid accounts to use the Manual account type.

  1. Navigate to. your Hyperliquid Portfolio settings
  2. Click on the wheel icon to open additional settings
  3. Locate the Account Type setting and select Manual
  4. Click to toggle “Disable Unified Account Mode”
  5. This will allow you to transfer your USDC
  6. Save any changes

Result: Your Hyperliquid account is configured for AstraBit compatibility.

Accounts configured as Unified Account or Portfolio Margin may not display balances correctly in AstraBit.

hyperliquid unified account mode
Hyperliquid settings dropdown showing trading, layout, and advanced options including the checkbox to disable Unified Account Mode.

Step 4: Transfer USDC from Spot to Perps Account

  1. Under the Deposit button on the right side, click the Spot / Perps button.
  2. Enter the amount of USDC you want to transfer and click Confirm
  3. Enter the amount of USDC you want to transfer.
  4. Click Confirm.

Your USDC will be moved into your Perps account and can now be used for trading through AstraBit.

Result: Your funds are available for AstraBit trading strategies.

Funds must be held in Perps. Funds remaining in Spot may not be visible within AstraBit and may prevent trade execution.

Hyperliquid ‘Transfer USDC’ pop‑up showing a transfer of 550 USDC from the Spot balance to the Perps balance with a Confirm button.

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.

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.

Troubleshooting: Hyperliquid Balance Showing 0 in AstraBit

If AstraBit displays a balance of 0 even though funds are visible in Hyperliquid:

  1. Verify your account type is set to Manual
  2. Verify your funds are held in Perps
  3. Refresh your AstraBit exchange connection
  4. Reconnect the Hyperliquid API if necessary

If the issue persists, contact AstraBit Support and include screenshots of:

  • Portfolio page
  • Account Type settings
  • Balance location (Perps)

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 .