Class BasicCassandreStrategy
- All Implemented Interfaces:
CassandreStrategyInterface
These are the classes used by Cassandre to manage a position.
- CassandreStrategyInterface list the methods a strategy type must implement to be able to interact with the Cassandre framework.
- CassandreStrategyConfiguration contains the configuration of the strategy.
- CassandreStrategyDependencies contains all the dependencies required by a strategy and provided by the Cassandre framework.
- CassandreStrategyImplementation is the default implementation of CassandreStrategyInterface, this code manages the interaction between Cassandre framework and a strategy.
- CassandreStrategy (class) is the class that every strategy used by user (BasicCassandreStrategy
must extend. It contains methods to access data and manage orders, trades, positions.
There are the classes used by the developer.
- CassandreStrategy (interface) is the annotation allowing you Cassandre to recognize a user strategy.
- BasicCassandreStrategy - User inherits this class this one to make a basic strategy.
-
Field Summary
Fields inherited from class tech.cassandre.trading.bot.strategy.internal.CassandreStrategyImplementation
configuration, dependencies, lastTickers, userAccounts
Fields inherited from class tech.cassandre.trading.bot.util.base.Base
ACCOUNT_MAPPER, CANDLE_MAPPER, CURRENCY_MAPPER, logger, ORDER_MAPPER, POSITION_MAPPER, STRATEGY_MAPPER, TICKER_MAPPER, TRADE_MAPPER, UTIL_MAPPER
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class tech.cassandre.trading.bot.strategy.internal.CassandreStrategy
canBuy, canBuy, canBuy, canBuy, canSell, canSell, canSell, canSell, closePosition, createBuyLimitOrder, createBuyMarketOrder, createLongPosition, createSellLimitOrder, createSellMarketOrder, createShortPosition, getAccountByAccountId, getAccounts, getAmountsLockedByCurrency, getAmountsLockedByPosition, getEstimatedBuyableAmount, getEstimatedBuyingCost, getGains, getImportedCandles, getImportedCandles, getImportedTickers, getImportedTickers, getLastTickers, getOrderByOrderId, getOrders, getPositionByPositionId, getPositions, getTradeAccount, getTradeAccountBalances, getTradeByTradeId, getTrades, setAutoClose, updatePositionRules
Methods inherited from class tech.cassandre.trading.bot.strategy.internal.CassandreStrategyImplementation
accountsUpdates, getConfiguration, getLastPriceForCurrencyPair, getLastTickerByCurrencyPair, initializeAccounts, ordersUpdates, positionsUpdates, setConfiguration, setDependencies, tickersUpdates, tradesUpdates, updatePositionsWithTickersUpdates
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tech.cassandre.trading.bot.strategy.internal.CassandreStrategyInterface
getRequestedCurrencyPairs, getTradeAccount, initialize, onAccountsUpdates, onOrdersUpdates, onPositionsStatusUpdates, onPositionsUpdates, onTickersUpdates, onTradesUpdates
-
Constructor Details
-
BasicCassandreStrategy
public BasicCassandreStrategy()
-