Code: Select all
java.lang.AssertionError: Strategy that is not marked as trading strategy attempted to trade
at velox.api.layer1.layers.w.d(SourceFile:106)
at java.base/java.lang.Thread.run(Unknown Source)
Code: Select all
var SimpleOrderSendParametersBuilder = Packages.velox.api.layer1.data.SimpleOrderSendParametersBuilder
var simpleOrderBuilder = new SimpleOrderSendParametersBuilder("test", true, 1)
simpleOrderBuilder.setTakeProfitOffset(1)
simpleOrderBuilder.setStopLossOffset(2)
api.sendOrder(simpleOrderBuilder.build())
Can I also use these in live markets (except dxfeed) ?