determine_swap_route
Documentation for eth_defi.gmx.utils.determine_swap_route function.
- determine_swap_route(markets, in_token, out_token, chain='arbitrum')
Determine the optimal swap route through available GMX markets.
Using the available markets, find the list of GMX markets required to swap from token in to token out.
- Parameters
- Returns
Tuple of (list of GMX markets to swap through, requires_multi_swap)
- Return type