public interface Exchange
Interface to provide the following to applications:
The consumer is given a choice of a default (no-args) or configured accessor
Modifier and Type | Method and Description |
---|---|
void |
applySpecification(ExchangeSpecification exchangeSpecification)
Applies any exchange specific parameters
|
ExchangeSpecification |
getDefaultExchangeSpecification() |
ExchangeSpecification |
getExchangeSpecification() |
ExchangeMetaData |
getMetaData()
The MetaData defining some semi-static properties of an exchange such as currency pairs, trading fees, etc.
|
si.mazi.rescu.SynchronizedValueFactory<Long> |
getNonceFactory()
The nonce factory used to create a nonce value.
|
PollingAccountService |
getPollingAccountService()
An account service typically provides access to the user's private exchange data
|
PollingMarketDataService |
getPollingMarketDataService()
A market data service typically consists of a regularly updated list of the available prices for the various symbols
|
PollingTradeService |
getPollingTradeService()
An trade service typically provides access to trading functionality
|
StreamingExchangeService |
getStreamingExchangeService(ExchangeStreamingConfiguration configuration)
A market data service typically consists of a regularly updated list of the available prices for the various symbols
|
void |
remoteInit()
Initialize this instance with the remote meta data.
|
ExchangeSpecification getExchangeSpecification()
ExchangeMetaData getMetaData()
si.mazi.rescu.SynchronizedValueFactory<Long> getNonceFactory()
ExchangeSpecification getDefaultExchangeSpecification()
void applySpecification(ExchangeSpecification exchangeSpecification)
exchangeSpecification
- The ExchangeSpecification
PollingMarketDataService getPollingMarketDataService()
A market data service typically consists of a regularly updated list of the available prices for the various symbols
This is the non-streaming (blocking) version of the service
StreamingExchangeService getStreamingExchangeService(ExchangeStreamingConfiguration configuration)
A market data service typically consists of a regularly updated list of the available prices for the various symbols
This is the streaming (non-blocking and event driven) version of the service, and requires an application to provide a suitable implementation of the listener to allow event callbacks to take place.
configuration
- The exchange-specific configuration to be applied after creationPollingTradeService getPollingTradeService()
An trade service typically provides access to trading functionality
Typically access is restricted by a secret API key and/or username password authentication which are usually provided in the
ExchangeSpecification
PollingAccountService getPollingAccountService()
An account service typically provides access to the user's private exchange data
Typically access is restricted by a secret API key and/or username password authentication which are usually provided in the
ExchangeSpecification
void remoteInit() throws IOException, ExchangeException
getMetaData()
. Some exchanges
require it before using some of their services.IOException
ExchangeException
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.