#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used))]
pub mod atomic_file;
pub mod benchmark;
pub mod clock;
pub mod contract;
pub mod error;
pub mod event;
pub mod fee;
pub mod file_lock;
pub mod fill_apply;
pub mod identity;
pub mod ledger;
pub mod numeric;
pub mod order;
pub mod order_group;
pub mod performance;
pub mod retry;
pub mod sourcing;
pub mod target;
pub mod trading;
pub mod trading_policy;
pub mod valuation;
pub mod venue;
pub use self::benchmark::{
benchmark_relative_metrics, benchmark_relative_metrics_from_columns, BenchmarkRelativeMetrics,
};
pub use self::clock::Ts;
pub use self::contract::{ContractConcept, CONTRACT_MATRIX};
pub use self::error::{
classify_ccxt_category, classify_ccxt_exception, CcxtErrorClassification, ErrorCode,
ErrorContract, QxError, QxResult, Retryability,
};
pub use self::event::{
event_source_kind, AccountBalance, AccountCashflow, AccountPositionSnapshot, CashflowKind,
Event, EventContext, EventKind, EventMetadata, ExactAccountBalanceAmounts,
ExactAccountPositionAmounts, ExactOhlcv, ExecutionCapabilityDecisionFact,
ExecutionCapabilityDecisionKind, FundingRateSnapshot, MarketDepthLevel, OrderRiskDecisionFact,
Priority, StrategyDecisionFact, StrategyIntentFact, EVENT_METADATA_SCHEMA_VERSION,
EXECUTION_CAPABILITY_DECISION_SCHEMA_VERSION,
};
pub use self::fee::{
bp_amount, bp_amount_checked, notional, AShareFeeModel, FeeModel, MakerTakerFeeModel,
MakerTakerFeeSchedule, ZeroFeeModel, DEFAULT_MAKER_BP, DEFAULT_TAKER_BP,
};
pub use self::file_lock::{
decide_lock, lock_age, lock_contention_message, FileLock, LockDecision, LockError, LockPolicy,
DEFAULT_LOCK_STALE_AFTER,
};
pub use self::fill_apply::{apply_fill_to_books, apply_ledger_fill, FillTerms, OrderFillBook};
pub use self::identity::{
CanonicalProduct, InstrumentId, MarketId, VenueId, DEFAULT_SETTLEMENT_CURRENCY,
};
pub use self::ledger::{
ConvertibleBondConversion, CorporateAction, ExactInstrumentFunding, ExactLedgerAmounts,
ExactPositionState, FundingRateEvent, InstrumentFunding, Ledger, LedgerEntry, LedgerEntryKind,
PositionState, RightsIssueEvent, FUNDING_INTERVAL_MS, MAX_FUNDING_INTERVAL_MS,
MIN_FUNDING_INTERVAL_MS,
};
pub use self::numeric::{
parse_decimal_exact, parse_decimal_half_even, parse_decimal_integer_exact,
parse_decimal_scaled_integer, DecimalRounding, ExactDecimal, Fixed, Money, Price, Quantity,
SCALE,
};
pub use self::order::{
ConditionalOrderIntent, ConditionalOrderKind, ExactFillAmounts, ExactFillFee,
ExactOrderAmounts, Fill, FillFee, Order, OrderStatus, OrderTrace, Side, TriggerPriceType,
};
pub use self::order_group::{
OrderGroupAmendment, OrderGroupAmendmentPhase, OrderGroupExecution, OrderGroupIntent,
OrderGroupKind, OrderGroupLegIntent, OrderGroupLegRole, OrderGroupLegState, OrderGroupState,
OrderGroupStatus, ORDER_GROUP_SCHEMA_VERSION,
};
pub use self::performance::{backtest_risk_metrics, BacktestRiskMetrics};
pub use self::retry::{Backoff, RetryPolicy};
pub use self::sourcing::{
EventLog, Fnv1a, ReplayFacts, ReplayVerifier, RunManifest, StreamingReplayResult,
StreamingReplayVerifier,
};
pub use self::target::TargetPosition;
pub use self::trading::{
resolve_settlement_currency, ExactTradingRules, MarginMode, MarginState, OrderPolicy,
PositionMode, PositionSide, TradingInstrumentSpec, TradingProduct,
};
pub use self::trading_policy::{margin_mode_for_product, short_selling_enabled};
pub use self::valuation::{
ExactValuationContext, PaperValuationContext, ValuationContext, ValuationResult,
};
pub use self::venue::VenueFamily;