public interface MtGoxAPI
| Modifier and Type | Interface and Description |
|---|---|
static class |
MtGoxAPI.OrderType |
| Modifier and Type | Method and Description |
|---|---|
OrderCancelResult |
cancelOrder(MtGoxAPI.OrderType orderType,
String orderRef)
Cancel an existing order.
|
AccountInfo |
getAccountInfo()
Get private information about the currently logged-in account
|
List<Depth> |
getAllDepthSince(long timestamp)
Get all depth events since a particular time (or whenever this api object
was created)
|
List<Trade> |
getAllTradesSince(long timestamp)
Get all trade events since a particular time (or whenever this api object
was created)
|
Currency |
getBaseCurrency() |
CurrencyInfo |
getCurrencyInfo(Currency currency)
Get MtGox special information about a currency.
|
CurrencyInfo |
getCurrencyInfo(String currencyCode)
Get MtGox special information about a currency.
|
List<Depth> |
getDepthHistory()
Get all depth events since this api object was created
|
FullDepth |
getFullDepth()
Get the market full depth from the MtGox exchange
|
Order[] |
getOpenOrders()
A provate function that requires credentials.
|
OrderResult |
getOrderResult(MtGoxAPI.OrderType orderType,
String orderRef)
Return the result of an order request
|
Ticker |
getTicker()
Request the current ticker from MtGox
|
List<Ticker> |
getTickerHistory()
Get all ticker events since this api object was created
|
List<Trade> |
getTradeHistory()
Get all trade events since this api object was created
|
String |
placeMarketOrder(MtGoxAPI.OrderType orderType,
MtGoxUnitOfCredit volume)
Place a bitcoin order at market price.
|
String |
placeOrder(MtGoxAPI.OrderType orderType,
MtGoxUnitOfCredit price,
MtGoxUnitOfCredit volume)
Place a bitcoin order at a particular price
|
Currency getBaseCurrency()
FullDepth getFullDepth() throws Exception
ExceptionOrder[] getOpenOrders() throws Exception
ExceptionOrderResult getOrderResult(MtGoxAPI.OrderType orderType, String orderRef) throws Exception
orderType - Bid or AskorderRef - The reference string that was returned when the order was
pleacedExceptionList<Depth> getAllDepthSince(long timestamp)
timestamp - The java timestamp to return events since.List<Trade> getAllTradesSince(long timestamp)
timestamp - The java timestamp to return trades since.List<Depth> getDepthHistory()
List<Ticker> getTickerHistory()
List<Trade> getTradeHistory()
Ticker getTicker() throws Exception
ExceptionString placeMarketOrder(MtGoxAPI.OrderType orderType, MtGoxUnitOfCredit volume) throws Exception
orderType - Bid or Askvolume - The volume of bitcoinsExceptionString placeOrder(MtGoxAPI.OrderType orderType, MtGoxUnitOfCredit price, MtGoxUnitOfCredit volume) throws Exception
orderType - Bid or Askprice - The price in the base currency of this api instancevolume - The volume of bitcoinsExceptionAccountInfo getAccountInfo() throws Exception
ExceptionCurrencyInfo getCurrencyInfo(Currency currency) throws Exception
currency - The java currencyExceptionCurrencyInfo getCurrencyInfo(String currencyCode) throws Exception
currencyCode - The currency codeExceptionOrderCancelResult cancelOrder(MtGoxAPI.OrderType orderType, String orderRef) throws Exception
orderType - Bid or AskorderRef - The reference string that was returned when the order was
placedExceptionCopyright © 2013. All Rights Reserved.