Skip to content

v0.3.0 - Block Trade, Combo Books, and Wallet Models

Choose a tag to compare

@joaquinbejar joaquinbejar released this 06 Mar 18:45
· 7 commits to main since this release
cd66d7e

πŸš€ deribit-base v0.3.0

A major release with new model types for Block Trade, Combo Books, and Wallet API categories, plus dependency updates and documentation improvements.

✨ New Features

Block Trade Models (src/model/block_trade.rs)

  • BlockTradeRole β€” Maker/taker role enumeration
  • BlockTradeLeg β€” Single trade leg in a block trade
  • VerifyBlockTradeRequest β€” Signature verification request
  • BlockTradeSignature β€” Signature response structure
  • ExecuteBlockTradeRequest β€” Block trade execution request
  • BlockTrade β€” Executed block trade representation
  • BlockTradeExecution β€” Individual trade within a block

Combo Books Models (src/model/combo.rs)

  • ComboState β€” RFQ/active/inactive state enumeration
  • ComboLeg β€” Instrument leg with direction multiplier
  • ComboTradeLeg β€” Trade leg for combo creation
  • CreateComboRequest β€” Combo creation request
  • ComboDetails β€” Full combo instrument details
  • ComboIds β€” List of combo identifiers

Wallet Models (src/model/wallet.rs)

  • WithdrawalState β€” Withdrawal state enumeration (unconfirmed/confirmed/cancelled/completed/interrupted/rejected)
  • WithdrawalPriority β€” BTC withdrawal priority levels
  • DepositAddress β€” Deposit address response structure
  • WithdrawalRequest β€” Withdrawal submission request
  • DepositId β€” Deposit identification for clearance operations
  • ClearanceOriginator β€” Compliance originator information
  • ClearanceState β€” Deposit clearance state enumeration

Market Data Models (src/model/market_data.rs)

  • MarkPricePoint β€” Mark price data point
  • MarkPriceHistory β€” Historical mark price data
  • TradeVolume β€” Trade volume statistics
  • VolatilityIndexCandle β€” Volatility index candle data
  • VolatilityIndexData β€” Volatility index data
  • IndexType β€” Index type enumeration

Order Management Extensions (src/model/order_management.rs)

  • LinkedOrderType β€” OTO/OCO/OTOCO linked order types
  • TriggerFillCondition β€” Trigger fill condition enumeration
  • Extended BuyOrderRequest with advanced order options

πŸ”§ Changes

Dependencies Updated

  • Bumped Rust edition to 2024
  • Updated rand from 0.9 to 0.10
  • Updated actions/checkout from 2 to 6
  • Updated codecov/codecov-action from 4 to 5

CI/CD Improvements

  • Added Dependabot configuration for automated dependency updates
  • Cargo and GitHub Actions dependencies are now automatically monitored

Documentation

  • Added documentation for 32 previously undocumented items
  • All public methods in OptionInstrumentPair now have /// docs
  • All fields in BuyOrderRequest now documented
  • LinkedOrderType and TriggerFillCondition enums fully documented

Bug Fixes

  • Fixed OrderSide enum serde renames and as_str() method (thanks @aaaronme!)
  • Fixed rand 0.10 API compatibility (use RngExt for random())

πŸ“Š Quality Metrics

  • 377 tests passing βœ…
  • Zero clippy warnings βœ…
  • Zero compilation warnings βœ…
  • Complete documentation coverage βœ…

πŸ™ Contributors

Special thanks to the contributors who helped make this release possible:

πŸ“¦ Installation

[dependencies]
deribit-base = "0.3.0"

πŸ”— Links