Skip to content
Discussion options

You must be logged in to vote

It worked once I used the code below. It allows me to keep a single list of all stocks.

def stockinfoTest():
stockinfo = []

ofxstring=m.STOCKINFO(
    secinfo=m.SECINFO(
        secid=m.SECID(uniqueid='FB',uniqueidtype='TICKER'), 
        secname='Facebook'
    )
)
stockinfo.append(ofxstring)

ofxstring=m.STOCKINFO(
    secinfo=m.SECINFO(
        secid=m.SECID(uniqueid='AMEX',uniqueidtype='TICKER'), 
        secname='American Express'
    )
)
stockinfo.append(ofxstring)

seclistmsgsrsv1 = m.SECLISTMSGSRSV1(
    m.SECLIST(*stockinfo)
)

return seclistmsgsrsv1

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@andrebeliveau
Comment options

@andrebeliveau
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by andrebeliveau
Comment options

You must be logged in to vote
1 reply
@csingley
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants