hyperliquid-sdk icon indicating copy to clipboard operation
hyperliquid-sdk copied to clipboard

Hyperliquid SDK

Results hyperliquid-sdk issues
Sort by recently updated
recently updated
newest added

### Problem Today the only way to authorize state-changing actions (orders, cancels, modify, withdraw, etc.) is `WithPrivateKey`, which loads a raw private key into the SDK process and signs in-process...

When using the `Stream` client `candle` method, the API returns: ```json { "jsonrpc": "2.0", "error": { "code": -32602, "message": "Unknown streamType: candle" }, "id": 0 } ``` Here's the code...

### Overview - `hypercore-grpc-examples` [defines a `start_block`](https://github.com/quiknode-labs/hypercore-grpc-examples/blob/7a2f8bb07a2879c44da0ae48d61145a709918e6d/proto/hyperliquid.proto#L26), allowing a client to resume streaming from a specific block after a disconnect - The SDK's bundled pro definitions skips field 2 entirely...

```go package main import ( "fmt" "os" "time" "github.com/quiknode-labs/hyperliquid-sdk/go/hyperliquid" ) func main() { endpoint := "https://x.quiknode.pro/TOKEN" sdk, err := hyperliquid.New(endpoint, hyperliquid.WithPrivateKey(os.Getenv("PRIVATE_KEY"))) if err != nil { panic(err) } info :=...