easyT.manager.Manager.set_platform

Manager.set_platform(platform: str) None[source]

This function is used to set the platform to the manager, the platform will be used for many functions to know witch class to return and more.

Parameters

platform – It can be of type Platforms, or it can be a string. It is up to you to decide. The class Platform was created to reduce the errors possibilities when writing the correct name of the platform.

Returns

It returns None, but it saves the platform in an attribute.

Examples

>>> from easyT.manager import Manager
>>> symbol = 'BTCUSDT'
>>> manager = Manager()
>>> manager.set_platform('binance-spot')
'binance-spot'