This commit is contained in:
2026-04-01 17:37:19 +00:00
parent 8d7d99d749
commit 259ea93479
21 changed files with 2900 additions and 436 deletions

View File

@@ -13,6 +13,8 @@ from sqlalchemy import text
import websockets
from sqlalchemy.ext.asyncio import create_async_engine
import valkey
import os
from dotenv import load_dotenv
### Allow only ipv4 ###
def allowed_gai_family():
@@ -28,7 +30,8 @@ VAL_KEY = None
### Logging ###
LOG_FILEPATH: str = '/root/logs/Polymarket_Pionex_Trades.log'
load_dotenv()
LOG_FILEPATH: str = os.getenv("LOGS_PATH") + '/Polymarket_Pionex_Trades.log'
### Globals ###
WSS_URL = "wss://ws.pionex.com/wsPub"