×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    IDEX: Difference between revisions

    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.

    - https://idex.market/

    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>')
    
    
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.