public interface BTCTrade
| Modifier and Type | Method and Description |
|---|---|
BTCTradePlaceOrderResult |
buy(String amount,
String price,
si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
String key,
si.mazi.rescu.ParamsDigest signature)
Places a buy order.
|
BTCTradeResult |
cancelOrder(String id,
si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
String key,
si.mazi.rescu.ParamsDigest signature)
Cancels order.
|
BTCTradeBalance |
getBalance(si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
String key,
si.mazi.rescu.ParamsDigest signature)
Returns the account balance.
|
BTCTradeDepth |
getDepth()
Returns the depth of the market.
|
BTCTradeOrder |
getOrder(String id,
si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
String key,
si.mazi.rescu.ParamsDigest signature)
Returns order information.
|
BTCTradeOrder[] |
getOrders(long since,
String type,
si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
String key,
si.mazi.rescu.ParamsDigest signature)
Return orders.
|
BTCTradeSecretResponse |
getSecret(String passphrase,
String key)
Returns the secret for signing.
|
BTCTradeTicker |
getTicker()
Returns the quotations.
|
BTCTradeTrade[] |
getTrades()
Returns 500 recent market transactions, in reverse chronological order.
|
BTCTradeTrade[] |
getTrades(long since)
Returns 500 market transactions which trade ID is greater than
since, in reverse chronological order. |
BTCTradeWallet |
getWallet(si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
String key,
si.mazi.rescu.ParamsDigest signature)
Returns the deposit address.
|
BTCTradePlaceOrderResult |
sell(String amount,
String price,
si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
String key,
si.mazi.rescu.ParamsDigest signature)
Places a sell order.
|
BTCTradeTicker getTicker() throws IOException
IOExceptionBTCTradeDepth getDepth() throws IOException
IOExceptionBTCTradeTrade[] getTrades() throws IOException
IOExceptionBTCTradeTrade[] getTrades(long since) throws IOException
since, in reverse chronological order.since - the trade ID.IOExceptionBTCTradeSecretResponse getSecret(String passphrase, String key) throws IOException
passphrase - the API private key.key - the API public key.IOExceptionBTCTradeBalance getBalance(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String key, si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signatureIOExceptionBTCTradeWallet getWallet(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String key, si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.IOExceptionBTCTradeOrder[] getOrders(long since, String type, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String key, si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.since - unix timestamp(UTC timezone). Default is 0, returns all.type - the order type: open, all.IOExceptionBTCTradeOrder getOrder(String id, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String key, si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.id - the order ID.IOExceptionBTCTradeResult cancelOrder(String id, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String key, si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.id - the order ID.IOExceptionBTCTradePlaceOrderResult buy(String amount, String price, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String key, si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.amount - the quantity to buy.price - the price to buy.IOExceptionBTCTradePlaceOrderResult sell(String amount, String price, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String key, si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.amount - the quantity to sell.price - the price to sell.IOExceptionCopyright © 2012–2017 Xeiam, LLC. All rights reserved.