Skip to main content
Abacus Labs gives every trade in one shape. Brokers differ in one place: how you tell them which tax lots to sell. Abacus Labs reads that from the account’s lot_selection (or from broker) and plans for it. Why the rules on lots:
  • Quantities add up to the trade. Public and E*TRADE require it.
  • At most 8 lots. Public’s limit. Abacus Labs splits larger sells.
  • At most one partial lot, last. DriveWealth takes lot ids without quantities; it sells them in order.
  • choose_by. US tax rules let the person name specific lots until the trade settles. After that the broker’s default (usually first in, first out) applies.
Lot ids are the broker’s own (lot.id as you sent it). Broker lot ids can change after a partial sale or a corporate action, so fetch lots on the day you trade and send them with the request. Order fields map directly: side to the broker’s buy/sell, quantity in shares, id as the client order id, order.type and order.time_in_force.