Resetting utils subtree.
This commit is contained in:
@@ -302,7 +302,7 @@ def setup_zerodha_kite_feed(
|
||||
except: print(f"FAILED: {broker_token: ^15} | {broker_symbol: ^30} | ")
|
||||
invalid_broken_token_count += 1
|
||||
print("\nTOTAL:", invalid_broken_token_count)
|
||||
not_found_df = total_instruments_df[total_instruments_df["broker_token"].isin(not_found_broker_tokens)]
|
||||
not_found_df = total_instruments_df[total_instruments_df["broker_token"].isin(not_found_broker_tokens)].copy()
|
||||
not_found_df['expiry_date'] = pd.to_datetime(not_found_df['expiry_date'])
|
||||
not_found_df['expiry_date'] = not_found_df['expiry_date'].dt.strftime('%Y-%m-%d')
|
||||
# print(not_found_df.to_string())
|
||||
@@ -361,7 +361,8 @@ async def get_auth_token(
|
||||
max_connections = script_cred["mongoDb"]["data"]["poolSize"],
|
||||
debug = debug
|
||||
)
|
||||
await data_mongo.connect()
|
||||
con = await data_mongo.connect()
|
||||
print("CON", con)
|
||||
|
||||
# ┳┓ ┓• ┏┓ ┓
|
||||
# ┣┫┏┓┏┫┓┏ ━━ ┃ ┏┓┏┣┓┏┓
|
||||
@@ -428,7 +429,7 @@ def init(
|
||||
# Get the script credentials:
|
||||
response = http_client.get(
|
||||
url = r"https://nexcom.ditscentre.in/internal/cred/get",
|
||||
headers = {"X-Script-Id": script_id}
|
||||
headers = {"X-Script-Id": "kps_prod_nFCaozwnVP"}
|
||||
)
|
||||
if response.status_code not in [200]:
|
||||
print("FATAL: SCRIPT CREDENTIALS LOADING FAILED!")
|
||||
@@ -459,15 +460,18 @@ def init(
|
||||
config = ProducerKafka.create_config(
|
||||
bootstrap_servers = producer_creds["config"]["bootstrapServers"],
|
||||
security_protocol = producer_creds["config"].get("securityProtocol", "PLAINTEXT"),
|
||||
ca_file = producer_creds["config"].get("caFile"),
|
||||
cert_file = producer_creds["config"].get("certFile"),
|
||||
key_file = producer_creds["config"].get("keyFile"),
|
||||
# ca_file = producer_creds["config"].get("caFile"),
|
||||
# cert_file = producer_creds["config"].get("certFile"),
|
||||
# key_file = producer_creds["config"].get("keyFile"),
|
||||
ca_file = "/home/python-dev-debug/PycharmProjects/api_utils_converse_v2/creds/kafka/cert_authority.pem",
|
||||
cert_file = "/home/python-dev-debug/PycharmProjects/api_utils_converse_v2/creds/kafka/fullchain.pem",
|
||||
key_file = "/home/python-dev-debug/PycharmProjects/api_utils_converse_v2/creds/kafka/privkey.pem",
|
||||
client_id = f"{SERVER_HOSTNAME}_{TOKEN_KEY}",
|
||||
acks = producer_creds["config"].get("acks", 1),
|
||||
retries = producer_creds["config"].get("retries", 1),
|
||||
linger_ms = producer_creds["config"].get("lingerMs", 0),
|
||||
misc_json = {
|
||||
"queue.buffering.max.messages": 2_00_000
|
||||
"queue.buffering.max.messages": 2_50_000
|
||||
}
|
||||
),
|
||||
topic = producer_creds["topic"],
|
||||
@@ -487,9 +491,12 @@ def init(
|
||||
group_id = f"{SERVER_HOSTNAME}_{TOKEN_KEY}",
|
||||
auto_offset_reset = consumer_creds["config"].get("autoOffsetReset", "latest"),
|
||||
security_protocol = consumer_creds["config"].get("securityProtocol", "PLAINTEXT"),
|
||||
ca_file = consumer_creds["config"].get("caFile"),
|
||||
cert_file = consumer_creds["config"].get("certFile"),
|
||||
key_file = consumer_creds["config"].get("keyFile"),
|
||||
# ca_file = consumer_creds["config"].get("caFile"),
|
||||
# cert_file = consumer_creds["config"].get("certFile"),
|
||||
# key_file = consumer_creds["config"].get("keyFile"),
|
||||
ca_file="/home/python-dev-debug/PycharmProjects/api_utils_converse_v2/creds/kafka/cert_authority.pem",
|
||||
cert_file="/home/python-dev-debug/PycharmProjects/api_utils_converse_v2/creds/kafka/fullchain.pem",
|
||||
key_file="/home/python-dev-debug/PycharmProjects/api_utils_converse_v2/creds/kafka/privkey.pem",
|
||||
client_id = f"{SERVER_HOSTNAME}_{TOKEN_KEY}"
|
||||
),
|
||||
topic = consumer_creds["topic"],
|
||||
|
||||
Reference in New Issue
Block a user