c api implementation for cex.io