Rates
- easyT.rates.get_rates(log: supportLibEasyT.log_manager.LogManager, platform: str, count: int, symbol: str, timeframe)[source]
The function get_rates is used to select which rates will be used taking in consideration the platform.
The Rates class is responsible to retrieve a certain amount of previous data.
- 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.
- symbol:
The symbol you want to retrieve previous data.
- timeframe (TimeFrame):
The timeframe you want information, like 1 minute, 5 minute, 1 week.
- count:
It is the amount of information in the past you want. If your time frame is 5 minutes and your count is 4, it will return 4 values containing time, open, high, low, close, tick_volume information of this past 4 candlesticks.
- 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