Viewing a single comment thread. View all comments

moldy912 t1_jcux509 wrote

Yeah I mean if it’s possible, you could definitely pass the curve through a filter or smoothing function or transform it into a Bézier curve.

13

TiborUdvari OP t1_jcuynqp wrote

Also thought about that next, but was worried that I might blow my API key limits. Set up a server to get the live data, caching etc. Crédit Suisse was crashing way faster that that. This way you can go ahead and get any stock ticket in the background. Just use the little 📈 button in the corner to activate the stock interaction.

3

Tm1337 t1_jcvi2kc wrote

That doesn't make sense. If you already have the graph it's simple to somehow smooth it in javascript without any API call.

My first try would be a moving average, which is really simple to implement and adjust.

6

TiborUdvari OP t1_jcvlsud wrote

I don't have the data for the graph, it's an embed. I tried the API way at the beginning, but changed direction to this.

8