1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-01 11:48:38 -04:00

Add requesting/parsing security list

This commit is contained in:
2017-03-20 21:07:58 -04:00
parent f59f3713c2
commit a0e2c146e4
5 changed files with 277 additions and 9 deletions

View File

@ -21,7 +21,7 @@ type Response struct {
//<WIREXFERMSGSETV1>
//<BILLPAYMSGSETV1>
//<EMAILMSGSETV1>
//<SECLISTMSGSETV1>
Securities []Message //<SECLISTMSGSETV1>
//<PRESDIRMSGSETV1>
//<PRESDLVMSGSETV1>
Profile []Message //<PROFMSGSETV1>
@ -281,7 +281,12 @@ func ParseResponse(reader io.Reader) (*Response, error) {
//case "WIREXFERMSGSRSV1":
//case "BILLPAYMSGSRSV1":
//case "EMAILMSGSRSV1":
//case "SECLISTMSGSRSV1":
case "SECLISTMSGSRSV1":
msgs, err := DecodeSecuritiesMessageSet(decoder, start)
if err != nil {
return nil, err
}
or.Securities = msgs
//case "PRESDIRMSGSRSV1":
//case "PRESDLVMSGSRSV1":
case "PROFMSGSRSV1":