Implement initial project structure with logging and token fetching functionality

This commit is contained in:
Nawaz Haider
2026-01-01 18:41:11 +06:00
parent 3e20a07f39
commit bac5bca57d
7 changed files with 170 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import asyncio
from utils.logger import setup_logging
from utils.tokens import fetch_tokens
async def main():
logger = setup_logging()
logger.info("Polymarket HFT Market Maker started")
up_token, down_token, market_slug = await fetch_tokens()
if __name__ == "__main__":
try:
asyncio.run(main())
except KeyboardInterrupt:
print("\nMarket maker stopped by user")
except Exception as e:
print(f"Fatal error: {e}")
exit(1)