@Path(value="/Trading/tradingApi.php")
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
public interface BitbayAuthenticated
| Modifier and Type | Method and Description |
|---|---|
BitbayCancelResponse |
cancel(String apiKey,
si.mazi.rescu.ParamsDigest sign,
si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
long id)
cancel - removes offer from the stock market
|
List<Map> |
history(String apiKey,
si.mazi.rescu.ParamsDigest sign,
si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
String currency,
int limit) |
BitbayAccountInfoResponse |
info(String apiKey,
si.mazi.rescu.ParamsDigest sign,
si.mazi.rescu.SynchronizedValueFactory<Long> timestamp)
info - returns information about account balances
|
List<BitbayOrder> |
orders(String apiKey,
si.mazi.rescu.ParamsDigest sign,
si.mazi.rescu.SynchronizedValueFactory<Long> timestamp)
orders - list of all your offers
|
BitbayTradeResponse |
trade(String apiKey,
si.mazi.rescu.ParamsDigest sign,
si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
String type,
String currency,
BigDecimal amount,
String paymentCurrency,
BigDecimal rate)
trade - places offer at the stock market
|
List<Map> |
transactions(String apiKey,
si.mazi.rescu.ParamsDigest sign,
si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
String market) |
@POST @FormParam(value="method") BitbayAccountInfoResponse info(@HeaderParam(value="API-Key") String apiKey, @HeaderParam(value="API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam(value="moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp) throws IOException
IOException@POST @FormParam(value="method") BitbayTradeResponse trade(@HeaderParam(value="API-Key") String apiKey, @HeaderParam(value="API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam(value="moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam(value="type") String type, @FormParam(value="currency") String currency, @FormParam(value="amount") BigDecimal amount, @FormParam(value="payment_currency") String paymentCurrency, @FormParam(value="rate") BigDecimal rate) throws IOException
Input:
type : offer type bid/buy or ask/sell currency : shortcut of main currency for offer (e.g. “BTC”) amount : quantity of main currency payment_currency : shortcut of currency used to pay for offer (e.g. “PLN”) rate : rate for offer
IOException@POST @FormParam(value="method") BitbayCancelResponse cancel(@HeaderParam(value="API-Key") String apiKey, @HeaderParam(value="API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam(value="moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam(value="id") long id) throws IOException
Input:
id : id used to recognize offer; you get it from trade method output
IOException@POST @FormParam(value="method") List<BitbayOrder> orders(@HeaderParam(value="API-Key") String apiKey, @HeaderParam(value="API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam(value="moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp) throws IOException
Input:
(optional) limit : number of rows to show; if no specified, returns latest 50 orders
IOException@POST @FormParam(value="method") List<Map> history(@HeaderParam(value="API-Key") String apiKey, @HeaderParam(value="API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam(value="moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam(value="currency") String currency, @FormParam(value="limit") int limit)
@POST @FormParam(value="method") List<Map> transactions(@HeaderParam(value="API-Key") String apiKey, @HeaderParam(value="API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam(value="moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam(value="market") String market)
Copyright © 2012–2018 Knowm Inc.. All rights reserved.