/
Bitbay.java
37 lines (30 loc) · 1 KB
/
Bitbay.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.xeiam.xchange.bitbay;
import java.io.IOException;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.xeiam.xchange.bitbay.dto.marketdata.BitbayOrderBook;
import com.xeiam.xchange.bitbay.dto.marketdata.BitbayTicker;
import com.xeiam.xchange.bitbay.dto.marketdata.BitbayTrade;
/**
* @author kpysniak
*/
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public interface Bitbay {
/**
* @return Bitbay ticker
* @throws IOException
*/
@GET
@Path("{currencyPair}/ticker.json")
public BitbayTicker getBitbayTicker(@PathParam("currencyPair") String currencyPair) throws IOException;
@GET
@Path("{currencyPair}/orderbook.json")
public BitbayOrderBook getBitbayOrderBook(@PathParam("currencyPair") String currencyPair) throws IOException;
@GET
@Path("{currencyPair}/trades.json")
public BitbayTrade[] getBitbayTrades(@PathParam("currencyPair") String currencyPair) throws IOException;
}