find_dictionary_by_key_value

Documentation for eth_defi.gmx.utils.find_dictionary_by_key_value function.

find_dictionary_by_key_value(outer_dict, key, value)

Find a dictionary within a nested structure by key-value pair.

Parameters
  • outer_dict (dict) – Dictionary to search through

  • key (str) – Key to search for

  • value (str) – Value that the key should match

Returns

First matching dictionary or None if not found

Return type

dict | None