Package org.knowm.xchange.ftx
Class FtxExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.ftx.FtxExchange
- All Implemented Interfaces:
Exchange
- Direct Known Subclasses:
FtxStreamingExchange
public class FtxExchange extends BaseExchange implements Exchange
-
Field Summary
Fields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeService
-
Constructor Summary
Constructors Constructor Description FtxExchange()
-
Method Summary
Modifier and Type Method Description AccountService
getAccountService()
An account service typically provides access to the user's private exchange dataFtxBorrowingServiceRaw
getBorrowingService()
ExchangeSpecification
getDefaultExchangeSpecification()
FtxLendingServiceRaw
getLendingService()
MarketDataService
getMarketDataService()
A market data service typically consists of a regularly updated list of the available prices for the various symbolsTradeService
getTradeService()
An trade service typically provides access to trading functionalityprotected void
initServices()
void
remoteInit()
Initialize this instance with the remote meta data.Methods inherited from class org.knowm.xchange.BaseExchange
applySpecification, getExchangeMetaData, getExchangeSpecification, getExchangeSymbols, getMetaDataFileName, getNonceFactory, loadExchangeMetaData, loadMetaData, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.knowm.xchange.Exchange
applySpecification, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getExchangeSymbols, getNonceFactory, getResilienceRegistries
-
Constructor Details
-
FtxExchange
public FtxExchange()
-
-
Method Details
-
initServices
protected void initServices()- Specified by:
initServices
in classBaseExchange
-
getDefaultExchangeSpecification
- Specified by:
getDefaultExchangeSpecification
in interfaceExchange
- Returns:
- A default ExchangeSpecification to use during the creation process if one is not supplied
-
remoteInit
Description copied from interface:Exchange
Initialize this instance with the remote meta data. Most exchanges require this method to be called beforeExchange.getExchangeMetaData()
. Some exchanges require it before using some of their services.- Specified by:
remoteInit
in interfaceExchange
- Overrides:
remoteInit
in classBaseExchange
- Throws:
IOException
ExchangeException
-
getMarketDataService
Description copied from interface:Exchange
A market data service typically consists of a regularly updated list of the available prices for the various symbolsThis is the non-streaming (blocking) version of the service
- Specified by:
getMarketDataService
in interfaceExchange
- Overrides:
getMarketDataService
in classBaseExchange
- Returns:
- The exchange's market data service
-
getAccountService
Description copied from interface:Exchange
An account service typically provides access to the user's private exchange dataTypically access is restricted by a secret API key and/or username password authentication which are usually provided in the
ExchangeSpecification
- Specified by:
getAccountService
in interfaceExchange
- Overrides:
getAccountService
in classBaseExchange
- Returns:
- The exchange's account service
-
getTradeService
Description copied from interface:Exchange
An trade service typically provides access to trading functionalityTypically access is restricted by a secret API key and/or username password authentication which are usually provided in the
ExchangeSpecification
- Specified by:
getTradeService
in interfaceExchange
- Overrides:
getTradeService
in classBaseExchange
- Returns:
- The exchange's trade service
-
getLendingService
-
getBorrowingService
-