API

Here is the list of Coinexmarket top ICOs & Crowd sales happening right now:

1. Trading Pairs API

Return all the trading pairs supported by Coinex Market

URL: http://api.coinexmarket.io/availablepairs

Return data example:

{"status":1,"message":"Success","combinations":["CEX_BTC","CEX_ETH",,"CEX_XRP","CEX_LTC","CEX_DOGE","CEX_BCH","CEX_MBCH","CEX_FXC",


2. Market Info API

Returns all markets' fee, minimum order total amount, price decimal places.

URL: http://api.coinexmarket.io/marketinfo

Return data example:

 {"status":1,"message":"Success","marketinfo":[{"name":"CEX","min_buy":"0.0001","min_sell":"0.0001","sellfee":"0.001","buyfee":"0.002"},{"name":"BTC","min_buy":"0.0001","min_sell":"0.0001","sellfee":"0.002","buyfee":"0.004"},


3. Market Details API

Returns market details including pair, coin name, coin symbol, last price, trading volume, coin supply, coin market cap, price trend, etc.

URL: http://api.coinexmarket.io/marketlist

Return data example:

More..
    {"status":1,"message":"Success","marketlist":[{"no":1,"symbol":"CEX","name":"CEX","pair":"ltc_btc","rate":"418.00","vol_a":168120.2,"vol_b":"65,616,561","curr_a":"LTC","curr_b":"BTC","curr_suffix":" BTC","rate_percent":"19.73","trend":"up","supply":25760300,"marketcap":"10,767,805,404","min_buy":"0.0001","min_sell":"0.0001","sellfee":"0.001","buyfee":"0.002"},


4. Tickers API

returns the tickers for all the supported trading pairs at once, cached in 10 seconds::

URL: http://api.coinexmarket.io/tickers

Return data example:

More..
  {"status":1,"message":"Success","combinations":{"CEX_BTC":["ewwqe"],"CEX_ETH":["ewwqe"],


5. Ticker API

returns the current ticker for the selected currency, cached in 10 seconds:

URL: http://api.coinexmarket.io/customticker/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links:

http://api.coinexmarket.io/customticker/YOC_XZC
http://api.coinexmarket.io/customticker/YOC_XRP
http://api.coinexmarket.io/customticker/YOC_XLMGOLD
http://api.coinexmarket.io/customticker/YOC_WIZ
http://api.coinexmarket.io/customticker/YOC_WAVES
http://api.coinexmarket.io/customticker/YOC_VRS
http://api.coinexmarket.io/customticker/YOC_VIPS
http://api.coinexmarket.io/customticker/YOC_USDT
http://api.coinexmarket.io/customticker/YOC_USDPM
http://api.coinexmarket.io/customticker/YOC_TRX
More available

Return data example:

	  {
						"result": "true",
						"last": 0.1,
						"lowestAsk": 0.1,
						"highestBid": "0.00000000",
						"percentChange": 0,
						"baseVolume": 0.001,
						"quoteVolume": 0.01,
						"high24hr": 0.1,
						"low24hr": 0.1
					  }



6. Depth API

Return the market depth including ask and bid orders.

URL: http://api.coinexmarket.io/orderBook/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links:

http://api.coinexmarket.io/orderBook/YOC_XZC
http://api.coinexmarket.io/orderBook/YOC_XRP
http://api.coinexmarket.io/orderBook/YOC_XLMGOLD
http://api.coinexmarket.io/orderBook/YOC_WIZ
http://api.coinexmarket.io/orderBook/YOC_WAVES
http://api.coinexmarket.io/orderBook/YOC_VRS
http://api.coinexmarket.io/orderBook/YOC_VIPS
http://api.coinexmarket.io/orderBook/YOC_USDT
http://api.coinexmarket.io/orderBook/YOC_USDPM
http://api.coinexmarket.io/orderBook/YOC_TRX
More available

Return data example:

  {
	"result": "true",
        "asks": [
                [29500,    4.07172355],
                [29499,    0.00203397],
                [29495,    1],
                [29488,    0.0672],
                [29475,    0.001]
            ],
        "bids": [
                [28001, 0.0477],
                [28000, 0.35714018],
                [28000, 2.56222976],
                [27800, 0.0015],
                [27777, 0.1]
            ]
  }


7. Trade History API

Return the most recent 80 trade history records:

URL: http://api.coinexmarket.io/tradeHistory/[CURR_A]_[CURR_B]/[TID]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Return at most 1,000 trade history records after [TID]:

Links:

http://api.coinexmarket.io/tradeHistory/YOC_XZC
http://api.coinexmarket.io/tradeHistory/YOC_XRP
http://api.coinexmarket.io/tradeHistory/YOC_XLMGOLD
http://api.coinexmarket.io/tradeHistory/YOC_WIZ
http://api.coinexmarket.io/tradeHistory/YOC_WAVES
http://api.coinexmarket.io/tradeHistory/YOC_VRS
http://api.coinexmarket.io/tradeHistory/YOC_VIPS
http://api.coinexmarket.io/tradeHistory/YOC_USDT
http://api.coinexmarket.io/tradeHistory/YOC_USDPM
http://api.coinexmarket.io/tradeHistory/YOC_TRX
More available

Return data example:

  {
	"result": "true",
        "data": [
            {
                "tradeID": "27734287",
                "date": "2017-09-29 11:52:05",
                "timestamp": "1506657125",
                "type": "buy",
                "rate": 0.1,
                "amount": 0.01,
                "total": 0.001
            }
        ],
        "elapsed": "6.901ms"
  }


8. Error code

Error codes details from system

Error codes Details
1 Success
2 Invalid request
3 Invalid request
4 Too many attempts
5 Currency is not supported
6,7 Currency is not supported
8 Empty params
9 Internal error, please report to administrator
10 Invalid user