예제 #1
0
파일: models.py 프로젝트: tgoetze/ofxtools
class SELLDEBT(INVSELL):
    sellreason = OneOf('CALL', 'SELL', 'MATURITY', required=True)
    accrdint = Decimal()
예제 #2
0
class BUYMF(Aggregate):
    """ OFX section 13.9.2.4.4 """

    invbuy = SubAggregate(INVBUY, required=True)
    buytype = OneOf(*BUYTYPES, required=True)
    relfitid = String(255)
예제 #3
0
class BUYSTOCK(Aggregate):
    """ OFX section 13.9.2.4.4 """

    invbuy = SubAggregate(INVBUY, required=True)
    buytype = OneOf(*BUYTYPES, required=True)
예제 #4
0
class OOBUYSTOCK(Aggregate):
    """ OFX section 13.9.2.5.2 """

    oo = SubAggregate(OO, required=True)
    buytype = OneOf(*BUYTYPES, required=True)
예제 #5
0
class POSOPT(Aggregate):
    """ OFX section 13.9.2.6.1 """

    invpos = SubAggregate(INVPOS, required=True)
    secured = OneOf("NAKED", "COVERED")
예제 #6
0
class OOSELLOPT(Aggregate):
    """ OFX section 13.9.2.5.2 """

    oo = SubAggregate(OO, required=True)
    optselltype = OneOf(*OPTSELLTYPES, required=True)
예제 #7
0
class OOBUYOPT(Aggregate):
    """ OFX section 13.9.2.5.2 """

    oo = SubAggregate(OO, required=True)
    optbuytype = OneOf(*OPTBUYTYPES, required=True)
예제 #8
0
class OTHERINFO(Aggregate):
    """ OFX Section 13.8.5.5 """
    secinfo = SubAggregate(SECINFO, required=True)
    typedesc = String(32)
    assetclass = OneOf(*ASSETCLASSES)
    fiassetclass = String(32)
예제 #9
0
class PMTPRCSTS(Aggregate):
    """ OFX Section 12.5.2.7 """
    pmtprccode = OneOf("WILLPROCESSON", "PROCESSEDON", "NOFUNDSON", "FAILEDON",
                       "CANCELEDON", required=True)
    dtpmtprc = DateTime(required=True)
예제 #10
0
파일: models.py 프로젝트: tgoetze/ofxtools
class POSOPT(INVPOS):
    secured = OneOf('NAKED', 'COVERED')
예제 #11
0
파일: models.py 프로젝트: tgoetze/ofxtools
class STATUS(Aggregate):
    code = Integer(6, required=True)
    severity = OneOf('INFO', 'WARN', 'ERROR', required=True)
    message = String(255)
예제 #12
0
파일: models.py 프로젝트: tgoetze/ofxtools
class SELLSTOCK(INVSELL):
    selltype = OneOf(*SELLTYPES, required=True)
예제 #13
0
파일: models.py 프로젝트: tgoetze/ofxtools
class SELLOPT(INVSELL):
    optselltype = OneOf('SELLTOCLOSE', 'SELLTOOPEN', required=True)
    shperctrct = Integer(required=True)
    relfitid = String(255)
    reltype = OneOf('SPREAD', 'STRADDLE', 'NONE', 'OTHER')
    secured = OneOf('NAKED', 'COVERED')
예제 #14
0
파일: models.py 프로젝트: tgoetze/ofxtools
class SELLMF(INVSELL):
    selltype = OneOf(*SELLTYPES, required=True)
    avgcostbasis = Decimal()
    relfitid = String(255)
예제 #15
0
class SWITCHMF(Aggregate):
    """ OFX section 13.9.2.5.2 """
    oo = SubAggregate(OO, required=True)
    secid = SubAggregate(SECID, required=True)
    unittype = OneOf(*UNITTYPES, required=True)
    switchall = Bool(required=True)
