Ecex Exchange Public API Documentation

Version 1


Summary of Endpoints

Public API Endpoints

Listings

  • Endpoint: /listings/
  • Method: GET
  • Description: This endpoint displays all active cryptocurrency listings in one call.
  • id < 2 indicates market base currency used for trading pairs (ETH, XLM, ZIG at the moment , BTC, EUR etc in future)
  • Example: https://api.ecex.exchange/v1/listings/
  • Sample Response:
    {
    
        "data": [
            {
                id: "1",
                name: "Ziggurat",
                symbol: "ZIG",
                website: "https://ecex.exchange/",
                address: "0xe760A89967d8C7Fa638eeBfC15A77BA107674021",
                type: "ERC20",
                decimals: "18"        }, 
            {
                id: "-1",
                name: "Ethereum",
                symbol: "ETH",
                website: "https://www.ethereum.org/",
                address: "ETH",
                type: "ETH",
                decimals: "18"
            }, 
            ...
        },
        "metadata": {
            timestamp: 1533885509,
            num_cryptocurrencies: 79,
            error: null
        }
    ]                               

Ticker

  • Endpoint: /ticker/
  • Method: GET
  • Description: This endpoint displays cryptocurrency ticker data in order of rank. The maximum number of results per call is 100. Pagination is possible by using the start and limit parameters.
  • Optional parameters:
    • (int) id - asset id, see Listings
    • (int) start - return results starting from the specified number (default is 1). records are sother by asset id
    • (int) limit - return a maximum of [limit] results (default is 100; max is 100)
    • If quote for market is null then asset is not listed on this market (ex. ETH: null)
  • Example: https://api.ecex.exchange/v1/ticker
  • Example: https://api.ecex.exchange/v1/ticker?id=1
  • Example: https://api.ecex.exchange/v1/ticker?limit=10
  • Example: https://api.ecex.exchange/v1/ticker?start=11&limit=10
  • Sample Response:
    {
        {
    
        data: {
            ETH: {
                id: "-1",
                name: "Ethereum",
                symbol: "ETH",
                address: "ETH",
                quotes: {
                    ETH: null,
                    ZIG: null,
                    XLM: {
                        price: "10.000000000000000000",
                        volume_24h: "0.000000000000000000",
                        percent_change_24h: "0.000"
                    }
                },
                last_updated: 1533897260
            },
            ZIG: {
                id: "1",
                name: "Ziggurat",
                symbol: "ZIG",
                address: "0xe760A89967d8C7Fa638eeBfC15A77BA107674021",
                quotes: {
                    ETH: {
                        price: "0.000009490000000000",
                        volume_24h: "209706.571722508000601489",
                        percent_change_24h: "-4.290"
                    },
                    ZIG: null,
                    XLM: {
                        price: "0.000000100000000000",
                        volume_24h: "0.000000000000000000",
                        percent_change_24h: "0.000"
                    }
                },
                last_updated: 1533897260
            },
            eRupee: {
                id: "2",
                name: "eRupee (e₹)",
                symbol: "eRupee",
                address: "0xb67734521eAbBE9C773729dB73E16CC2dfb20A58",
                quotes: {
                    ETH: {
                        price: "0.000000005000000000",
                        volume_24h: "17407.202000000002000000",
                        percent_change_24h: "-11.111"
                    },
                    ZIG: {
                        price: "0.000490000000000000",
                        volume_24h: "2329.300000000000000000",
                        percent_change_24h: "78.261"
                    },
                    XLM: null
                },
                last_updated: 1533897260
            },
            ...........
        },
        "metadata": {
            timestamp: 1533885509,
            num_cryptocurrencies: 80,
            error: null
        }
    }
                                   

Markets

  • Endpoint: /markets/
  • Method: GET
  • Description: This endpoint displays all active markets available
  • Example: https://api.ecex.exchange/v1/markets/
  • Sample Response:
    {
    
        "data": [
            {
                id: "1",
                name: "Ziggurat",
                symbol: "ZIG",
                website: "https://ecex.exchange/",
                address: "0xe760A89967d8C7Fa638eeBfC15A77BA107674021",
                type: "ERC20",
                decimals: "18"        }, 
            {
                id: "-1",
                name: "Ethereum",
                symbol: "ETH",
                website: "https://www.ethereum.org/",
                address: "ETH",
                type: "ETH",
                decimals: "18"
            }, 
            ...
        },
        "metadata": {
            timestamp: 1533885509,
            num_cryptocurrencies: 79,
            error: null
        }
    ]                               

Notes

Misc

Limits

  • Please limit requests to no more than 30 per minute.
  • Endpoints update every 5 minutes.

Terms of Use

  • By accessing the Public API, you agree to MIT License Terms of Use.

Documentation Last Updated

  • August 10, 2018