bitshares / bitshares/bitshares-ui
[12] Abstract Order Book - First Step
- Dominant language
- JavaScript
- Stars
- 520
- Forks
- 575
- Avg merge
- 12h 7m
- Merged PRs (30d)
- 5
Description
In order to facilitate usage of HTLC we want to use the already existing exchange component and forge an HTLC order book into it.
In order to be able to do that and allow the user to switch between order book types, or even have them visible at once we need to abstract the order book to create an order book factory (design pattern).
First Step:
- [ ] Analyze existing implementation: What calls are necessary? (e.g. create limit order, market fee, feed price, latest price, standing orders, etc.)
- [ ] Define an interface (design pattern) that reflects the order book and
- [ ] refactor existing logic into one class implementing above interface that consolidate all necessary logic to interact and fetch data from order book (not a component, a simple class)
This first step may not alter existing logic.
Contributor guide
Assessment
This issue has not been assessed yet.