db path
This commit is contained in:
parent
00f78d170f
commit
6dfbe0fb14
|
|
@ -8,7 +8,7 @@ import time
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import math
|
import math
|
||||||
import statistics
|
import statistics
|
||||||
import os
|
from credentials import get_credentials
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -157,7 +157,7 @@ if __name__=="__main__":
|
||||||
|
|
||||||
#Create databases for each exchange
|
#Create databases for each exchange
|
||||||
for item in exchange_list:
|
for item in exchange_list:
|
||||||
database_connection = sqlite3.connect(f"{os.environ['VOL_DB_PATH']}{item}.db")
|
database_connection = sqlite3.connect(f"{get_credentials('VOL_DB_PATH')}{item}.db")
|
||||||
database_cursor = database_connection.cursor()
|
database_cursor = database_connection.cursor()
|
||||||
database_cursor.execute('''
|
database_cursor.execute('''
|
||||||
CREATE TABLE IF NOT EXISTS volatilities_table (
|
CREATE TABLE IF NOT EXISTS volatilities_table (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue