Code for automating connections to online prediction markets