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

Candle function does not work as expected.

Open ghost opened this issue 6 months ago • 0 comments

When using the Stream client candle method, the API returns:

{
  "jsonrpc": "2.0",
  "error": {
    "code": -32602,
    "message": "Unknown streamType: candle"
  },
  "id": 0
}

Here's the code that generated the issue:

stream_client.candle("BTC", "1m", |candle| {
    let candle = serde_json::to_string_pretty(&candle).unwrap();
    println!("{}", candle);
});

ghost avatar May 11 '26 13:05 ghost