public interface MtGoxHTTPClient
| Modifier and Type | Interface and Description |
|---|---|
static class |
MtGoxHTTPClient.OrderType |
| Modifier and Type | Method and Description |
|---|---|
OrderCancelResult |
cancelOrder(MtGoxHTTPClient.OrderType orderType,
String orderRef)
Cancel an existing order.
|
OrderCancelResult |
cancelOrder(Order order) |
AccountInfo |
getAccountInfo()
Get private information about the currently logged-in account
|
Currency |
getBaseCurrency() |
CurrencyInfo |
getCurrencyInfo(Currency currency)
Get MtGox special information about a currency.
|
CurrencyInfo |
getCurrencyInfo(String currencyCode)
Get MtGox special information about a currency.
|
FullDepth |
getFullDepth()
Get the market full depth from the MtGox exchange
|
Order[] |
getOpenOrders()
A private function that requires credentials.
|
OrderResult |
getOrderResult(MtGoxHTTPClient.OrderType orderType,
String orderRef)
Return the result of an order request
|
Ticker |
getTicker()
Request the current ticker from MtGox
|
String |
placeMarketOrder(MtGoxHTTPClient.OrderType orderType,
MtGoxBitcoin volume)
Place a bitcoin order at market price.
|
String |
placeOrder(MtGoxHTTPClient.OrderType orderType,
MtGoxFiatCurrency price,
MtGoxBitcoin volume)
Place a bitcoin order at a particular price
|
SendBitcoinsTransaction |
sendBitcoins(String destinationAddress,
MtGoxBitcoin bitcoins,
MtGoxBitcoin fee,
boolean isNoInstant,
boolean isGreen)
Send bitcoins from your MtGox account balance to a bitcoin address.
|
Currency getBaseCurrency()
FullDepth getFullDepth() throws Exception
ExceptionOrder[] getOpenOrders() throws Exception
ExceptionOrderResult getOrderResult(MtGoxHTTPClient.OrderType orderType, String orderRef) throws Exception
orderType - Bid or AskorderRef - The reference string that was returned when the order
was
pleacedExceptionTicker getTicker() throws Exception
ExceptionString placeMarketOrder(MtGoxHTTPClient.OrderType orderType, MtGoxBitcoin volume) throws Exception
orderType - Bid or Askvolume - The volume of bitcoinsExceptionString placeOrder(MtGoxHTTPClient.OrderType orderType, MtGoxFiatCurrency price, MtGoxBitcoin 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(MtGoxHTTPClient.OrderType orderType, String orderRef) throws Exception
orderType - Bid or AskorderRef - The reference returned when the order was placedExceptionOrderCancelResult cancelOrder(Order order) throws Exception
ExceptionSendBitcoinsTransaction sendBitcoins(String destinationAddress, MtGoxBitcoin bitcoins, MtGoxBitcoin fee, boolean isNoInstant, boolean isGreen) throws Exception
destinationAddress - The destination bitcoin address that should
receive the fundsbitcoins - The amount of bitcoins to transfer from your
MtGox accountfee - The fee you would like to pay the networkisNoInstant - If true, use the bitcoin blockchain, even if
the receiving address is on MtGoxisGreen - If true, use a greenaddress
https://en.bitcoin.it/wiki/GreenAddressExceptionCopyright © 2013. All Rights Reserved.