Crate nautilus_network

Source
Expand description

Network functionality for PoseiTrader.

The network crate provides networking components including HTTP, WebSocket, and raw TCP socket clients, rate limiting, backoff strategies, and socket TLS utilities for connecting to trading venues and data providers.

§Platform

PoseiTrader is an open-source, high-performance, production-grade algorithmic trading platform, providing quantitative traders with the ability to backtest portfolios of automated trading strategies on historical data with an event-driven engine, and also deploy those same strategies live, with no code changes.

PoseiTrader’s design, architecture, and implementation philosophy prioritizes software correctness and safety at the highest level, with the aim of supporting mission-critical, trading system backtesting and live deployment workloads.

§Feature flags

This crate provides feature flags to control source code inclusion during compilation, depending on the intended use case, i.e. whether to provide Python bindings for the posei_trader Python package, or as part of a Rust only build.

  • python: Enables Python bindings from PyO3.

Modules§

backoff
Provides an implementation of an exponential backoff mechanism with jitter support. It is used for managing reconnection delays in the socket clients.
error
Network error types.
fix
Simple FIX message buffer processor.
http
A high-performance HTTP client implementation.
mode
Connection mode enumeration for socket clients.
net
Network abstractions for dependency injection.
python
Python bindings from PyO3.
ratelimiter
A rate limiter implementation heavily inspired by governor.
socket
High-performance raw TCP client implementation with TLS capability, automatic reconnection with exponential backoff and state management. Key features:
websocket
High-performance WebSocket client implementation with automatic reconnection with exponential backoff and state management. Key features: