                                        :value 1000M
                                        :account-id (:id apple-account)
                                        :memo nil
+                                       :transaction-date (t/local-date 2016 1 2)
                                        :index 0
                                        :reconciled? false
                                        :reconciliation-id nil}]}

                                         (assoc :shares 25M
                                                :value 375M
                                                :trade-date (t/local-date 2017 3 1))))
        gains-items (->> {:i.account-id (:id st-capital-gains)}
                         (transactions/search-items storage-spec)
                         (map #(dissoc % :id
                                         :entity-id
                                         :transaction-id
                                         :reconciled?
                                         :reconciliation-id
                                         :created-at
                                         :updated-at
                                         :reconciliation-status)))
        expected [{:transaction-date (t/local-date 2017 3 1)
                   :description "Sell 25 shares of AAPL at 15.000"
                   :action :credit

        _ (trading/sell storage-spec (-> context
                                         sale-attributes
                                         (assoc :shares 25M :value 375M)))
        gains-items (items-by-account (:id lt-capital-gains))
        expected [{:transaction-date (t/local-date 2017 3 2)
                   :description "Sell 25 shares of AAPL at 15.000"
                   :action :credit
