🔎 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

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

Search an order.

Parameters:

my_string (str) – Message

Returns:

bool

async get_info()[source]#

get info about the class

Returns:

str

async identify_order(my_string: str) dict[source]#

Identify an order and return a dictionary with the order parameters

Parameters:

my_string (str) – Message

Returns:

dict

async get_order(msg: str)[source]#

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

Parameters:

msg (str) – Message

Returns:

dict

async replace_instrument(order)[source]#

Replace instrument by an alternative instrument, if the instrument is not in the mapping, it will be ignored.

Parameters:

order (dict) –

Returns:

dict