On Thursday, February 12, 2026 at 10:48:55 PM UTC+1 [email protected] wrote:

When I submit a buy execution to my broker it gets filled like this:

2020-03-12 * "SMLF" #20200228-tlh-rzv
  Assets:US:Interactive-Brokers        1000 SMLF {31.4550 USD, 2020-03-12} 
@ 31.455 USD
  Assets:US:Interactive-Brokers         400 SMLF {30.5350 USD, 2020-03-12} 
@ 30.535 USD
  Assets:US:Interactive-Brokers         400 SMLF {30.5930 USD, 2020-03-12} 
@ 30.593 USD
  Assets:US:Interactive-Brokers        1600 SMLF {30.5900 USD, 2020-03-12} 
@ 30.59 USD
  Assets:US:Interactive-Brokers         600 SMLF {30.5950 USD, 2020-03-12} 
@ 30.595 USD
  Assets:US:Interactive-Brokers        1600 SMLF {30.6200 USD, 2020-03-12} 
@ 30.62 USD
  Assets:US:Interactive-Brokers         400 SMLF {30.6250 USD, 2020-03-12} 
@ 30.625 USD
  Assets:US:Interactive-Brokers         100 SMLF {30.4800 USD, 2020-03-12} 
@ 30.48 USD
  Assets:US:Interactive-Brokers         100 SMLF {30.4700 USD, 2020-03-12} 
@ 30.47 USD
  Assets:US:Interactive-Brokers         200 SMLF {30.3250 USD, 2020-03-12} 
@ 30.325 USD
  Assets:US:Interactive-Brokers         100 SMLF {30.4650 USD, 2020-03-12} 
@ 30.465 USD
  Assets:US:Interactive-Brokers         400 SMLF {30.4650 USD, 2020-03-12} 
@ 30.465 USD
  Assets:US:Interactive-Brokers         200 SMLF {30.3250 USD, 2020-03-12} 
@ 30.325 USD
  Assets:US:Interactive-Brokers         700 SMLF {30.4750 USD, 2020-03-12} 
@ 30.475 USD
  Assets:US:Interactive-Brokers         100 SMLF {30.5350 USD, 2020-03-12} 
@ 30.535 USD
  Assets:US:Interactive-Brokers         300 SMLF {30.5550 USD, 2020-03-12} 
@ 30.555 USD
  Assets:US:Interactive-Brokers         200 SMLF {30.3250 USD, 2020-03-12} 
@ 30.325 USD
  Assets:US:Interactive-Brokers         200 SMLF {30.5515 USD, 2020-03-12} 
@ 30.5515 USD

Those are all on the same date, so using a date doesn't help discriminate 
lots. I'm not sure what arbitrary label you could pick that is going to be 
meaningful or useful when I go to sell lots and need to correlate things 
with my broker -- they show the per-unit price of the shares in the lot. I 
suppose you could give a text-string label of "31.4550 USD" but...that just 
feels like I'm doing something wrong if I'm resorting to that.


Can’t you specify the lot you want to reduce by specifying its cost basis? 
For example:

2020-05-15 * "Sell some shares" Assets:US:InteractiveBrokers -100 SMLF 
{30.4800 USD}

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/beancount/ee024883-98d7-451e-966d-c68f30e97e7fn%40googlegroups.com.

Reply via email to