Basically I want to insert a virtual transaction of a different commodity 
price based on the price of the commodity in the pricedb.

I need help converting the currency in the virtual posting.
Given the following ledger:

=====================================================================

P 2020/06/29 BTC 7497.15 GBP

 = expr 'account =~ /Accounts:Client/'

  (Btc:Stock)  -(??? Need Help Here??? BTC)

2020-06-30  *  (4284af3d-dc3d-4b83-a3c0-f87f013f06f3) 03378c0c

  ; :Credit:Payments:

  Accounts:Client:9cc2fdda06e04c29a40071  35.00 GBP

  Accounts:External:bfc20917a2bd4ca18fb259

=====================================================================
I want the rules to save the 35.00 GBP in BTC as calculated from the 
pricesdb, i.e. -(35.00 GBP / 7497.15 GBP) or -0.004668440674122833 BTC

Any help is appreciated.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/22f1b19a-6e22-48d3-ac61-bdb6c7dba6d9n%40googlegroups.com.

Reply via email to