hyperliquid-dex / hyperliquid-rust-sdk

MIT License
59 stars 47 forks source link

cloid request #62

Open simsim-14 opened 1 day ago

simsim-14 commented 1 day ago

Could you please change the cloid type to be "String"? It is kind of restraining to have the type of the order id to exclusively be of uuid::Uuid type, because people may want to append some identifiers to the order_id except from the random identifier.

simsim-14 commented 1 day ago

Here:

pub struct ClientOrderRequest {
    pub asset: String,
    pub is_buy: bool,
    pub reduce_only: bool,
    pub limit_px: f64,
    pub sz: f64,
    pub cloid: Option<Uuid>, <----- 
    pub order_type: ClientOrder,
}

Also for MarketCloseParams and MarketOrderParams.