Package com.barchart.feed.api.model.data.Book

Examples of com.barchart.feed.api.model.data.Book.Entry


          .append(" EventTime=")
          .append(value.updated());

        final Top top = value.book().top();
       
        Entry entry = top.ask();
       
        if (!entry.isNull()) {
          sb.append(" ASK TOP").append(" price=")
              .append(entry.price().asDouble())
              .append(" qty=").append(entry.size().asDouble());
        }
       
        entry = top.bid();
       
        if (!entry.isNull()) {
          sb.append(" BID TOP").append(" price=")
              .append(entry.price().asDouble())
              .append(" qty=").append(entry.size().asDouble());
        }

        System.out.println(sb.toString());

       
View Full Code Here


          .append(" EventTime=")
          .append(value.updated());

        final Top top = value.book().top();
       
        Entry entry = top.ask();
       
        if (!entry.isNull()) {
          sb.append(" ASK TOP").append(" price=")
              .append(entry.price().asDouble())
              .append(" qty=").append(entry.size().asDouble());
        }
       
        entry = top.bid();
       
        if (!entry.isNull()) {
          sb.append(" BID TOP").append(" price=")
              .append(entry.price().asDouble())
              .append(" qty=").append(entry.size().asDouble());
        }

        System.out.println(sb.toString());

       
View Full Code Here

TOP

Related Classes of com.barchart.feed.api.model.data.Book.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.