@Path(value="/")
@Produces(value="application/json")
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.
|
@GET @Path(value="ticker") BTCTradeTicker getTicker() throws IOException
IOException@GET @Path(value="depth") BTCTradeDepth getDepth() throws IOException
IOException@GET @Path(value="trades") BTCTradeTrade[] getTrades() throws IOException
IOException@GET @Path(value="trades") BTCTradeTrade[] getTrades(@QueryParam(value="since") long since) throws IOException
since, in reverse chronological order.since - the trade ID.IOException@POST @Path(value="getsecret") BTCTradeSecretResponse getSecret(@FormParam(value="api_passphrase") String passphrase, @FormParam(value="key") String key) throws IOException
passphrase - the API private key.key - the API public key.IOException@POST @Path(value="balance") BTCTradeBalance getBalance(@FormParam(value="nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam(value="key") String key, @FormParam(value="signature") si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signatureIOException@POST @Path(value="wallet") BTCTradeWallet getWallet(@FormParam(value="nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam(value="key") String key, @FormParam(value="signature") si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.IOException@POST @Path(value="orders") BTCTradeOrder[] getOrders(@FormParam(value="since") long since, @FormParam(value="type") String type, @FormParam(value="nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam(value="key") String key, @FormParam(value="signature") 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@POST @Path(value="fetch_order") BTCTradeOrder getOrder(@FormParam(value="id") String id, @FormParam(value="nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam(value="key") String key, @FormParam(value="signature") si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.id - the order ID.IOException@POST @Path(value="cancel_order") BTCTradeResult cancelOrder(@FormParam(value="id") String id, @FormParam(value="nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam(value="key") String key, @FormParam(value="signature") si.mazi.rescu.ParamsDigest signature) throws IOException
nonce - the nonce.key - the API public key.signature - the signature.id - the order ID.IOException@POST @Path(value="buy") BTCTradePlaceOrderResult buy(@FormParam(value="amount") String amount, @FormParam(value="price") String price, @FormParam(value="nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam(value="key") String key, @FormParam(value="signature") 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@POST @Path(value="sell") BTCTradePlaceOrderResult sell(@FormParam(value="amount") String amount, @FormParam(value="price") String price, @FormParam(value="nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam(value="key") String key, @FormParam(value="signature") 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–2018 Knowm Inc.. All rights reserved.