Skip to content

polars

PolarsExporter

Bases: Exporter[LazyFrame]

Export collections to polars LazyFrame format.

export_orders(orders)

Export Orders to validated polars LazyFrame.

Parameters:

Name Type Description Default
orders Orders

Orders collection to export

required

Returns:

Type Description
LazyFrame[OrderDataSchema]

Validated polars LazyFrame with order data

export_trades(trades)

Export ExecutedTrades to validated polars LazyFrame.

Parameters:

Name Type Description Default
trades ExecutedTrades

Trades collection to export

required

Returns:

Type Description
LazyFrame[TradeDataSchema]

Validated polars LazyFrame with trade data