Login:  Password:  

TRADE

SUPPORT
Public API | New API documentation =>

Pairs list


https://c-cex.com/t/pairs.json


Rate tickers BTC, USD, LTC, DOGE


All rates: https://c-cex.com/t/prices.json

https://c-cex.com/t/curr1-curr2.json

Example: https://c-cex.com/t/btc-usd.json

Response: {"ticker":{"high":877,"low":809,"avg":843,"lastbuy":829.999502,"lastsell":824,"updated":1390249623}}

Format explanation:
"high" - maximum sell rate by 24 hours
"low" - minimum sell rate by 24 hours
"avg" - average sell rate by 24 hours
"lastbuy" - last sell rate
"lastsell" - last buy rate
"buy" - maximum buy rate from current order
"sell" - minimum sell rate from current order
"lastprice" - last order rate
"updated" - last update time

Updating each 60 sec.


Trade history


https://c-cex.com/t/s.html?a=tradehistory&d1=Date_Time_From&d2=Date_Time_To&pair=Curr1-Curr2

Example: https://c-cex.com/t/s.html?a=tradehistory&d1=2014-01-01&d2=2014-02-10&pair=grc-btc


Trade volumes


https://c-cex.com/t/s.html?a=volume&h=hours_to_group&pair=Curr1-Curr2

Example: https://c-cex.com/t/s.html?a=volume&h=24&pair=btc-grc


Last trade volumes for all pairs


https://c-cex.com/t/s.html?a=lastvolumes&h=24

Example: https://c-cex.com/t/s.html?a=lastvolumes&h=24


Wallet status


http://c-cex.com/t/s.html?a=walletstatus&coin=Coin_name

Example: http://c-cex.com/t/s.html?a=walletstatus&coin=btc

Response: {"return":[{"version":"119900","lastcheck":"2015-11-01 17:00:02","blocks":"381582","difficulty":"62253982449.76081848","status":"0","withdrawalfee":"0.0002","confrequired","2"}]}

Format explanation:
"version" - Wallet version
"lastcheck" - Last check date/time
"blocks" - Block count
"difficulty" - Difficulty
"status" - Wallet status: 0 - Ok, 1 - Delayed, 2 - Out of sync, 3 - Disabled
"withdrawalfee" - Withdrawal fee
"confrequired" - Required number of confirmations


Private API



Orders list


https://c-cex.com/t/r.html?key=Your_API_Key&a=orderlist&self=[1/0]&pair=Curr1-Curr2

Example: https://c-cex.com/t/r.html?key=Your_API_Key&a=orderlist&self=1&pair=btc-usd
If "self" = 1 - show only my orders.

Response: {"return":{"158913":{"type":"sell","c1":"usd","c2":"btc","amount":0.00064744,"price":520,"self":0}, "158912":{"type"}}}

Format explanation:
"158913" - Order ID
"type" - Order type - buy/sell
"c1" - Currency 1
"c2" - Currency 2
"amount" - Currency 2 amount
"price" - Currency rate
"self" - 1 - self older


Get balance


https://c-cex.com/t/r.html?key=Your_API_Key&a=getbalance


Make order


https://c-cex.com/t/r.html?key=Your_API_Key&a=makeorder&pair=Curr1-Curr2&q=Amount&t=[s/b]&r=Rate

Example: https://c-cex.com/t/r.html?key=Your_API_Key&a=makeorder&pair=doge-usd&q=100&t=s&r=0.001

"t" - order type. t=s - Sell, t=b - Buy


Cancel order


https://c-cex.com/t/r.html?key=Your_API_Key&a=cancelorder&id=OrderID

Example: https://c-cex.com/t/r.html?key=Your_API_Key&a=cancelorder&id=1228


Self trade history


https://c-cex.com/t/r.html?key=Your_API_Key&a=tradehistory&d1=Date_Time_From&d2=Date_Time_To&pair=Curr1-Curr2

Example: https://c-cex.com/t/r.html?key=Your_API_Key&a=tradehistory&d1=2014-01-01&d2=2014-02-10&pair=grc-btc


Restrictions:


You may access our API only once per 5 seconds.


Examples of solutions:


https://github.com/Remdev/PHP-ccex-api