示例#1
0
class INCOME(INVTRAN, SECID, ORIGCURRENCY):
    incometype = OneOf(*INCOMETYPES, required=True)
    total = Decimal(required=True)
    subacctsec = OneOf(*INVSUBACCTS, required=True)
    subacctfund = OneOf(*INVSUBACCTS, required=True)
    taxexempt = Bool()
    withholding = Decimal()
    inv401ksource = OneOf(*INV401KSOURCES)
示例#2
0
文件: Client.py 项目: thonly/ofxtools
 def inctran(self, inctran, dtstart, dtend):
     """ """
     tran = ET.Element('INCTRAN')
     if dtstart:
         ET.SubElement(tran, 'DTSTART').text = DateTime().unconvert(dtstart)
     if dtend:
         ET.SubElement(tran, 'DTEND').text = DateTime().unconvert(dtend)
     ET.SubElement(tran, 'INCLUDE').text = Bool().unconvert(inctran)
     return tran
示例#3
0
class REINVEST(INVTRAN, SECID, ORIGCURRENCY):
    incometype = OneOf(*INCOMETYPES, required=True)
    total = Decimal(required=True)
    subacctsec = OneOf(*INVSUBACCTS)
    units = Decimal(required=True)
    unitprice = Decimal(4, required=True)
    commission = Decimal()
    taxes = Decimal()
    fees = Decimal()
    load = Decimal()
    taxexempt = Bool()
    inv401ksource = OneOf(*INV401KSOURCES)
示例#4
0
class INVBUY(INVTRAN, SECID, ORIGCURRENCY):
    units = Decimal(required=True)
    unitprice = Decimal(4, required=True)
    markup = Decimal()
    commission = Decimal()
    taxes = Decimal()
    fees = Decimal()
    load = Decimal()
    total = Decimal(required=True)
    subacctsec = OneOf(*INVSUBACCTS, required=True)
    subacctfund = OneOf(*INVSUBACCTS, required=True)
    loanid = String(32)
    loanprincipal = Decimal()
    loaninterest = Decimal()
    inv401ksource = OneOf(*INV401KSOURCES)
    dtpayroll = DateTime()
    prioryearcontrib = Bool()
示例#5
0
class INVSELL(INVTRAN, SECID, ORIGCURRENCY):
    units = Decimal(required=True)
    unitprice = Decimal(4, required=True)
    markdown = Decimal()
    commission = Decimal()
    taxes = Decimal()
    fees = Decimal()
    load = Decimal()
    withholding = Decimal()
    taxexempt = Bool()
    total = Decimal(required=True)
    gain = Decimal()
    subacctsec = OneOf(*INVSUBACCTS, required=True)
    subacctfund = OneOf(*INVSUBACCTS, required=True)
    loanid = String(32)
    statewithholding = Decimal()
    penalty = Decimal()
    inv401ksource = OneOf(*INV401KSOURCES)
示例#6
0
文件: Client.py 项目: thonly/ofxtools
 def incbal(self, incbal):
     bal = ET.Element('INCBAL')
     bal.text = Bool().unconvert(incbal)
     return bal
示例#7
0
文件: Client.py 项目: thonly/ofxtools
 def incpos(self, dtasof, incpos):
     pos = ET.Element('INCPOS')
     if dtasof:
         ET.SubElement(pos, 'DTASOF').text = DateTime().unconvert(dtasof)
     ET.SubElement(pos, 'INCLUDE').text = Bool().unconvert(incpos)
     return pos
示例#8
0
文件: Client.py 项目: thonly/ofxtools
 def incoo(self):
     # Include Open Orders - not implemented
     oo = ET.Element('INCOO')
     oo.text = Bool().unconvert(False)
     return oo
示例#9
0
class POSSTOCK(INVPOS):
    unitsstreet = Decimal()
    unitsuser = Decimal()
    reinvdiv = Bool()
示例#10
0
class POSMF(INVPOS):
    unitsstreet = Decimal()
    unitsuser = Decimal()
    reinvdiv = Bool()
    reinvcg = Bool()