🔎 FindMyOrder#

User Guide#

FindMyOrder#

class findmyorder.main.FindMyOrder[source]#

Class to find and parse trading order

Parameters:

None

Returns:

None

search(my_string

str) -> bool

get_info() str[source]#
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

__init__()[source]#

Initializes the class instance.

Parameters:

self (ClassName) – The class instance.

Returns:

None

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 get_info()[source]#

get info about the class

Returns:

str

async search(message: str) bool[source]#

Search an order.

Parameters:

message (str) – Message

Returns:

bool

async identify_order(message: str) bool[source]#

Search an order.

Parameters:

message (str) – Message

Returns:

bool

async get_order(message: str)[source]#

Get an order from a message. The message can be an order or an order identifier

Parameters:

message (str) – Message

Returns:

dict