Skip to content

Goroutine to support multiple markets #15

@ianeinser

Description

@ianeinser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions