base
Exporter
Bases: ABC, Generic[T]
Abstract base class for data exporters.
Type parameter T represents the output format type (e.g., LazyFrame, dict, str for JSON/CSV).
export_orders(orders)
abstractmethod
Convert Orders collection to target format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orders
|
Orders
|
Orders collection to export |
required |
Returns:
| Type | Description |
|---|---|
T
|
Exported data in target format |
export_trades(trades)
abstractmethod
Convert ExecutedTrades collection to target format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
trades
|
ExecutedTrades
|
Trades collection to export |
required |
Returns:
| Type | Description |
|---|---|
T
|
Exported data in target format |