Skip to content

Apply two-sided bid-ask spread so BYC par sits inside the book - #199

Merged
hoffmang9 merged 1 commit into
mainfrom
feat/byc-two-sided-spread
Aug 12, 2026
Merged

hoffmang9 merged 1 commit into
mainfrom
feat/byc-two-sided-spread

Conversation

@hoffmang9

Copy link
Copy Markdown
Owner

Summary

  • Two-sided markets now apply strategy_target_spread_bps as a full bid-ask around mid (buy below, sell above) via MarketConfig::quote_price_for_side.
  • byc_two_sided_wusdbc is mid 1.0 + 20 bps, so 1.0 sits inside the book (bid 0.999 / ask 1.001).
  • Sell-only configs omit the unused field; PlannedAction / StrategyConfig no longer carry dead target_spread_bps.

Test plan

  • Unit tests: spread math, two-sided vs sell-only, offer terms, unique-maker buy clip, reservation amounts
  • Rebuild and restart greenfloord on john-deere
  • After listing expiry (~30 min), confirm Dexie BYC/wUSDC.b quotes at 0.999 bid / 1.001 ask

@hoffmang9
hoffmang9 merged commit 666b7ff into main Aug 12, 2026
3 checks passed
@hoffmang9
hoffmang9 deleted the feat/byc-two-sided-spread branch August 12, 2026 23:19
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.

1 participant