* @return order ID.
* @throws IOException
*/
public BTCChinaIntegerResponse sell(BigDecimal price, BigDecimal amount, String market) throws IOException {
BTCChinaSellOrderRequest request = new BTCChinaSellOrderRequest(price, amount, market);
final BTCChinaIntegerResponse response;
try {
response = btcChina.sellOrder2(signatureCreator, BTCChinaUtils.getNonce(), request);
} catch (HttpStatusIOException e) {
if (e.getHttpStatusCode() == 401) {