polytrader / polymarket-trading Goto Github PK
View Code? Open in Web Editor NEWSimple cli tool for trading on PolyMarket
License: MIT License
Simple cli tool for trading on PolyMarket
License: MIT License
I've been getting this issue when i try pip install this to a new environment
DeprecationWarning: This library has been renamed to eth-utils. The ethereum-utils package will no longer recieve updates. Please update your dependencies accordingly.
Thank you!
p.s. really love this project you have made, has taught me alot
Currently, this tool just uses the gas price suggested by the RPC endpoint. Add support to let the user supply the gas price.
Add yolo flag to remove all checks and try to execute the trade as fast as possible.
If no gas price is given, use 100 gwei.
When using the code for monitoring it does a ton of lookups to static functions to get a position and collection id each time. These should be memoized so it only ever needs to be done once per market.
The RPC endpoints aren't providing great gas prices, and transactions time out too often. Use the above service to get better gas prices.
Users would like to know what their current open positions are. Create a command to show them.
Instead of forcing it to be matic vigil, you should allow an arbitrary URL as an RPC.
I am using Python 3.9.6 and this error occurs, the RPC is configured correctly. File "c:\users\user\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\user\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\Scripts\pm-trade.exe_main.py", line 7, in
sys.exit(main())
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\polymarket\cli.py", line 159, in main
list_positions(w3, w3.eth.default_account)
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\polymarket\positions.py", line 158, in list_positions
get_all_balances(web3_provider, user, markets)
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\polymarket\positions.py", line 105, in get_all_balances
conditional_token_abi = load_evm_abi('ConditionalTokens.json')
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\polymarket\utils.py", line 18, in load_evm_abi
return json.loads(resources.read_text('polymarket.abi', abi))
AttributeError: module 'importlib_resources' has no attribute 'read_text'
The sell command should let you specify the number of shares to sell, not the total value you want to liquidate.
Approval calls on ERC1155 and ERC20 contracts sometimes don't complete before the transfer function is called, causing the transaction to fail. Add code to ensure the approval transaction was completed before continuing.
Add a link to the Python binaries in the install instructions. This is very useful for people who don't have a Microsoft account.
Simplifies redemption. Also maybe have an auto-redeem command that redeems any positions that have resolved?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.