# Result ## Table of Contents - [Result](#result) - [__init__](#__init__) - [get_data](#get_data) - [to_csv](#to_csv) - [to_json](#to_json) ```python class Result() ``` A base class for handling trade results and strategy parameters for record keeping and analysis. #### Attributes | Name | Type | Description | |--------------|-------------------|-----------------------------------| | `result` | `OrderSendResult` | The result of the trade | | `parameters` | `dict` | The parameters used for the trade | | `name` | `str` | The name of the result object | ### \_\_init\_\_ ```python def __init__(result: OrderSendResult, parameters: dict = None, name: str = '') ``` Prepare result data for record keeping and analysis. #### Parameters | Name | Type | Description | |--------------|-------------------|-----------------------------------| | `result` | `OrderSendResult` | The result of the trade | | `parameters` | `dict` | The parameters used for the trade | | `name` | `str` | The name of the result object | ### get\_data ```python def get_data(self) -> dict: ``` Get the result data as a dictionary #### Returns | Type | Description | |--------|-----------------| | `dict` | The result data | ### to\_csv ```python async def to_csv() ``` Record trade results and associated parameters as a csv file ### to\_json ```python async def to_json() ``` Record trade results and associated parameters as a json file ```