gofinance / ib

Pure Go interface to Interactive Brokers IB API
386 stars 120 forks source link

Fix reading contract SecIDList #34

Closed indrekj closed 5 years ago

indrekj commented 6 years ago

range copies the values from the slice we are iterating over. We don't want to change copied values. Instead we want to mutate the contract sec ID list. See https://stackoverflow.com/questions/15945030/change-values-while-iterating-in-golang

indrekj commented 5 years ago

cc @benalexau @emtq @creack