Content added Content deleted
(Created page with "IDEX is a DEX (decentralized exchange) for ERC20 tokens based on Ethereum. - https://idex.market/ Here is a very simple example in Python to get the balances...") |
No edit summary |
||
Line 21: | Line 21: | ||
</pre> |
</pre> |
||
* https://api.idex.market/ |
|||
* https://docs.idex.market/#tag/HTTP-API-Introduction |
|||
* https://idex.market/balances |
Latest revision as of 16:59, 26 December 2018
IDEX is a DEX (decentralized exchange) for ERC20 tokens based on Ethereum.
Here is a very simple example in Python to get the balances of an address (wallet) on IDEX.
def idex_balance(address): try: r = requests.post(IDEX_API_URL + 'returnBalances', data = {'address':address}) except Exception as err: print('failed to talk to IDEX - {0} - {1}'.format(err.message, err.args)) sys.exit(2) print(r.json()) IDEX_API_URL = 'https://api.idex.market/' idex_balance('<REPLACE WITH YOUR ADDRESS>')