Module model

Module model 

Source
Expand description

Data models for orders, positions, and other trading entities Data models and structures for Deribit API

This module contains all the data structures and types used across the Deribit API implementations. These models are protocol-agnostic and can be used with FIX, HTTP REST, and WebSocket clients.

The models are organized by functional areas:

  • Account and portfolio management
  • Trading (orders, positions, trades)
  • Market data (tickers, order books, instruments)
  • Configuration and requests/responses
  • Settlements and transfers

Re-exports§

pub use funding::FundingChartData;
pub use funding::FundingDataPoint;
pub use funding::FundingRateData;
pub use funding::TradingViewChartData;
pub use order_management::BuyOrderRequest;
pub use order_management::EditOrderRequest;
pub use order_management::MassQuoteItem;
pub use order_management::MassQuoteRequest;
pub use order_management::SellOrderRequest;
pub use order_management::TransferResult;
pub use transaction::Deposit;
pub use transaction::DepositsResponse;
pub use transaction::TransactionLog;
pub use transaction::TransactionLogEntry;
pub use transaction::TransactionType;
pub use transaction::Withdrawal;
pub use transaction::WithdrawalsResponse;

Modules§

account
Account-related data structures and types
book_summary
Book summary and market overview structures
config
Configuration structures
currency
Currency enumeration and utilities
extended_market_data
Extended market data structures
funding
Funding-related data structures and types
instrument
Instrument-related data structures and types
market_data
Market data structures
options
Options-related data structures and types
order
Order-related data structures and types
order_management
Order management operations and requests
position
Position-related data structures and types
request
Request structures for API calls
response
Response structures and wrappers
settlement
Settlement and delivery data structures
ticker
Ticker data structures
trade
Trade-related data structures and types
transaction
Transaction history and ledger data structures
transfer
Transfer and withdrawal data structures