Timeframe
- easyT.timeframe.get_timeframe(log: supportLibEasyT.log_manager.LogManager, platform)[source]
This function return the class that responsible to hold the timeframe from different platform in a same structure.
There are incompatibilities and different patterns in writing the timeframe between platforms. This class attend to reduce the chance of errors providing the same timeframe structure between platforms.
- Parameters
log –
The log receives a log handler to be able to log the information
- platform:
It is the platform that the information will be returned.
- Returns
It returns the right class that will be used or an error message in case it was not found
- Return type
The class or Error message
Examples
You can find an example of the TimeFrame usage in update_rates() function in Rates documentation