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

Reworks the Buy/Sell order api to support creating multiple identical positions #4817

Closed
wants to merge 1 commit into from

Conversation

zmanian
Copy link
Contributor

@zmanian zmanian commented Aug 15, 2024

Reworks the position creation flow to support creating multiple identical positions in a single command/ planner execution. This is useful to me for creating limit order orders using auto close positions so they can be filled piecewise.

… positions.

This is especially useful for limit orders because it allows them to be filled piece wise.
@@ -8,7 +8,7 @@ use penumbra_dex::{
},
TradingPair,
};
use rand_core::CryptoRngCore;
use rand_core::OsRng;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we might not be able to make this use a generic RNG for easier testing

@@ -104,6 +104,9 @@ pub enum OrderCmd {
/// The selected fee tier to multiply the fee amount by.
#[clap(short, long, default_value_t)]
fee_tier: FeeTier,
/// Duplicate the order for the given number of times.
#[clap(short, long, default_value = "1")]
duplicate: u32,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should change this to something starting with n to match the dutch auctions

@cronokirby cronokirby mentioned this pull request Aug 15, 2024
1 task
@cronokirby
Copy link
Contributor

closing in favor of #4819

@cronokirby cronokirby closed this Aug 15, 2024
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

Successfully merging this pull request may close these issues.

2 participants