python_1inch
python_1inch copied to clipboard
Polygon
hi!
if I try to use the polygon chain I've an error....it's not implemented yet!
from python_1inch import OneInchExchange
#eth_exchange = OneInchExchange('Some_eth_address') polygon_exchange = OneInchExchange('0xcf32822ff397ef82425153a9dcb726e5ff61dca7', chain='polygon')
polygon_exchange.health_check()
'OK'
fetches the tokens from the API
polygon_exchange.get_tokens()
are then stored in memory
polygon_exchange.tokens