Skip to content

phelps-sg/learning-market-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electronic market-making using reinforcement-learning

This repo contains a Python implementation of the basic model described in Chan, Nicholas Tung, and Christian Shelton. "An electronic market-maker." (2001).

Example usage:

from chan_and_shelton import *
import matplotlib.pyplot as plt
learner, results = learning_experiment()
print("Greedy policy is ", learner.greedy_policy())
print("Q table: ", learner.as_DataFrame())
p_f, p_mm, imb, r, a = results
plt.figure()
plt.plot(p_f)
plt.plot(p_mm)
plt.show()

About

Python implementation of the basic model described in Chan, Nicholas Tung, and Christian Shelton. "An electronic market-maker."

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Languages