deribit_base/model/
mod.rs

1/******************************************************************************
2   Author: Joaquín Béjar García
3   Email: jb@taunais.com
4   Date: 21/7/25
5******************************************************************************/
6
7//! Data models and structures for Deribit API
8//!
9//! This module contains all the data structures and types used across
10//! the Deribit API implementations. These models are protocol-agnostic
11//! and can be used with FIX, HTTP REST, and WebSocket clients.
12//!
13//! The models are organized by functional areas:
14//! - Account and portfolio management
15//! - Trading (orders, positions, trades)
16//! - Market data (tickers, order books, instruments)
17//! - Configuration and requests/responses
18//! - Settlements and transfers
19
20/// Account-related data structures and types
21pub mod account;
22/// Book summary and market overview structures
23pub mod book_summary;
24/// Configuration structures
25pub mod config;
26/// Currency enumeration and utilities
27pub mod currency;
28/// Extended market data structures
29pub mod extended_market_data;
30/// Funding-related data structures and types
31pub mod funding;
32/// Instrument-related data structures and types
33pub mod instrument;
34/// Market data structures
35pub mod market_data;
36/// Options-related data structures and types
37pub mod options;
38/// Order-related data structures and types
39pub mod order;
40/// Order management operations and requests
41pub mod order_management;
42/// Position-related data structures and types
43pub mod position;
44/// Request structures for API calls
45pub mod request;
46/// Response structures and wrappers
47pub mod response;
48/// Settlement and delivery data structures
49pub mod settlement;
50/// Ticker data structures
51pub mod ticker;
52/// Trade-related data structures and types
53pub mod trade;
54/// Transaction history and ledger data structures
55pub mod transaction;
56/// Transfer and withdrawal data structures
57pub mod transfer;
58
59pub use funding::{FundingChartData, FundingDataPoint, FundingRateData, TradingViewChartData};
60pub use order_management::{
61    BuyOrderRequest, EditOrderRequest, MassQuoteItem, MassQuoteRequest, SellOrderRequest,
62    TransferResult,
63};
64pub use transaction::{
65    Deposit, DepositsResponse, TransactionLog, TransactionLogEntry, TransactionType, Withdrawal,
66    WithdrawalsResponse,
67};