# Hyperliquid

Integrating your Hyperliquid account with K3 Labs allows you to automate perpetual trading directly from your Hyperliquid wallet using K3 workflows. This setup is designed for secure execution of market orders, enabling seamless and programmatic access to Hyperliquid’s trading infrastructure.

**How to Set It Up**

1\. Generate API Credentials on Hyperliquid

* Go to [Hyperliquid API Portal](https://app.hyperliquid.xyz/API)
* Follow the instructions to generate a new API key
* Once created, you’ll receive two key items:
  * mainWalletPubkey (your public wallet address)
  * apiSecretKey (your private API secret)

> 🔒 Important: Store your secret key securely. It is only shown once.

<figure><img src="/files/dbPY8EviyPIdW8yxr3vL" alt=""><figcaption></figcaption></figure>

***

2\. Connect to K3 Labs

* Go to the Integrations tab in K3 Labs
* Locate the Hyperliquid section
* Paste the following:
  * mainWalletPubkey → into the mainWalletPubkey field
  * apiSecretKey → into the apiSecretKey field

<figure><img src="/files/sSZrK4oys3KeL1nnQHhO" alt=""><figcaption></figcaption></figure>

Click Connect to enable the integration.

***

#### What This Enables

Once connected, you’ll be able to use your Hyperliquid account to execute buy and sell orders directly within K3 workflows — completely automated and programmable. No manual trading needed.

Note:

* K3 only supports market orders through this integration
* Deposits and withdrawals must be done manually via the Hyperliquid platform
* Permissions are strictly limited to trade execution only


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.k3-labs.com/introduction/integrations/hyperliquid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
