1inch_python

A simple python script that offers the following functions:

[LIST] List Tokens

[LOAD] Load Tokens

[GENERATE] generate new private key

[PRINT] print current pub address

[APPROVE] approve token for swap (format: approve 'token' 'quantity')

[QUOTE] request a quote using the 1inch contract (format: quote 'from_token' 'to_token' 'quantity')

[BALANCE] print current Eth balance (format: balance)

[TOKENBALANCE] print current token balance (format: tokenbalance 'token')

[API] probe 1inch for an arbitrage opportunity (format: api 'from_token' 'to_token' 'quantity')

[ALLOWANCE] check allowance for a specific token (format: allowance 'token')

[TOKEN] print token info (format: token 'token')

[SWAP] performs an actual swap, if from_token is not Eth, don't forget to approve first (format: swap 'from_token' 'to_token' 'quantity')