Code Monkey home page Code Monkey logo

Comments (3)

anujnetwork avatar anujnetwork commented on August 15, 2024

Found the magic in client app

    Instrument config = instruments.get(instrument);

    String priceFormat = config.getPriceFormat();
    String sizeFormat  = config.getSizeFormat();

    String format = "%12s %16s %c %8s " + sizeFormat + " " + priceFormat;

    return String.format(LOCALE, format,
            Timestamps.format(timestamp / NANOS_PER_MILLI), orderId, side,
            ASCII.unpackLong(instrument), quantity / config.getSizeFactor(),
            price / config.getPriceFactor());

from parity.

anujnetwork avatar anujnetwork commented on August 15, 2024

Why Instrument.java is not used in Parity System in Matching Engine

from parity.

jvirtanen avatar jvirtanen commented on August 15, 2024

Why would you want to set it?

The matching engine solely operates on the minimum price and quantity increment because that is much simpler (integers as opposed to decimal numbers). Decimal digits are used purely for visual purposes in client applications.

You have opened 8 issues within 24 hours, most of which are not really issues but rather questions about the project. As you have noticed by closing some of these issues yourself, most of the things you can figure out just by reading the available documentation or thinking about the subject a bit more before reaching out for help.

I suggest using the chat for these kind of questions from now on.

from parity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.