# Connecting API to Hyperliquid

> Connect Hyperliquid to Veles using a wallet or an API wallet.

:::caution[Attention!]
Before connecting Veles, make sure that the exchange account is topped up, otherwise you will not be able to create a Binding.
:::

You can connect Hyperliquid to Veles in two ways: by using **Fast connection** or manually through an **API Wallet**.

## Fast connection

This is the **recommended option**. It is simpler, faster, and works best for most users.

  **Show video**

    [Video](https://static.veles.finance/videos/hyperliquid-connect-1-en.mp4)

1. Log in to your Hyperliquid account.

2. On another browser tab, open the [API Key management in Veles account](https://veles.finance/cabinet/account/api) and click **"Add API key"**.

3. Select "Hyperliquid Futures" exchange and your wallet.

4. Confirm both signatures: trading and extra fee deduction. This is safe: you do not share your private key with anyone.

5. New Binding will appear in the cabinet in the list and can be used in bots.

>The "Builder Fee" is an additional commission charged by the Veles platform; it is calculated based on the volume of orders executed by a bot directly on the exchange. \
Consequently, this platform commission will be reflected under the "Commission" (Exchange Fee) metric in the "Statistics" section. \
Furthermore, this does not draw from the commission counter shown in the "Balance" section of your Veles profile, and the 50 USDT/month limit no longer applies — due to the specific mechanics of the exchange.

## Manual connection

Use this method if you connect Hyperliquid through an API Wallet.

:::caution
Get ready to save your private key in a safe place (for example, in an encrypted password database). After closing the window, it will no longer be displayed.
:::

  **Show video**

  [Video](https://static.veles.finance/videos/hyperliquid-connect-2-en.mp4)

1. Create an **API Wallet** on Hyperliquid.

    **Show video**

    [Video](https://static.veles.finance/videos/hyperliquid-connect-3.mp4)

2. Copy the API wallet address and private key.

3. On another browser tab, open the [API Key management in Veles account](https://veles.finance/cabinet/account/api) and click **"Add API key"**.

4. Select "Hyperliquid Futures" exchange, switch to "Manual connection" and paste the data into the form.

5. Fill the form:
   - API wallet name
   - Main wallet address
   - API wallet address
   - API wallet private key

6. Save the connection.

7. New Binding will appear in the cabinet in the list and it can be used in bots.

:::caution
Currently, on Hyperliquid, the maximum key validity period is 180 days.
To prevent bots from stopping with an error during the deal, we recommend that you create a new key on the exchange after 5 months of using and set its parameters in the current Binding in the Veles account.
Instructions [can be found in our article](https://help.veles.finance/en/exchange/general/api/#replacing-api-key-details-in-the-binding). 
:::

:::note
The Hyperliquid exchange does not support [Hedge mode](https://help.veles.finance/en/exchange/general/position-mode/), meaning there can only be one position active on the account - either Long or Short.
:::
