Package org.knowm.xchange.ripple
Class RippleExchange
- java.lang.Object
-
- org.knowm.xchange.BaseExchange
-
- org.knowm.xchange.ripple.RippleExchange
-
- All Implemented Interfaces:
org.knowm.xchange.Exchange
public class RippleExchange extends org.knowm.xchange.BaseExchange implements org.knowm.xchange.Exchange
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_ROUNDING_SCALEstatic StringPARAMETER_ROUNDING_SCALEstatic StringPARAMETER_STORE_TRADE_TRANSACTION_DETAILSstatic StringPARAMETER_TRUST_API_RIPPLE_COMstatic StringPARAMETER_VALIDATE_ORDER_REQUESTSstatic StringREST_API_LOCALHOST_PLAIN_TEXTstatic StringREST_API_RIPPLE_LABS
-
Constructor Summary
Constructors Constructor Description RippleExchange()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplySpecification(org.knowm.xchange.ExchangeSpecification specification)voidclearOrderDetailsCache()org.knowm.xchange.ExchangeSpecificationgetDefaultExchangeSpecification()si.mazi.rescu.SynchronizedValueFactory<Long>getNonceFactory()intgetRoundingScale()protected voidinitServices()booleanisStoreTradeTransactionDetails()static DateToDate(String datetime)Converts a datetime string as returned from the Ripple REST API into a java date object.booleanvalidateOrderRequests()-
Methods inherited from class org.knowm.xchange.BaseExchange
getAccountService, getExchangeMetaData, getExchangeSpecification, getExchangeSymbols, getMarketDataService, getMetaDataFileName, getTradeService, loadExchangeMetaData, loadMetaData, remoteInit, toString
-
-
-
-
Field Detail
-
REST_API_RIPPLE_LABS
public static final String REST_API_RIPPLE_LABS
- See Also:
- Constant Field Values
-
REST_API_LOCALHOST_PLAIN_TEXT
public static final String REST_API_LOCALHOST_PLAIN_TEXT
- See Also:
- Constant Field Values
-
PARAMETER_TRUST_API_RIPPLE_COM
public static final String PARAMETER_TRUST_API_RIPPLE_COM
- See Also:
- Constant Field Values
-
PARAMETER_STORE_TRADE_TRANSACTION_DETAILS
public static final String PARAMETER_STORE_TRADE_TRANSACTION_DETAILS
- See Also:
- Constant Field Values
-
PARAMETER_VALIDATE_ORDER_REQUESTS
public static final String PARAMETER_VALIDATE_ORDER_REQUESTS
- See Also:
- Constant Field Values
-
PARAMETER_ROUNDING_SCALE
public static final String PARAMETER_ROUNDING_SCALE
- See Also:
- Constant Field Values
-
DEFAULT_ROUNDING_SCALE
public static final int DEFAULT_ROUNDING_SCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
ToDate
public static Date ToDate(String datetime) throws ParseException
Converts a datetime string as returned from the Ripple REST API into a java date object. The string is the UTC time in format yyyy-MM-dd'T'hh:mm:ss.SSS'Z' e.g. 2015-06-13T11:45:20.102Z- Throws:
com.fasterxml.jackson.databind.exc.InvalidFormatExceptionParseException
-
applySpecification
public void applySpecification(org.knowm.xchange.ExchangeSpecification specification)
- Specified by:
applySpecificationin interfaceorg.knowm.xchange.Exchange- Overrides:
applySpecificationin classorg.knowm.xchange.BaseExchange
-
initServices
protected void initServices()
- Specified by:
initServicesin classorg.knowm.xchange.BaseExchange
-
getDefaultExchangeSpecification
public org.knowm.xchange.ExchangeSpecification getDefaultExchangeSpecification()
- Specified by:
getDefaultExchangeSpecificationin interfaceorg.knowm.xchange.Exchange
-
getNonceFactory
public si.mazi.rescu.SynchronizedValueFactory<Long> getNonceFactory()
- Specified by:
getNonceFactoryin interfaceorg.knowm.xchange.Exchange
-
getRoundingScale
public int getRoundingScale()
-
validateOrderRequests
public boolean validateOrderRequests()
-
isStoreTradeTransactionDetails
public boolean isStoreTradeTransactionDetails()
-
clearOrderDetailsCache
public void clearOrderDetailsCache()
-
-