hyperliquid-sdk
hyperliquid-sdk copied to clipboard
Candle function does not work as expected.
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);
});