Skip to content

Provide meaningful code example for C implementation #17

Description

@kvak

Dear nlsdfnbch,

Thanks for your work on this library.

I had a quick question. The following sequence of orders leads to a raise NotImplementedError:

        from lob import LimitOrderBook, Order
        lob = LimitOrderBook()
        orders = [
            Order(uid=5879, is_bid=False, size=550, price=26.0),
            Order(uid=5879, is_bid=False, size=0, price=26.0),
            Order(uid=5880, is_bid=False, size=80, price=38.0),
            Order(uid=5881, is_bid=False, size=100, price=22.7)
            ]
        
        for order in orders:
             lob.process(order)

This has been discussed here.

My question is: could you put out a small code example for calling the C implementation? The test sets are a really tough access point for non C literates~.

Basically, an example, say run the list of orders above but calling the C code, would really help!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions