MtGoxAPI.OrderType| Modifier and Type | Field and Description |
|---|---|
static double |
AUD_INT_MULTIPLIER |
static double |
BTC_VOL_INT_MULTIPLIER |
static double |
USD_INT_MULTIPLIER |
| Constructor and Description |
|---|
MtGoxServiceImpl(Logger logger,
MtGoxHTTPClient httpAPI,
MtGoxWebSocketClient mtGoxWebSocketApi,
Currency currency) |
| Modifier and Type | Method and Description |
|---|---|
List<Depth> |
getAllDepthSince(long timestamp) |
List<Depth> |
getDepthHistory() |
FullDepth |
getFullDepth() |
Order[] |
getOpenOrders() |
OrderResult |
getOrderResult(MtGoxAPI.OrderType orderType,
String orderRef) |
Ticker |
getTicker() |
List<Ticker> |
getTickerHistory() |
String |
placeMarketOrder(MtGoxAPI.OrderType orderType,
double volume) |
String |
placeOrder(MtGoxAPI.OrderType orderType,
Double price,
double volume) |
public static double USD_INT_MULTIPLIER
public static double AUD_INT_MULTIPLIER
public static double BTC_VOL_INT_MULTIPLIER
public MtGoxServiceImpl(Logger logger, MtGoxHTTPClient httpAPI, MtGoxWebSocketClient mtGoxWebSocketApi, Currency currency)
public List<Depth> getAllDepthSince(long timestamp)
getAllDepthSince in interface MtGoxAPIpublic List<Depth> getDepthHistory()
getDepthHistory in interface MtGoxAPIpublic List<Ticker> getTickerHistory()
getTickerHistory in interface MtGoxAPIpublic FullDepth getFullDepth() throws IOException, Exception
getFullDepth in interface MtGoxAPIIOExceptionExceptionpublic String placeOrder(MtGoxAPI.OrderType orderType, Double price, double volume) throws IOException, NoSuchAlgorithmException, InvalidKeyException, Exception
placeOrder in interface MtGoxAPIIOExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionExceptionpublic String placeMarketOrder(MtGoxAPI.OrderType orderType, double volume) throws IOException, NoSuchAlgorithmException, InvalidKeyException, Exception
placeMarketOrder in interface MtGoxAPIIOExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionExceptionpublic OrderResult getOrderResult(MtGoxAPI.OrderType orderType, String orderRef) throws IOException, NoSuchAlgorithmException, InvalidKeyException, Exception
getOrderResult in interface MtGoxAPIIOExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionExceptionpublic Order[] getOpenOrders() throws IOException, NoSuchAlgorithmException, InvalidKeyException, Exception
getOpenOrders in interface MtGoxAPIIOExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionExceptionpublic Ticker getTicker() throws IOException, Exception
getTicker in interface MtGoxAPIIOExceptionExceptionCopyright © 2012. All Rights Reserved.