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

Add pcli q simulate #2668

Merged
merged 2 commits into from
Jun 2, 2023
Merged

Add pcli q simulate #2668

merged 2 commits into from
Jun 2, 2023

Conversation

hdevalence
Copy link
Member

@hdevalence hdevalence commented Jun 2, 2023

Example output:

   Compiling pcli v0.53.0 (/Users/hdevalence/code/penumbra/penumbra/crates/bin/pcli)
    Finished release [optimized] target(s) in 23.75s
     Running `target/release/pcli -n 'http://localhost:8080' q dex simulate 100000penumbra --into test_usd`
Scanning blocks from last sync height 3423 to latest height 3423
[0s] ██████████████████████████████████████████████████       0/0       0/s ETA: 0s
100000penumbra => 93820.028565test_usd via:
    Trace                                          Subprice
    58.788mpenumbra =>       58200wtest_usd        1.010104penumbra/1test_usd
    52909.29182penumbra =>   52380.198901test_usd  1.010102penumbra/1test_usd
    70.221mpenumbra =>       61794wtest_usd        1.136373penumbra/1test_usd
    47090.579171penumbra =>  41439.70967test_usd   1.136364penumbra/1test_usd

@hdevalence hdevalence temporarily deployed to smoke-test June 2, 2023 19:13 — with GitHub Actions Inactive
@hdevalence
Copy link
Member Author

Not totally sure about the formatting of the price, that part was an afterthought, and we might want to align it with the buy/sell order syntax later, but this seems good as a first pass.

@conorsch conorsch merged commit 5f965c0 into main Jun 2, 2023
@conorsch conorsch deleted the pcli-q-simulate branch June 2, 2023 21:46
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