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
IOException
BTCTradeDepth getDepth() throws IOException
IOException
BTCTradeTrade[] getTrades() throws IOException
IOException
BTCTradeTrade[] getTrades(long since) throws IOException
since
, in reverse chronological order.since
- the trade ID.IOException
BTCTradeSecretResponse getSecret(String passphrase, String key) throws IOException
passphrase
- the API private key.key
- the API public key.IOException
BTCTradeBalance 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 signatureIOException
BTCTradeWallet 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.IOException
BTCTradeOrder[] 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.IOException
BTCTradeOrder 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.IOException
BTCTradeResult 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.IOException
BTCTradePlaceOrderResult 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.IOException
BTCTradePlaceOrderResult 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.IOException
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.