This commit is contained in:
Neythen 2021-07-31 11:01:21 +01:00
commit fee16de6c9
3 changed files with 15 additions and 8 deletions

View File

@ -5,7 +5,7 @@ Run these commands in the directory you want to put the app and press enter duri
```console ```console
sudo apt-get update sudo apt-get update
sudo apt-get install git sudo apt-get install git
git clone https://github.com/zcqsntr/fintic --recursive git clone https://github.com/fin-tic/fintic --recursive
cd fintic cd fintic
./setup.sh ./setup.sh

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 finnhub
import time import time
import csv import csv
@ -138,8 +145,8 @@ def updateStockPricesFinhubb():
def updateStockPrices(): def updateStockPrices():
iexAPIkey = 'pk_68ef6a15902c41f887f0b544a0ca17cf' #IEX iexAPIkey = 'pk_d066d39789bd41caac209bca850a35db' #IEX
iexSandboxAPIkey = 'Tpk_0078dff413ef4f979137f7111452dc4b'
max_stocks = 200 max_stocks = 200
symbols, stock_info = readCSV('csv/tickers.csv', max_stocks) symbols, stock_info = readCSV('csv/tickers.csv', max_stocks)
try: try:
@ -259,7 +266,7 @@ def updateNews():
def updateWeather(): def updateWeather():
max_cities = 30 max_cities = 30
api_key = 'bd5d5096a5ba30bbcfb57ead42ab3fee' api_key = 'a9476947fa1a2f712076453bec4a0df5'
try: try:
gn = geocoders.GeoNames(username='fintic') gn = geocoders.GeoNames(username='fintic')
@ -334,7 +341,7 @@ def updateWeather():
def updateForex(): def updateForex():
api_key = '862dbb6d1101ce0c5136'
try: try:
base = 'USD' base = 'USD'
yesterday = datetime.now() - timedelta(1) 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 # stockTicker can not be copied and/or distributed without the express
# permission of Daniel Richardson # permission of Fintic
import sys, select import sys, select