Skip to main content

Module trade_syncer

Module trade_syncer 

Source
Expand description

Trade syncer: syncs fills to upstream API for PnL tracking.

This module provides async HTTP syncing of fills to an external API (like the AlgoBot API) for centralized PnL calculation and persistence.

Re-exports§

pub use crate::account_syncer::SyncError;

Structs§

SyncRequest
Request payload for sync API
SyncResponse
Response from sync API
SyncResult
Response from sync API
SyncedInfo
Info about last synced trade
TradeSyncer
Trade syncer - handles syncing fills to upstream API
TradeSyncerConfig
Configuration for trade syncing
UpstreamTrade
Trade format for upstream API (matches botRoutes.py Trade schema)