public interface Huobi
Modifier and Type | Method and Description |
---|---|
CancelOrderResult |
cancelOrder(String method,
String accessKey,
int coinType,
long id,
long created,
si.mazi.rescu.ParamsDigest sign)
Cancel order.
|
AccountInfo |
getAccountInfo(String method,
String accessKey,
long created,
si.mazi.rescu.ParamsDigest sign)
Fetch account information.
|
Depth |
getDepth(String symbol) |
OrderBookTAS |
getDetail(String symbol) |
String[][] |
getKline(String symbol,
String period) |
Order |
getOrder(String method,
String accessKey,
int coinType,
long id,
long created,
si.mazi.rescu.ParamsDigest sign)
Fetch order detail.
|
Order[] |
getOrders(String method,
String accessKey,
int coinType,
long created,
si.mazi.rescu.ParamsDigest sign)
Fetch all proceeding orders.
|
Ticker |
getTicker(String symbol) |
PlaceOrderResult |
modifyOrder(String method,
String accessKey,
int coinType,
long id,
String price,
String amount,
long created,
si.mazi.rescu.ParamsDigest sign)
Modify order.
|
PlaceOrderResult |
placeLimitOrder(String method,
String accessKey,
int coinType,
String price,
String amount,
long created,
si.mazi.rescu.ParamsDigest sign)
Place limit order.
|
PlaceOrderResult |
placeLimitOrder(String method,
String accessKey,
int coinType,
String price,
String amount,
long created,
si.mazi.rescu.ParamsDigest sign,
String tradePassword)
Place limit order.
|
PlaceOrderResult |
placeMarketOrder(String method,
String accessKey,
int coinType,
String amount,
long created,
si.mazi.rescu.ParamsDigest sign)
Place market order.
|
PlaceOrderResult |
placeMarketOrder(String method,
String accessKey,
int coinType,
String amount,
long created,
si.mazi.rescu.ParamsDigest sign,
String tradePassword)
Place market order.
|
Ticker getTicker(String symbol) throws IOException
IOException
Depth getDepth(String symbol) throws IOException
IOException
String[][] getKline(String symbol, String period) throws IOException
IOException
OrderBookTAS getDetail(String symbol) throws IOException
IOException
AccountInfo getAccountInfo(String method, String accessKey, long created, si.mazi.rescu.ParamsDigest sign) throws IOException
method
- get_account_infoaccessKey
- the access key.created
- the time stamp of submitting the request.sign
- the MD5 signature.IOException
Order[] getOrders(String method, String accessKey, int coinType, long created, si.mazi.rescu.ParamsDigest sign) throws IOException
method
- get_ordersaccessKey
- the access key.created
- the time stamp of submitting this request.sign
- the MD5 signature.IOException
Order getOrder(String method, String accessKey, int coinType, long id, long created, si.mazi.rescu.ParamsDigest sign) throws IOException
method
- order_infoaccessKey
- the access key.id
- the order ID.created
- the time stamp of submitting this request.sign
- the MD5 signature.IOException
PlaceOrderResult placeLimitOrder(String method, String accessKey, int coinType, String price, String amount, long created, si.mazi.rescu.ParamsDigest sign) throws IOException
method
- buy/sell.accessKey
- the access key.price
- the price of the order.amount
- the quantity of the order.created
- the time stamp of submitting this request.sign
- the MD5 signature.IOException
PlaceOrderResult placeLimitOrder(String method, String accessKey, int coinType, String price, String amount, long created, si.mazi.rescu.ParamsDigest sign, String tradePassword) throws IOException
method
- buy/sell.accessKey
- price
- amount
- created
- sign
- tradePassword
- IOException
PlaceOrderResult placeMarketOrder(String method, String accessKey, int coinType, String amount, long created, si.mazi.rescu.ParamsDigest sign) throws IOException
method
- buy_market/sell_marketaccessKey
- the access key.coinType
- the coin type, 1 means BTC, 2 means LTC.amount
- the quantity of the order.created
- the time stamp of submitting this request.sign
- the MD5 signature.IOException
PlaceOrderResult placeMarketOrder(String method, String accessKey, int coinType, String amount, long created, si.mazi.rescu.ParamsDigest sign, String tradePassword) throws IOException
method
- buy_market/sell_marketaccessKey
- the access key.coinType
- the coin type, 1 means BTC, 2 means LTC.amount
- the quantity of the order.created
- the time stamp of submitting this request.sign
- the MD5 signature.tradePassword
- the trade password.IOException
CancelOrderResult cancelOrder(String method, String accessKey, int coinType, long id, long created, si.mazi.rescu.ParamsDigest sign) throws IOException
method
- cancel_orderaccessKey
- the access key.id
- the ID of the order to be cancelled.created
- the time stamp of submitting the request.sign
- the MD5 signature.IOException
PlaceOrderResult modifyOrder(String method, String accessKey, int coinType, long id, String price, String amount, long created, si.mazi.rescu.ParamsDigest sign) throws IOException
The old order will be cancelled, and a new order will be placed.
method
- modify_orderaccessKey
- the access key.id
- the order ID to be cancelled.price
- the price of the new order.amount
- the quantity of the new order.created
- the time stamp of submitting this request.sign
- the MD5 signature.IOException
Copyright © 2014–2015. All rights reserved.