APi key update

This commit is contained in:
Neythen 2021-07-31 10:41:33 +01:00
parent 49417a4dcf
commit a80c9428da
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,10 @@
# Copyright (C) 2020 Fintic, finticofficial@gmail.com
#
# This file is part of Fintic project, developed by Neythen Treloar and Justin Dunn
#
# This code can not be copied and/or distributed without the express
# permission of Fintic
import finnhub
import time
import csv
@ -138,8 +145,8 @@ def updateStockPricesFinhubb():
def updateStockPrices():
iexAPIkey = 'pk_68ef6a15902c41f887f0b544a0ca17cf' #IEX
iexSandboxAPIkey = 'Tpk_0078dff413ef4f979137f7111452dc4b'
iexAPIkey = 'pk_d066d39789bd41caac209bca850a35db' #IEX
max_stocks = 200
symbols, stock_info = readCSV('csv/tickers.csv', max_stocks)
try:
@ -259,7 +266,7 @@ def updateNews():
def updateWeather():
max_cities = 30
api_key = 'bd5d5096a5ba30bbcfb57ead42ab3fee'
api_key = 'a9476947fa1a2f712076453bec4a0df5'
try:
gn = geocoders.GeoNames(username='fintic')
@ -334,7 +341,7 @@ def updateWeather():
def updateForex():
api_key = '862dbb6d1101ce0c5136'
try:
base = 'USD'
yesterday = datetime.now() - timedelta(1)

View File

@ -1,9 +1,9 @@
# Copyright (C) 2020 Daniel Richardson richardson.daniel@hotmail.co.uk
# Copyright (C) 2020 Fintic, finticofficial@gmail.com
#
# This file is part of stockTicker project for justinodunn.
# This file is part of Fintic project, developed by Neythen Treloar and Justin Dunn
#
# stockTicker can not be copied and/or distributed without the express
# permission of Daniel Richardson
# permission of Fintic
import sys, select