easyT.manager.Manager.get_rates

Manager.get_rates(count: int, symbol: str, timeframe: str)[source]

This function will use the platform attribute to return the correct class between the options in the Class Platforms.

Parameters
  • 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 class already invoked.

Examples

>>> from easyT.manager import Manager
>>> symbol = 'BTCUSDT'
>>> manager = Manager()
>>> manager.set_platform('binance-spot')
'binance-spot'
>>> manager.get_initialize()
<binanceSpotEasyT.initialization.Initialize object>
>>> manager.get_rates(symbol=symbol, count=20, timeframe='1m')
<binanceSpotEasyT.rates.Rates object>