Files
pricing/src/data/database_interaction.py

13 lines
258 B
Python
Raw Normal View History

import psycopg2
conn = psycopg2.connect(
dbname="options_db",
user="quant_user",
password="strong_password",
host="144.91.73.49",
port="5432"
)
cursor = conn.cursor()
cursor.execute("SELECT * FROM underlyings;")
print(cursor.fetchall())