of subsection (e)(1). (e) Definitions and special rules For purposes of this section— (1) Security For purposes of this section, the term security means— (A) any share of stock in a corporation, (B) any partnership or beneficial ownership interest in a partnership or trust, (C) except as provided in paragraph (2), any note, bond, debenture, or other evidence of indebtedness, and (D) any derivative (as defined in section 4476). (2) Exception for certain traded short-term indebtedness A note, bond, debenture, or other evidence of indebtedness which— (A) is traded on, or is subject to the rules of, a qualified board or exchange located in the United States, and (B) has a fixed maturity of not more than 100 days, shall not be treated as described in paragraph (1)(C). (3) Qualified board or exchange The term qualified board or exchange has the meaning given such term by section 1256(g)(7). (f) By whom paid (1) In general The tax imposed by this section shall be paid by— (A) in the case of a transaction which occurs on, or is subject to the rules of, a qualified board or exchange located in the United States, such qualified board or exchange, and (B) in the case of a purchase not described in subparagraph (A) which is executed by a broker (as defined in section 6045(c)(1)) which is a United States person, such broker. (2) Special rules for direct, etc., transactions In the case of any transaction to which paragraph (1) does not apply, the tax imposed by this section shall be paid by— (A) in the case of a transaction described in subsection (d)(1)(A)— (i) the purchaser if the purchaser is a United States person, and (ii) the seller if the purchaser is not a United States person, and (B) in the case of a transaction described in subsection (d)(1)(B)— (i) the payor if the payor is a United States person, and (ii) the payee if the payor is not a United States person. (g) Treatment of exchanges and payments with respect to derivatives For purposes of this section— (1) Treatment of exchanges (A) In general An exchange shall