-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(#111): allow SOR codebase to be used as library #112
Conversation
feat(#111): builds upon `facilitate-as-library-use` branch
@@ -12,6 +12,7 @@ module GeniusYield.OrderBot.Types | |||
, OrderAssetPair (OAssetPair, currencyAsset, commodityAsset) | |||
, OrderType (..) | |||
, SOrderType (..) | |||
, SOrderTypeI (..) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I defined this class for writing lookupBest
function inside OrderBook.Extra
module.
, FillType (..) | ||
, MatchExecutionInfo (..) | ||
, completeFill | ||
, partialFill |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not new definitions, but rather moved here from another module.
@@ -27,12 +27,20 @@ signature GeniusYield.OrderBot.OrderBook ( | |||
-- * Order book construction | |||
populateOrderBook, | |||
buildOrderBookList, | |||
emptyOrders, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New utilities to make strategy implementation agnostic of underlying orderbook implementation.
@@ -0,0 +1,49 @@ | |||
{-| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved contents of Main
to this module instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #111.