export_trades_as_dataframe#

API documentation for tradeexecutor.visual.utils.export_trades_as_dataframe Python function.

export_trades_as_dataframe(portfolio, pair_id, start=None, end=None, include_credit_supply_positions=False)[source]#

Convert executed trades to a dataframe, so it is easier to work with them in Plotly.

Parameters:
  • start_at – Crop range

  • end_at – Crop range

  • portfolio (Portfolio) –

  • pair_id (int) –

  • start (Optional[Timestamp]) –

  • end (Optional[Timestamp]) –

  • include_credit_supply_positions (bool) –

Return type:

DataFrame