parse_pair_data#
API documentation for tradeexecutor.cli.commands.perform_test_trade.parse_pair_data Python function.
- 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)