bidask icon indicating copy to clipboard operation
bidask copied to clipboard

vectorized version

Open igaloly opened this issue 1 year ago • 2 comments

Is that possible to get a vectorized python version?

igaloly avatar May 04 '24 00:05 igaloly

What do you mean exactly? Maybe a function to compute rolling spreads as proposed in https://github.com/eguidotti/bidask/pull/8?

eguidotti avatar May 04 '24 18:05 eguidotti

@eguidotti The edge procedure gets a list of open, high, low, close, and returns a number, right? the spread. Imagine i want to do this to all the expending subsets of the list. In other words, and efficient way do to that: [edge(open[:i], high[:i], close[:i], low[:i]) for i in range(len(open))]

igaloly avatar May 04 '24 20:05 igaloly

I prefer not to add complexity in the implementation here to maintain consistency with the implementations in other languages. Hopefully, your solution should already be fast enough

eguidotti avatar Aug 14 '24 16:08 eguidotti