Skip to content

Instantly share code, notes, and snippets.

@shanev
Created May 10, 2022 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanev/3b6967963fc3cc18c8c8ec48295e7a64 to your computer and use it in GitHub Desktop.
Save shanev/3b6967963fc3cc18c8c8ec48295e7a64 to your computer and use it in GitHub Desktop.
params.trading_fee_percent = trading_fee_bps
.map(Decimal::percent)
.unwrap_or(params.trading_fee_percent);
params.ask_expiry = ask_expiry.unwrap_or(params.ask_expiry);
params.bid_expiry = bid_expiry.unwrap_or(params.bid_expiry);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment