public class CoinExchangeTradingBot extends AbstractContract<java.lang.Object,java.lang.Object>
Modifier and Type | Class and Description |
---|---|
static class |
CoinExchangeTradingBot.AssetAskOrderResponse |
static class |
CoinExchangeTradingBot.AssetExchangeApi |
static class |
CoinExchangeTradingBot.BalanceHolder |
static class |
CoinExchangeTradingBot.CMCApi |
static class |
CoinExchangeTradingBot.CoinExchangeApi |
static interface |
CoinExchangeTradingBot.ExchangeApi |
static class |
CoinExchangeTradingBot.ExchangeOrderResponse |
static class |
CoinExchangeTradingBot.HoldingType |
static class |
CoinExchangeTradingBot.OrderType |
static class |
CoinExchangeTradingBot.PairParams |
static class |
CoinExchangeTradingBot.PairSymbol |
static class |
CoinExchangeTradingBot.PairSymbolJson |
static class |
CoinExchangeTradingBot.PairType |
static interface |
CoinExchangeTradingBot.Params |
static class |
CoinExchangeTradingBot.PriceLevel |
static class |
CoinExchangeTradingBot.SelectExchangeApi |
Constructor and Description |
---|
CoinExchangeTradingBot() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<CoinExchangeTradingBot.PairParams> |
getPairs(JO contractRunnerConfigParams) |
void |
init(InitializationContext context)
Contract initialization.
|
JO |
processBlock(BlockContext context) |
void |
shutdown(ShutdownContext context)
Contract shutdown
|
isDuplicate, processInvocation, processRequest, processTransaction, processVoucher
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
minProductVersion
public void init(InitializationContext context)
Contract
Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.
context
- the contract contextpublic void shutdown(ShutdownContext context)
Contract
Invoked once before destroying the contract class, after any other callback. Use this callback to clean up long running services.
context
- the contract contextpublic JO processBlock(BlockContext context)
processBlock
in interface Contract<java.lang.Object,java.lang.Object>
processBlock
in class AbstractContract<java.lang.Object,java.lang.Object>
protected java.util.List<CoinExchangeTradingBot.PairParams> getPairs(JO contractRunnerConfigParams)