Package org.knowm.xchange.mercadobitcoin
Interface MercadoBitcoin
@Path("api")
@Produces("application/json")
public interface MercadoBitcoin
- Author:
- Matija Mazi, Felipe Micaroni Lalli - See https://www.mercadobitcoin.net/api/ and https://www.mercadobitcoin.net/trade-api/ for up-to-date docs.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetOrderBook
(String baseCurrency) Returns "bids" and "asks".getTransactions
(String baseCurrency) getTransactions
(String baseCurrency, Long startTimestamp) getTransactions
(String baseCurrency, Long startTimestamp, Long endTimestamp)
-
Method Details
-
getOrderBook
@GET @Path("/{baseCurrency}/orderbook/") MercadoBitcoinOrderBook getOrderBook(@PathParam("baseCurrency") String baseCurrency) throws IOException Returns "bids" and "asks". Each is a list of open orders and each order is represented as a list of price and amount.- Throws:
IOException
-
getTicker
@GET @Path("/{baseCurrency}/ticker/") MercadoBitcoinTicker getTicker(@PathParam("baseCurrency") String baseCurrency) throws IOException - Throws:
IOException
-
getTransactions
@GET @Path("/{baseCurrency}/trades/") MercadoBitcoinTransaction[] getTransactions(@PathParam("baseCurrency") String baseCurrency) throws IOException - Throws:
IOException
-
getTransactions
@GET @Path("/{baseCurrency}/trades/{start_timestamp: [0-9]}/") MercadoBitcoinTransaction[] getTransactions(@PathParam("baseCurrency") String baseCurrency, @PathParam("start_timestamp") Long startTimestamp) throws IOException - Throws:
IOException
-
getTransactions
@GET @Path("/{baseCurrency}/trades/{start_timestamp: [0-9]}/{end_timestamp: [0-9]}/") MercadoBitcoinTransaction[] getTransactions(@PathParam("baseCurrency") String baseCurrency, @PathParam("start_timestamp") Long startTimestamp, @PathParam("end_timestamp") Long endTimestamp) throws IOException - Throws:
IOException
-