Skip to content
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

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

sourabhxyz
Copy link
Member

@sourabhxyz sourabhxyz commented Oct 11, 2024

Closes #111.

@sourabhxyz sourabhxyz marked this pull request as ready for review October 11, 2024 13:15
@sourabhxyz sourabhxyz requested a review from a team as a code owner October 11, 2024 13:15
@sourabhxyz sourabhxyz changed the title feat(#111): mark visibility as public of some of component libraries feat(#111): allow this SOR code to be used as library Oct 14, 2024
@sourabhxyz sourabhxyz changed the title feat(#111): allow this SOR code to be used as library feat(#111): allow SOR codebase to be used as library Oct 14, 2024
@@ -12,6 +12,7 @@ module GeniusYield.OrderBot.Types
, OrderAssetPair (OAssetPair, currencyAsset, commodityAsset)
, OrderType (..)
, SOrderType (..)
, SOrderTypeI (..)
Copy link
Member Author

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.

Comment on lines +24 to +27
, FillType (..)
, MatchExecutionInfo (..)
, completeFill
, partialFill
Copy link
Member Author

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,
Copy link
Member Author

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 @@
{-|
Copy link
Member Author

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.

Copy link
Contributor

@4TT1L4 4TT1L4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sourabhxyz sourabhxyz merged commit 4e98915 into main Oct 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

facilitate use of sor as an importable library
2 participants