alpacahq / alpaca-trade-api-go

Go client for Alpaca's trade API
Apache License 2.0
320 stars 87 forks source link

invalid limit_price sub-penny increment does not fulfill minimum pricing criteria #260

Closed nickforce closed 1 year ago

nickforce commented 1 year ago

Hi, I'm getting this error when limit orders are submitted using the mean-reversion example:

did not go through: invalid limit_price 41.085. sub-penny increment does not fulfill minimum pricing criteria (HTTP 422, Code 42210000). panic: runtime error: invalid memory address or nil pointer dereference