Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloid request #62

Open
simsim-14 opened this issue Oct 6, 2024 · 1 comment
Open

cloid request #62

simsim-14 opened this issue Oct 6, 2024 · 1 comment

Comments

@simsim-14
Copy link

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
Copy link
Author

simsim-14 commented Oct 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant