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

Goroutine to support multiple markets #15

Open
ianeinser opened this issue Sep 23, 2021 · 1 comment
Open

Goroutine to support multiple markets #15

ianeinser opened this issue Sep 23, 2021 · 1 comment

Comments

@ianeinser
Copy link

Hi @sudhanshu-pantelwar ,

first of all, i would like to thank you for this wonderful library. I have a question regarding modification to support multiple markets.

Can you point where i should start to call go func() {}() ? I suppose I should embed here but got no clue how to do so. Can you help?

`var pairBook *engine.OrderBook
if val, ok := e.book[req.GetPair()]; ok {
pairBook = val
} else {
pairBook = engine.NewOrderBook()
e.book[req.GetPair()] = pairBook
}

ordersProcessed, partialOrder := pairBook.Process(order)

ordersProcessedString, err := json.Marshal(ordersProcessed)`

regards

@github-actions
Copy link

Message that will be displayed on users' first issue

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

No branches or pull requests

1 participant