gofinance / ib

Pure Go interface to Interactive Brokers IB API
392 stars 122 forks source link

Fix reading contract SecIDList #34

Closed indrekj closed 6 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 6 years ago

cc @benalexau @emtq @creack