public class KrakenAccountServiceRaw extends KrakenBasePollingService
kraken, signatureCreator
exchange
Constructor and Description |
---|
KrakenAccountServiceRaw(Exchange exchange)
Constructor
|
Modifier and Type | Method and Description |
---|---|
KrakenDepositAddress[] |
getDepositAddresses(String currency,
String method,
boolean newAddress) |
KrakenDepositMethods[] |
getDepositMethods(String assetPairs,
String assets) |
Map<String,BigDecimal> |
getKrakenBalance()
To avoid having to map to Kraken currency codes (e.g., ZUSD) use
KrakenAccountService.getAccountInfo() instead. |
Map<String,KrakenLedger> |
getKrakenLedgerInfo()
Retrieves the full account Ledger which represents all account asset activity.
|
Map<String,KrakenLedger> |
getKrakenLedgerInfo(LedgerType ledgerType,
String start,
String end,
String offset,
String... assets)
Retrieves the Ledger which represents all account asset activity.
|
KrakenTradeBalanceInfo |
getKrakenTradeBalance()
Retrieves the user's trade balance using the default currency ZUSD to determine the balance.
|
KrakenTradeBalanceInfo |
getKrakenTradeBalance(String valuationCurrency) |
KrakenTradeVolume |
getTradeVolume(CurrencyPair... currencyPairs) |
WithdrawInfo |
getWithdrawInfo(String assetPairs,
String assets,
String key,
BigDecimal amount) |
Map<String,KrakenLedger> |
queryKrakenLedger(String... ledgerIds) |
Withdraw |
withdraw(String assetPairs,
String assets,
String key,
BigDecimal amount) |
checkResult, createDelimitedString, createKrakenCurrencyPair, createKrakenCurrencyPair, delimitAssetPairs, delimitAssets, delimitSet, getExchangeSymbols, getKrakenAssetPairs, getKrakenAssets, getKrakenCurrencyCode, getServerTime
verifyOrder, verifyOrder, verifyOrder
public KrakenAccountServiceRaw(Exchange exchange)
exchange
- public Map<String,BigDecimal> getKrakenBalance() throws IOException
KrakenAccountService.getAccountInfo()
instead.IOException
public KrakenDepositAddress[] getDepositAddresses(String currency, String method, boolean newAddress) throws IOException
IOException
public KrakenDepositMethods[] getDepositMethods(String assetPairs, String assets) throws IOException
IOException
public WithdrawInfo getWithdrawInfo(String assetPairs, String assets, String key, BigDecimal amount) throws IOException
IOException
public Withdraw withdraw(String assetPairs, String assets, String key, BigDecimal amount) throws IOException
IOException
public KrakenTradeBalanceInfo getKrakenTradeBalance(String valuationCurrency) throws IOException
valuationCurrency
- - Base asset used to determine balance (can be null, defaults to USD). The asset should be provided in the form of a
standard currency code, i.e., EUR. It will be converted to the appropriate Kraken Asset code.IOException
public KrakenTradeBalanceInfo getKrakenTradeBalance() throws IOException
IOException
public Map<String,KrakenLedger> getKrakenLedgerInfo() throws IOException
IOException
public Map<String,KrakenLedger> getKrakenLedgerInfo(LedgerType ledgerType, String start, String end, String offset, String... assets) throws IOException
assets
- - Set of assets to restrict output to (can be null, defaults to all)ledgerType
- - LedgerType
to retrieve (can be null, defaults to all types)start
- - starting unix timestamp or ledger id of results (can be null)end
- - ending unix timestamp or ledger id of results (can be null)offset
- - result offset (can be null)IOException
public Map<String,KrakenLedger> queryKrakenLedger(String... ledgerIds) throws IOException
IOException
public KrakenTradeVolume getTradeVolume(CurrencyPair... currencyPairs) throws IOException
IOException
Copyright © 2012–2016 Xeiam, LLC. All rights reserved.