parse_pair_data#

parse_pair_data(s)[source]#

Extract pair data from string.

Parameters:

s (str) –

String in the format of: [(chain_id, exchange_slug, base_token, quote_token, fee)])],

where rate is optional.

Raises:

ValueError – If the string is not in the correct format.

Returns:

Tuple of (chain_id, exchange_slug, base_token, quote_token, fee)