예제 #16
0
class BPACCTINFO(Aggregate):
    """ OFX Section 12.5.1 """
    bankacctfrom = SubAggregate(BANKACCTFROM, required=True)
    svcstatus = OneOf(*SVCSTATUSES, required=True)
예제 #17
0
파일: i18n.py 프로젝트: cloudydata/ofxtools
class ORIGCURRENCY(Aggregate):
    """ OFX section 5.2 """

    currate = Decimal(required=True)
    cursym = OneOf(*CURRENCY_CODES, required=True)
예제 #18
0
class PORTION(Aggregate):
    """OFX section 13.8.5.3"""

    assetclass = OneOf(*ASSETCLASSES, required=True)
    percent = Decimal(required=True)
예제 #19
0
class OOSELLSTOCK(Aggregate):
    """ OFX section 13.9.2.5.2 """

    oo = SubAggregate(OO, required=True)
    selltype = OneOf(*SELLTYPES, required=True)
예제 #20
0
class INVBANKTRAN(Aggregate):
    """ OFX section 13.9.2.3 """
    stmttrn = SubAggregate(STMTTRN, required=True)
    subacctfund = OneOf(*INVSUBACCTS, required=True)
예제 #21
0
class OOBUYOTHER(Aggregate):
    """ OFX section 13.9.2.5.2 """

    oo = SubAggregate(OO, required=True)
    unittype = OneOf(*UNITTYPES, required=True)
예제 #22
0
class JRNLFUND(Aggregate):
    """ OFX section 13.9.2.4.4 """
    invtran = SubAggregate(INVTRAN, required=True)
    subacctto = OneOf(*INVSUBACCTS, required=True)
    subacctfrom = OneOf(*INVSUBACCTS, required=True)
    total = Decimal(required=True)
예제 #23
0
class PROFRQ(Aggregate):
    """ OFX section 7.1.5 """

    clientrouting = OneOf("NONE", "SERVICE", "MSGSET", required=True)
    dtprofup = DateTime(required=True)
예제 #24
0
class SELLMF(Aggregate):
    """ OFX section 13.9.2.4.4 """
    invsell = SubAggregate(INVSELL, required=True)
    selltype = OneOf(*SELLTYPES, required=True)
    avgcostbasis = Decimal()
    relfitid = String(255)
예제 #25
0
class RECURRINST(Aggregate):
    """ OFX section 10.2 """

    ninsts = Integer(3)
    freq = OneOf(*FREQUENCIES, required=True)
예제 #26
0
class SELLSTOCK(Aggregate):
    """ OFX section 13.9.2.4.4 """
    invsell = SubAggregate(INVSELL, required=True)
    selltype = OneOf(*SELLTYPES, required=True)
예제 #27
0
class BUYOPT(Aggregate):
    """ OFX section 13.9.2.4.4 """

    invbuy = SubAggregate(INVBUY, required=True)
    optbuytype = OneOf(*OPTBUYTYPES, required=True)
    shperctrct = Integer(required=True)
예제 #28
0
class OOSELLMF(Aggregate):
    """ OFX section 13.9.2.5.2 """
    oo = SubAggregate(OO, required=True)
    selltype = OneOf(*SELLTYPES, required=True)
    unittype = OneOf(*UNITTYPES, required=True)
    sellall = Bool(required=True)
예제 #29
0
class SELLDEBT(Aggregate):
    """ OFX section 13.9.2.4.4 """

    invsell = SubAggregate(INVSELL, required=True)
    sellreason = OneOf("CALL", "SELL", "MATURITY", required=True)
    accrdint = Decimal()
예제 #30
0
파일: models.py 프로젝트: tgoetze/ofxtools
class RETOFCAP(INVTRAN, SECID, ORIGCURRENCY):
    total = Decimal(required=True)
    subacctsec = OneOf(*INVSUBACCTS, required=True)
    subacctfund = OneOf(*INVSUBACCTS, required=True)
    inv401ksource = OneOf(*INV401KSOURCES)