findmyorder.main.FindMyOrder#
- class findmyorder.main.FindMyOrder[source]#
Bases:
objectClass to find and parse trading order
- Parameters:
None
- Returns:
None
- search(my_string
str) -> bool
- identify_order(my_string
str) -> dict
- get_order(msg
str) -> dict
- replace_instrument(order
dict) -> None
Initializes the class instance.
- Parameters:
self (ClassName) – The class instance.
- Returns:
None
Methods
Retrieves all client classes from the findmyorder.handler module.
get_info()get info about the class
get_order(message)Get an order from a message.
identify_order(message)Search an order.
search(message)Search an order.
- get_all_client_classes()[source]#
Retrieves all client classes from the findmyorder.handler module.
This function imports the findmyorder.handler module and retrieves all the classes defined in it.
The function returns a dictionary where the keys are the names of the classes and the values are the corresponding class objects.
- Returns:
A dictionary containing all the client classes from the findmyorder.handler module.
- Return type:
dict
- async search(message: str) bool[source]#
Search an order.
- Parameters:
message (str) – Message
- Returns:
bool