public class RippleExchange extends BaseExchange implements Exchange
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ROUNDING_SCALE |
static String |
PARAMETER_ROUNDING_SCALE |
static String |
PARAMETER_STORE_TRADE_TRANSACTION_DETAILS |
static String |
PARAMETER_TRUST_API_RIPPLE_COM |
static String |
PARAMETER_VALIDATE_ORDER_REQUESTS |
static String |
REST_API_LOCALHOST_PLAIN_TEXT |
static String |
REST_API_RIPPLE_LABS |
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeService| Constructor and Description |
|---|
RippleExchange() |
| Modifier and Type | Method and Description |
|---|---|
void |
applySpecification(ExchangeSpecification specification) |
void |
clearOrderDetailsCache() |
ExchangeSpecification |
getDefaultExchangeSpecification() |
si.mazi.rescu.SynchronizedValueFactory<Long> |
getNonceFactory() |
int |
getRoundingScale() |
protected void |
initServices() |
boolean |
isStoreTradeTransactionDetails() |
static Date |
ToDate(String datetime)
Converts a datetime string as returned from the Ripple REST API into a java date object.
|
boolean |
validateOrderRequests() |
getAccountService, getExchangeMetaData, getExchangeSpecification, getExchangeSymbols, getMarketDataService, getMetaDataFileName, getTradeService, loadExchangeMetaData, loadMetaData, remoteInit, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAccountService, getExchangeMetaData, getExchangeSpecification, getExchangeSymbols, getMarketDataService, getTradeService, remoteInitpublic static final String REST_API_RIPPLE_LABS
public static final String REST_API_LOCALHOST_PLAIN_TEXT
public static final String PARAMETER_TRUST_API_RIPPLE_COM
public static final String PARAMETER_STORE_TRADE_TRANSACTION_DETAILS
public static final String PARAMETER_VALIDATE_ORDER_REQUESTS
public static final String PARAMETER_ROUNDING_SCALE
public static final int DEFAULT_ROUNDING_SCALE
public static Date ToDate(String datetime) throws ParseException
com.fasterxml.jackson.databind.exc.InvalidFormatExceptionParseExceptionpublic void applySpecification(ExchangeSpecification specification)
applySpecification in interface ExchangeapplySpecification in class BaseExchangeprotected void initServices()
initServices in class BaseExchangepublic ExchangeSpecification getDefaultExchangeSpecification()
getDefaultExchangeSpecification in interface Exchangepublic si.mazi.rescu.SynchronizedValueFactory<Long> getNonceFactory()
getNonceFactory in interface Exchangepublic int getRoundingScale()
public boolean validateOrderRequests()
public boolean isStoreTradeTransactionDetails()
public void clearOrderDetailsCache()
Copyright © 2012–2019 Knowm Inc.. All rights reserved.