Package org.knowm.xchange.bitcointoyou
Interface Bitcointoyou
@Path("API/")
@Produces("application/json")
public interface Bitcointoyou
Bitcointoyou Exchange public end-points.
- Author:
- Jonathas Carrijo, Danilo Guimaraes
-
Method Summary
Modifier and Type Method Description BitcointoyouOrderBook
getOrderBook()
Get the public order book at Bitcointoyou ExchangeMap<String,BitcointoyouMarketData>
getTicker()
Get the Bitcointoyou Exchange tickerBitcointoyouPublicTrade[]
getTrades(String currency, Long tradeTimestamp, Long minTradeId)
List all public trades made at Bitcointoyou Exchange.
-
Method Details
-
getTicker
@GET @Path("ticker.aspx") Map<String,BitcointoyouMarketData> getTicker() throws BitcointoyouException, IOExceptionGet the Bitcointoyou Exchange ticker- Returns:
- a
Map
containing an instance ofBitcointoyouMarketData
- Throws:
BitcointoyouException
IOException
-
getOrderBook
@GET @Path("orderbook.aspx") BitcointoyouOrderBook getOrderBook() throws BitcointoyouException, IOExceptionGet the public order book at Bitcointoyou Exchange- Returns:
- an instance of
BitcointoyouOrderBook
- Throws:
BitcointoyouException
IOException
-
getTrades
@GET @Path("trades.aspx") BitcointoyouPublicTrade[] getTrades(@QueryParam("currency") String currency, @QueryParam("timestamp") Long tradeTimestamp, @QueryParam("tid") Long minTradeId) throws BitcointoyouException, IOExceptionList all public trades made at Bitcointoyou Exchange.- Parameters:
currency
- the currency. BTC or LTC. OptionaltradeTimestamp
- trade timestamp, in UNIX Time format. Filter trades made after the provided timestamp. OptionalminTradeId
- minimum trade ID. Filter trades made which tradeID is greater or equal tominTradeId
. Optional- Returns:
- an array of
BitcointoyouPublicTrade
- Throws:
BitcointoyouException
IOException
-