Closed cdalton713 closed 2 years ago
'frequency' in 'main' was not used, so the loop was running continuously without taking this config param into question. Added sleep function to slow loop down appropriately. Changed frequency format from minutes to SECONDS
That explains why I kept getting banned while testing! I'll pull the changes and see if I can move forward. Thanks!
Thanks for this, are you able to resolve the conflicts in main.py? There's been an update to the get_new_coins function that improves the execution speed.
Are you able to run a speed benchmark on your version? Current version loops every 0.2s
I fixed those conflicts based on your latest version. A few notes:
generate_coin_seen_dict
you used defaultdict(bool)
. I couldn't figure out why so I made it a normal dict. If it was like that for a reason I missed let me know!
Changes: I have not had a new coin populate yet, so I have not fully tested all of these changes.
added simple tests
'frequency' in 'main' was not used, so the loop was running continuously without taking this config param into question. Added sleep function to slow loop down appropriately. Changed frequency format from minutes to SECONDS
renamed get_price in trade_client.py to avoid confusion
test mode for purchases now gets the current price of the coin and returns a response with the same format as a real request.
Added typings to functions
Refactored folders, cleaned up formatting/typos
added logging and periodic update on program status message
updated gitignore