The CSV parsing code doesn't handle fields with embedded commas (e.g. "S&P 500 INDEX,RTH") and try to split the field, which results in bad data being returned and saved on the DB.

Try it for yourself with the S&P 500 index, code ^GSPC

The attached patch fix this issue.

CommentFileSizeAuthor
stockapi-csvfix.patch832 bytesflaviovs

Comments

kbahey’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5.x and HEAD.

Should be available in the 5.x-dev branch soon.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.