Skip to content

Commit

Permalink
Create hyperliquid_guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord authored Aug 5, 2024
1 parent 9a544ee commit 3cee7dd
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docs/hyperliquid_guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## Quick Guide for Passivbot on Hyperliquid

### Hyperliquid account creation

1. Go to https://app.hyperliquid.xyz/ and create an account by connecting a third party wallet wallet (more secure) or using email (less secure).
2. Click the "Deposit" button to transfer USDC (not USDT, USDC.E or any other stablecoin) via the Arbitrum network to your account's address.
3. Navigate to "More" -> "API" and follow instructions to create an API wallet (agent wallet).

### Passivbot setup

1. If not already installed, install Passivbot. Otherwise, pull latest master branch: `git pull`.
2. Update the requirements:
```bash
pip install -r requirements.txt
```
3. Add your Hyperliquid wallet address and API wallet to `api-keys.json`:
```json
"hyperliquid_01": {
"exchange": "hyperliquid",
"wallet_address": "YOUR_USDC_PUBLIC_WALLET_ADDRESS",
"private_key": "API_PRIVATE_KEY",
"is_vault": false
}
```
For the `"private_key"`, use the API wallet created in the API section on Hyperliquid.

Now Passivbot may be run as normal. Note that Hyperliquid has a minimum $10 order size.

#### HyperLiquid with a Vault (CopyTrading-like)
1. In HyperLiquid, navigate to "Vaults" in the top menu and create a new vault.
2. Set the name and description (limited to 250 characters).
3. To find the wallet address of the vault, navigate to "Vaults" again and find your vault in the public vault list.
4. Click on your vault and get the public address of the vault. This address will be your `YOUR_VAULT_PUBLIC_ADDRESS` in `api-keys.json`. Remember to set `"is_vault"` to true.

Update `api-keys.json`:
```json
"hyperliquid_01": {
"exchange": "hyperliquid",
"wallet_address": "YOUR_VAULT_PUBLIC_ADDRESS",
"private_key": "API_PRIVATE_KEY",
"is_vault": true
}
```

Refer to Hyperliquid's documentation for more details.

0 comments on commit 3cee7dd

Please sign in to comment.