类 TradeIntent
java.lang.Object
org.dromara.northstar.strategy.model.TradeIntent
- 所有已实现的接口:
TickDataAware,TransactionAware
交易意图
封装自动撤单追单逻辑
- 作者:
- KevinHuangwl
-
构造器概要
构造器构造器说明TradeIntent(Contract contract, SignalOperation operation, PriceType priceType, double price, int volume, long timeout, Predicate<Double> priceDiffConditionToAbort) -
方法概要
-
构造器详细资料
-
TradeIntent
public TradeIntent(Contract contract, SignalOperation operation, PriceType priceType, double price, int volume, long timeout, Predicate<Double> priceDiffConditionToAbort)
-
-
方法详细资料
-
onTick
- 指定者:
onTick在接口中TickDataAware
-
onOrder
从接口复制的说明:TransactionAware响应订单事件- 指定者:
onOrder在接口中TransactionAware- 参数:
order-
-
onTrade
从接口复制的说明:TransactionAware响应成交事件- 指定者:
onTrade在接口中TransactionAware- 参数:
trade-
-
hasTerminated
public boolean hasTerminated() -
setContext
-
toString
-