Zarathustra2 / TradeRepublicApi

Unofficial trade republic API
MIT License
277 stars 68 forks source link

Fix wrong handling of stock prices exceeding 1000 #7

Closed guijdp closed 3 years ago

guijdp commented 3 years ago

The regex expression to extract the unitary value of each stock doesn't treat the case when unitary stock price exceeds 1000. Current expression separates the value into 2 matches: Example: Value = 2,613.00 EUR => Regex Result [ 2 , 613.00 ] which renders stock value = 2 at the end

image

Zarathustra2 commented 3 years ago

Thanks, I think this is related to #6