public class CHBTCTradeServiceRaw extends CHBTCBaseTradePollingService
client
Modifier | Constructor and Description |
---|---|
protected |
CHBTCTradeServiceRaw(com.xeiam.xchange.Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
void |
cancelOrder(long id,
String currency)
Cancel the specified order.
|
Order |
getOrder(long id,
String currency)
Returns order with given order ID in the specified market.
|
Order[] |
getOrders(Type tradeType,
String currency,
int pageIndex)
Returns bid or ask orders, 10 records maximumly.
|
Order[] |
getOrdersIgnoreTradeType(String currency,
int pageIndex,
int pageSize)
Returns bid or ask orders.
|
Order[] |
getOrdersNew(Type tradeType,
String currency,
int pageIndex,
int pageSize)
Returns bid or ask orders.
|
Order[] |
getUnfinishedOrdersIgnoreTradeType(String currency,
int pageIndex,
int pageSize)
Returns bid or ask orders.
|
long |
order(BigDecimal price,
BigDecimal amount,
Type tradeType,
String currency)
Place order.
|
finalize
getExchangeSymbols
protected CHBTCTradeServiceRaw(com.xeiam.xchange.Exchange exchange)
public long order(BigDecimal price, BigDecimal amount, Type tradeType, String currency) throws IOException
price
- the order price.amount
- the order amount.tradeType
- the trade type, buy or sell.currency
- the base symbol in lower case to specifiy market.
e.g. btc, ltc.IOException
- indicates I/O exception.public void cancelOrder(long id, String currency) throws IOException
id
- the order ID.currency
- the base symbol in lower case to specify the market.
e.g. btc, ltc.IOException
- indicates I/O exception.public Order getOrder(long id, String currency) throws IOException
id
- the order ID.currency
- the base symbol in lower case to specify market.
e.g. btc, ltc.IOException
- indicates I/O exception.public Order[] getOrders(Type tradeType, String currency, int pageIndex) throws IOException
tradeType
- the trade type, buy or sell.currency
- base symbol in lower case. e.g. btc, ltc.pageIndex
- 1 based.IOException
- indicates I/O exception.public Order[] getOrdersNew(Type tradeType, String currency, int pageIndex, int pageSize) throws IOException
tradeType
- the trade type, buy or sell.currency
- the base symbol in lower case to specify market.
e.g. btc, ltc.pageIndex
- 1 based.pageSize
- should not greater than 100.IOException
- indicates I/O exception.public Order[] getOrdersIgnoreTradeType(String currency, int pageIndex, int pageSize) throws IOException
currency
- the base symbol in lower case to specify market.
e.g. btc, ltc.pageIndex
- 1 based.pageSize
- should not greater than 100.IOException
- indicates I/O exception.public Order[] getUnfinishedOrdersIgnoreTradeType(String currency, int pageIndex, int pageSize) throws IOException
currency
- the base symbol in lower case to specify market.
e.g. btc, ltc.pageIndex
- 1 based.pageSize
- should not greater than 100.IOException
- indicates I/O exception.Copyright © 2013–2015. All rights reserved.