-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement price()
and price_history()
#68
Milestone
Comments
AlexTheWizardL
added this to the Implement remaining abstract methods in CashCtrlLedger milestone
Aug 6, 2024
Proposed solution and understanding:
|
After trying to implement this issue I've discovered new pitfalls of the Cashctrl API:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue covers creating
price()
andprice_history()
methods that are described in the abstract classGeneral understanding:
In previous meetings, we've decided that
add_price()
anddelete_price
methods are not available in thecashctrl
system (this is now mentioned in the milestone description).In the
Standalone_Ledger,
these prices are stored as a class field called_prices
. Price entity can containticker
,currency
,price
, anddate
fields.Ticker
is a concept that can be represented by any name and has some price. For example ticker -cow
can cost 100 USD, tickercat
can cost 10 UAH. Also, that price can vary in time, for example in 2024cow
costs 100 USD but in 2025 it costs 200 USDFollowing questions:
price
along withticker
should be stored in the scope ofCashctrl_ledger
?add_price()
method is not available in thecashctrl
system then what sense ofget
methods if we can not create a price?cashctrl
system?The text was updated successfully, but these errors were encountered: