public class OkCoinExchange extends BaseExchange
exchangeSpecification, logger, metaData, pollingAccountService, pollingMarketDataService, pollingTradeService, streamingExchangeService
Constructor and Description |
---|
OkCoinExchange() |
Modifier and Type | Method and Description |
---|---|
void |
applySpecification(ExchangeSpecification exchangeSpecification)
Applies any exchange specific parameters
|
static FuturesContract |
futuresContractOfConfig(ExchangeSpecification exchangeSpecification)
Extract contract used by spec
|
ExchangeSpecification |
getDefaultExchangeSpecification() |
String |
getMetaDataFileName(ExchangeSpecification exchangeSpecification) |
si.mazi.rescu.SynchronizedValueFactory<Long> |
getNonceFactory()
The nonce factory used to create a nonce value.
|
StreamingExchangeService |
getStreamingExchangeService(ExchangeStreamingConfiguration configuration)
A market data service typically consists of a regularly updated list of the available prices for the various symbols
|
getExchangeSpecification, getMetaData, getPollingAccountService, getPollingMarketDataService, getPollingTradeService, initServices, loadExchangeMetaData, loadMetaData, loadMetaData, remoteInit, toString
public void applySpecification(ExchangeSpecification exchangeSpecification)
Exchange
applySpecification
in interface Exchange
applySpecification
in class BaseExchange
exchangeSpecification
- The ExchangeSpecification
public static FuturesContract futuresContractOfConfig(ExchangeSpecification exchangeSpecification)
public ExchangeSpecification getDefaultExchangeSpecification()
public StreamingExchangeService getStreamingExchangeService(ExchangeStreamingConfiguration configuration)
Exchange
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.
getStreamingExchangeService
in interface Exchange
getStreamingExchangeService
in class BaseExchange
configuration
- The exchange-specific configuration to be applied after creationpublic si.mazi.rescu.SynchronizedValueFactory<Long> getNonceFactory()
Exchange
public String getMetaDataFileName(ExchangeSpecification exchangeSpecification)
getMetaDataFileName
in class BaseExchange
Copyright © 2012–2016 Xeiam, LLC. All rights reserved.