db path
This commit is contained in:
parent
13fe6cd00c
commit
00f78d170f
|
|
@ -8,6 +8,7 @@ import time
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import math
|
import math
|
||||||
import statistics
|
import statistics
|
||||||
|
import os
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -156,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"data/{item}.db")
|
database_connection = sqlite3.connect(f"{os.environ['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