Skip to content

Commit bcbadf9

Browse files
authored
Update stockdata_to_influxdb.py
1 parent a076db4 commit bcbadf9

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎stockdata_to_influxdb.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,21 @@
77

88
"""
99
1. connect to influx database
10+
11+
For one time setup
12+
Downlonad influxdb files from https://dl.influxdata.com/influxdb/releases/influxdb-1.7.10_windows_amd64.zip
13+
extract zip file and start influxd.exe
14+
influxd.exe should be kept running to use influxdb
15+
16+
db = InfluxDBClient(host="localhost", port = 8086)
17+
db.create_database('tickerdb')
18+
19+
1020
"""
21+
22+
23+
24+
1125
db = InfluxDBClient(host="localhost", port = 8086)
1226
#db.drop_database(dbname='tickerdb')
1327
#db.create_database('tickerdb') # if running first time, remove # to create new database

0 commit comments

Comments
 (0)