Yes, the equivalent in JBT is onBookSnapshot(). It is called every second. On 7/16/12, Ali <[email protected]> wrote: > Greetings, > Is there an onMarketChange() method (in Strategy) in JBookTrader similar to > > the one in JSystemTrader? I am trying to use the the price of the last > market trade to calculate the profit/loss for my current position in real > time. > > Is onBookSnapshot() the equivalent in JBT? With something like: > price = marketbook.getSnapshot().getPrice(); > > Thanks. > > > -- > You received this message because you are subscribed to the Google Groups > "JBookTrader" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/jbooktrader/-/gFWK2vKwl_cJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/jbooktrader?hl=en. > >
-- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en.
