Skip to content

PoC PredictIt auto trading bot on tweet count markets

License

Notifications You must be signed in to change notification settings

bradleybernard/PTrader

Repository files navigation

PredictIt Trader

A proof of concept trading bot that purchases "NO" shares for PredictIt.org Twitter count markets. The bot used Twitter's streaming API and PredictIt's API to be the fastest to purchase a "NO" share when a contract was no longer feasible.

Setup

  1. Fetch PredictIt markets through their API based on title "how many tweets will @__ tweet"
  2. Run Twitter HTTP streaming daemon process to subscribe to the scraped Twitter accounts tweets
  3. On a new tweet event, check markets for that Twitter account and trade if the market count just passed a contract
  4. Notifications on successful purchases through email/SMS

Stats

  • Visual interface for markets with graphs and current tweet contract.
  • Also shows recent trades for accounts and their balances.

Example

  • @potus tweets his 30th tweet and there is a contract for 25-29 tweets. The bot would purchase no on the 25-29 contract since the tweet pushed it over that range.

Disclaimer

This application is only a prototype. PredictIt does not allow scraping or extracting data from their site. This bot directly violates their Terms of Service so use at your own risk!

Screenshots

1 2

About

PoC PredictIt auto trading bot on tweet count markets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages