Last night an Intrade trader found and exploited a bug in my Automated Market Maker, manipulating DEM.PRES-TROOPS.IRAQ until Intrade rejected one of the market maker’s orders for lack of credit and the software shut down.
The bug involves handling of partial executions of orders, and doesn’t appear to be easily fixable (what happened looks nearly identical to the scenarios I had analyzed and thought I had guarded against).
For the moment, I’ve reduced the market maker’s order size to one contract, which will prevent further exploitation but provide much less liquidity.
I will try to fix the bug sometime in November and increase the order size (on the contracts that don’t get expired at election time) by as much as I can without adding more money to the market maker’s account. I will also analyze the information provided by the markets shortly after the election.
3 comments on “Automated Market Maker Problems”
Comments are closed.
Let me know if you’d like me to take a look at the code, either while you’re working on it or after you think you’ve got a fix. I’ll be happy to help get this right.
Pingback: Bayesian Investor Blog » Blog Archive » Automated Market Maker Changes
Pingback: Bayesian Investor Blog » Blog Archive » Automated Market Maker Results