Package org.knowm.xchange.cobinhood
Interface Cobinhood
- All Known Subinterfaces:
CobinhoodAuthenticated
@Path("v1")
@Produces("application/json")
public interface Cobinhood
-
Method Summary
Modifier and Type Method Description CobinhoodResponse<CobinhoodCurrencies>currencies()Retrieves a list of all currencies.CobinhoodResponse<CobinhoodOrderBook.Container>orders(String symbol, Integer limit)The call for order booksCobinhoodResponse<CobinhoodTickers>tick()Retrieves all tickers.CobinhoodResponse<CobinhoodTicker.Container>tick(String symbol)Retrieves a ticker.CobinhoodResponse<CobinhoodTrades>trades(String symbol, Integer limit)The call for recent tradesCobinhoodResponse<CobinhoodTradingPairs>tradingPairs()Retrieves a list of all trading pairs.
-
Method Details
-
tick
@GET @Path("market/tickers/{symbol}") CobinhoodResponse<CobinhoodTicker.Container> tick(@PathParam("symbol") String symbol) throws IOException, CobinhoodExceptionRetrieves a ticker.- Parameters:
symbol- the currency pair- Returns:
- Throws:
IOExceptionCobinhoodException
-
tick
@GET @Path("market/tickers") CobinhoodResponse<CobinhoodTickers> tick() throws IOException, CobinhoodExceptionRetrieves all tickers.- Returns:
- Throws:
IOExceptionCobinhoodException
-
currencies
@GET @Path("market/currencies") CobinhoodResponse<CobinhoodCurrencies> currencies() throws IOException, CobinhoodExceptionRetrieves a list of all currencies.- Returns:
- Throws:
IOExceptionCobinhoodException
-
orders
@GET @Path("market/orderbooks/{symbol}") CobinhoodResponse<CobinhoodOrderBook.Container> orders(@PathParam("symbol") String symbol, @QueryParam("limit") Integer limit) throws IOException, CobinhoodExceptionThe call for order books- Parameters:
symbol- the currency pairlimit- order book length limit- Returns:
- Throws:
IOExceptionCobinhoodException
-
tradingPairs
@GET @Path("market/trading_pairs") CobinhoodResponse<CobinhoodTradingPairs> tradingPairs() throws IOException, CobinhoodExceptionRetrieves a list of all trading pairs.- Returns:
- Throws:
IOExceptionCobinhoodException
-
trades
@GET @Path("market/trades/{symbol}") CobinhoodResponse<CobinhoodTrades> trades(@PathParam("symbol") String symbol, @QueryParam("limit") Integer limit) throws IOException, CobinhoodExceptionThe call for recent trades- Parameters:
symbol- the currency pairlimit- trades length limit- Returns:
- Throws:
IOExceptionCobinhoodException
-