Skip to content

EllAchE/pm_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Polymarket Flask API

This project was built on top of PolyTrader's https://github.com/PolyTrader/polymarket CLI tool; this just replaces the argparse/cli methods with a local flask server. README for that CLI tool is below.

Run the api locally and send trades via localhost.

trade-cli

Simple cli tool for trading on PolyMarket

Installation on Windows

  • Install Python from Microsoft
  • Install Visual Studio C++ Build Tools
  • Open a terminal
  • Run pip install polymarket-trading
  • Run pm-trade -h to display help

Trading Setup

  • Create a new wallet on the matic chain
  • Create your matic RPC endpoint on https://rpc.maticvigil.com/ (or other RPC provider)
  • Set env variables
    • POLYGON_PRIVATE_KEY
    • MATIC_VIGIL_RPC_KEY or RPC_URI
  • Fund your trading wallet with matic and usdc

Made some money from this tool and want to contribute? Donate to these charities.

About

Flask server abstracting engagement with the polygon mainnet; specifically polymarket smart contracts. Supports buy, sell, redeem, listing positions etc. Built on top of existing code from PolyTrader, see README.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages