public interface CHBTC
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_CANCEL_ORDER |
static String |
METHOD_GET_ACCOUNT_INFO |
static String |
METHOD_GET_ORDER |
static String |
METHOD_GET_ORDERS |
static String |
METHOD_GET_ORDERS_IGNORE_TRADE_TYPE |
static String |
METHOD_GET_ORDERS_NEW |
static String |
METHOD_GET_UNFINISHED_ORDERS_IGNORE_TRADE_TYPE |
static String |
METHOD_ORDER |
| Modifier and Type | Method and Description |
|---|---|
CHBTCError |
cancelOrder(String method,
String accessKey,
long id,
String currency,
String sign,
long reqTime)
Deprecated.
Use
CHBTCClient.cancelOrder(long, String) instead. |
AccountInfo |
getAccountInfo(String method,
String accessKey,
String sign,
long reqTime)
Deprecated.
Use
CHBTCClient.getAccountInfo() instead. |
Order |
getOrder(String method,
String accessKey,
long id,
String currency,
String sign,
long reqTime)
Deprecated.
Use
CHBTCClient.getOrder(long, String) instead. |
Order[] |
getOrders(String method,
String accessKey,
int tradeType,
String currency,
int pageIndex,
String sign,
long reqTime)
Deprecated.
The response JSON maybe array
or object
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed. |
Order[] |
getOrdersIgnoreTradeType(String method,
String accessKey,
String currency,
int pageIndex,
int pageSize,
String sign,
long reqTime)
Deprecated.
The response JSON may be array
or object
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed. |
Order[] |
getOrdersNew(String method,
String accessKey,
int tradeType,
String currency,
int pageIndex,
int pageSize,
String sign,
long reqTime)
Deprecated.
The response JSON maybe array
or object
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed. |
Order[] |
getUnfinishedOrdersIgnoreTradeType(String method,
String accessKey,
String currency,
int pageIndex,
int pageSize,
String sign,
long reqTime)
Deprecated.
The response JSON maybe array
or object
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed. |
OrderResponse |
order(String method,
String accessKey,
String price,
String amount,
int tradeType,
String currency,
String sign,
long reqTime)
Deprecated.
|
static final String METHOD_ORDER
static final String METHOD_CANCEL_ORDER
static final String METHOD_GET_ORDER
static final String METHOD_GET_ORDERS
static final String METHOD_GET_ORDERS_NEW
static final String METHOD_GET_ORDERS_IGNORE_TRADE_TYPE
static final String METHOD_GET_UNFINISHED_ORDERS_IGNORE_TRADE_TYPE
static final String METHOD_GET_ACCOUNT_INFO
@Deprecated OrderResponse order(String method, String accessKey, String price, String amount, int tradeType, String currency, String sign, long reqTime) throws IOException
CHBTCClient.order(java.math.BigDecimal, java.math.BigDecimal, org.oxerr.chbtc.dto.Type, String) instead.method - order.accessKey - the access key.price - the order price.amount - the quantity of the order.tradeType - the trade type, 1 means buy, 0 means sell.currency - the tradable currency, could be BTC, LTC.sign - the MD5 signature.reqTime - the time stamp of request, in milliseconds.IOException - indicates I/O exception.@Deprecated CHBTCError cancelOrder(String method, String accessKey, long id, String currency, String sign, long reqTime) throws IOException
CHBTCClient.cancelOrder(long, String) instead.method - cancelOrder.accessKey - the access key.id - the ID of the order to be cancelled.currency - the currency of the tradable, could be BTC or LTC.sign - the MD5 signature.reqTime - the time stamp of the request, in milliseconds.IOException - indicates I/O exception.@Deprecated Order getOrder(String method, String accessKey, long id, String currency, String sign, long reqTime) throws IOException
CHBTCClient.getOrder(long, String) instead.method - getOrder.accessKey - the access key.id - the order ID.currency - the currency of the tradable, could be BTC or LTC.sign - the MD5 signature.reqTime - the time stamp of the reuqest, in milliseconds.IOException - indicates I/O exception.@Deprecated Order[] getOrders(String method, String accessKey, int tradeType, String currency, int pageIndex, String sign, long reqTime) throws IOException
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed.method - getOrders.accessKey - the access key.tradeType - the trade type, 1 means buy, 0 means sell.currency - the currency of the tradable, could be BTC or LTC.pageIndex - the page index, 1 based.sign - the MD5 signature.reqTime - the time stamp of the request, in milliseconds.IOException - indicates I/O exception.@Deprecated Order[] getOrdersNew(String method, String accessKey, int tradeType, String currency, int pageIndex, int pageSize, String sign, long reqTime) throws IOException
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed.method - getOrdersNew.accessKey - the access key.tradeType - the trade type, 1 means buy, 0 means sell.currency - the currency of the tradable, could be BTC or LTC.pageIndex - the page index, 1 based.pageSize - the page size, should be less than or equals to 100.sign - the MD5 signature.reqTime - the time stamp of the request, in milliseconds.IOException - indicates I/O exception.@Deprecated Order[] getOrdersIgnoreTradeType(String method, String accessKey, String currency, int pageIndex, int pageSize, String sign, long reqTime) throws IOException
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed.method - getOrdersIgnoreTradeType.accessKey - the access key.currency - the currency of the tradable, could be BTC or LTC.pageIndex - the page index, 1 based.pageSize - the page size.sign - the MD5 signature.reqTime - the time stamp of the request, in milliseconds.IOException - indicates I/O exception.@Deprecated Order[] getUnfinishedOrdersIgnoreTradeType(String method, String accessKey, String currency, int pageIndex, int pageSize, String sign, long reqTime) throws IOException
{"code":3001,"message":"挂单没有找到"},
then it will be parsed failed.method - getUnfinishedOrdersIgnoreTradeType.accessKey - the access key.currency - the currency of the tradable, could be BTC or LTC.pageIndex - the page index, 1 based.pageSize - the page size, should be less than or equals to 100.sign - the MD5 signature.reqTime - the time stamp of the request, in milliseconds.IOException - indicates I/O exception.@Deprecated AccountInfo getAccountInfo(String method, String accessKey, String sign, long reqTime) throws IOException
CHBTCClient.getAccountInfo() instead.method - getAccountInfo.accessKey - the access key.sign - the MD5 signature.reqTime - the time stamp of the request, in milliseconds.IOException - indicates I/O exception.Copyright © 2013–2015. All rights reserved.