logo
arrow
Przewodnik
/
Szczegóły
How to Create an API Key on Hyperliquid Perp DEX
Opublikowano 28/10/2025 09:11:43
Clock Icon3 Minutes

How to Create an API Key on Hyperliquid

Follow these quick steps to set up your API wallet and start connecting to the Hyperliquid API.


Step 1. Open the API Page

Go to https://app.hyperliquid.xyz/API
Connect your wallet (MetaMask or WalletConnect).


Step 2. Create a New API Wallet

  1. Click “Create API Wallet”

  2. Enter a Wallet Name (e.g., hyra-copy-bot)

  3. Click “Generate Wallet” — a new API Wallet Address will appear.


Step 3. Save Your Private Key

You’ll see a Private Key that starts with 0x... (like in the screenshot).

Important:

  • Copy and store your private key securely (in a password manager or encrypted note).

  • Once you leave the page, it cannot be recovered.

  • If lost, you’ll need to create a new API Wallet.


Step 4. Authorize the API Wallet

  1. Choose Days Valid (how long your API wallet remains active — select MAX if unsure).

  2. Click “Authorize.”

  3. Confirm the MetaMask signature → your API wallet is now active.


Step 5. Start Using the API Key

Once authorized, you can:

  • Access market and user data via the /info endpoint

  • Place and manage orders using the /exchange endpoint

  • Connect the wallet to trading bots or analytics tools!

Official Docs: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api


Step 6. Security Tips

  • Never share your private key.

  • Keep the key’s validity short and use it only on secure servers.

  • If compromised, Remove the API Wallet and generate a new one immediately.