Skip to main content
1 of 2

Check out Avellaneda and Stoikov (2008)

They model the market maker's problem in a very neat and easy to code way. Some caveats of the model, in case you do decide to use it:

i) the price process is the simplest one possible, does not consider drift or market impact of your orders;

ii) orders that are not executed are cancelled at the end of each time step (this has no cost to you, but it is something to pay attention to when you are trading, so as to not 'forget' orders in the book.