https://github.com/logarithm-labs/go-hyperliquid
A golang SDK for Hyperliquid PerpDEX.
https://github.com/logarithm-labs/go-hyperliquid
api exchange go golang hyperliquid sdk sdk-golang
Last synced: 8 months ago
JSON representation
A golang SDK for Hyperliquid PerpDEX.
- Host: GitHub
- URL: https://github.com/logarithm-labs/go-hyperliquid
- Owner: Logarithm-Labs
- License: apache-2.0
- Created: 2024-05-16T11:34:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T19:05:21.000Z (about 1 year ago)
- Last Synced: 2025-06-08T04:43:00.977Z (12 months ago)
- Topics: api, exchange, go, golang, hyperliquid, sdk, sdk-golang
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 55
- Watchers: 1
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-hyperliquid
A golang SDK for Hyperliquid API.
# API reference
- [Hyperliquid](https://app.hyperliquid.xyz/)
- [Hyperliquid API docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api)
- [Hyperliquid official Python SDK](https://github.com/hyperliquid-dex/hyperliquid-python-sdk)
# How to install?
```
go get github.com/Logarithm-Labs/go-hyperliquid/hyperliquid
```
# Documentation
[](https://pkg.go.dev/github.com/Logarithm-Labs/go-hyperliquid/hyperliquid#section-documentation)
# Quick start
```
package main
import (
"log"
"github.com/Logarithm-Labs/go-hyperliquid/hyperliquid"
)
func main() {
hyperliquidClient := hyperliquid.NewHyperliquid(&hyperliquid.HyperliquidClientConfig{
IsMainnet: true,
AccountAddress: "0x12345", // Main address of the Hyperliquid account that you want to use
PrivateKey: "abc1234", // Private key of the account or API private key from Hyperliquid
})
// Get balances
res, err := hyperliquidClient.GetAccountState()
if err != nil {
log.Print(err)
}
log.Printf("GetAccountState(): %+v", res)
}
```