orderbook icon indicating copy to clipboard operation
orderbook copied to clipboard

Methods to return data as list

Open bmoscon opened this issue 2 years ago • 3 comments

Provide following methods to export data:

  1. prices() - returns list of prices for each level (would be called on .bids or .asks)
  2. to_list() - like to dict, but returns a list of pairs (price, size) for each level in the side (would be called on .bids or .asks)
  3. ob.to_list() - like above, but would be a dict {bids: [(price, size)..., asks: [....]}

bmoscon avatar Oct 24 '21 19:10 bmoscon

Hi, i want to known this feature any progress?

lijiachang avatar May 14 '22 05:05 lijiachang

@bmoscon Looking forward to your reply

lijiachang avatar May 16 '22 16:05 lijiachang

@lijiachang i havent started this yet

bmoscon avatar May 23 '22 12:05 bmoscon

done

bmoscon avatar Aug 26 '22 14:08 bmoscon