HuobiMarketDataService, HuobiAccountService and HuobiTradeService instead.@Deprecated public class HuobiClient extends Object implements AutoCloseable
| Constructor and Description |
|---|
HuobiClient(int socketTimeout,
int connectTimeout,
int connectionRequestTimeout)
Deprecated.
|
HuobiClient(String email,
String password,
int socketTimeout,
int connectTimeout,
int connectionRequestTimeout)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buy(BigDecimal price,
BigDecimal amount)
Deprecated.
|
List<Delegation> |
cancel(long id)
Deprecated.
the return type will be changed to void
|
void |
close()
Deprecated.
|
List<Delegation> |
getDelegations()
Deprecated.
|
Depth |
getDepth()
Deprecated.
|
Funds |
getFunds()
Deprecated.
|
BigDecimal |
getMinAmountPerOrder()
Deprecated.
|
MyTradeInfo |
getMyTradeInfo()
Deprecated.
|
void |
login()
Deprecated.
|
void |
sell(BigDecimal price,
BigDecimal amount)
Deprecated.
|
public static final String ENCODING
public HuobiClient(int socketTimeout,
int connectTimeout,
int connectionRequestTimeout)
public void login()
throws IOException
IOException@Deprecated public Depth getDepth() throws IOException
HuobiMarketDataService.getOrderBook(com.xeiam.xchange.currency.CurrencyPair, Object...) instead.IOExceptionpublic Funds getFunds() throws IOException
IOExceptionpublic MyTradeInfo getMyTradeInfo() throws IOException
IOExceptionpublic BigDecimal getMinAmountPerOrder()
public void buy(BigDecimal price, BigDecimal amount) throws IOException
IOExceptionpublic void sell(BigDecimal price, BigDecimal amount) throws IOException
IOException@Deprecated public List<Delegation> cancel(long id) throws IOException
id - the ID of the delegation to cancel.IOException - indicates I/O exception.public List<Delegation> getDelegations() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2014–2015. All rights reserved.