Giter VIP home page Giter VIP logo

Comments (4)

camille-bouvy-frequenz avatar camille-bouvy-frequenz commented on June 12, 2024

Was this completed? It shouldn't have been done because we agreed not to remove this field in the end

from frequenz-api-electricity-trading.

matthias-wende-frequenz avatar matthias-wende-frequenz commented on June 12, 2024

We agreed that one of filled or open can be removed due to redundancy. In case I missed the discussion about not removing it, can you please give context, why this shouldn't be removed?

from frequenz-api-electricity-trading.

camille-bouvy-frequenz avatar camille-bouvy-frequenz commented on June 12, 2024

We agreed that one of filled or open can be removed due to redundancy

When or where? I thought we concluded on not removing it but I cannot find this conversation and my memory might be tricking me.

why this shouldn't be removed?

Currently, the app is using the filled_quantity field to make some informed trading decisions. This could indeed be deducted by the subtraction but I think it's more intuitive & user friendly to have both. I also looked into how other markets were doing and they have a similar approach, I don't think it's that terrible to keep both to be honest.

from frequenz-api-electricity-trading.

camille-bouvy-frequenz avatar camille-bouvy-frequenz commented on June 12, 2024

ChatGPT's take on it:

In the context of designing an API for electricity trading, the presence of open quantity, filled quantity, and the original quantity fields in the OrderDetail message can indeed be seen as redundant from a strict data normalization perspective. However, redundancy in API design is not always a bad practice, especially if it enhances usability and reduces the likelihood of client-side calculation errors.

In financial and trading markets, APIs often prioritize usability and convenience, sometimes at the cost of strict normalization. It's common to see APIs providing both open and filled quantities for the reasons mentioned above. Given the context and the typical practices in trading APIs, retaining both open_quantity and filled_quantity fields in the OrderDetail message is justified. It aligns with a user-centric approach, ensuring that users have all the necessary information at their fingertips without needing to perform additional calculations.

from frequenz-api-electricity-trading.

Related Issues (12)

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.