Skip to content

Represent orders as strings#6

Open
zbuc wants to merge 1 commit into
mainfrom
string_orders
Open

Represent orders as strings#6
zbuc wants to merge 1 commit into
mainfrom
string_orders

Conversation

@zbuc

@zbuc zbuc commented May 12, 2023

Copy link
Copy Markdown
Contributor

Breaks for some exchange rates, e.g.

500000test_usd@0.000037874218583856456test_btc/100bps

@conorsch

Copy link
Copy Markdown
Member

N.B. we are not merging this PR for Testnet 52 (penumbra-zone/penumbra#2415); we'll revisit it after release, and decide whether to resolve conflicts and pull it in.

Comment thread src/trader.rs
Comment thread src/trader.rs
tracing::info!(?sell_pos1, "opening sell position");
plan = plan.position_open(sell_pos1);

let sell_order2 = format!(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Consider making this a buy order, that way you don't have to invert the midprice, and it's clear that osiris opens a buy + sell to quote each side!

Comment thread src/trader.rs
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.

3 participants