Fix my python script and add a modification
Budget: £10 – £20 GBP
I have a python script which was made in April 2021 I think some of the code has gone out of date with the latest python so it needs fixing.
The code used to webscrape values of data from a website every 5 seconds and recorded this as the live rate. It then took the live rate for ever minute and calculated the highest value and lowest value during the minute. The closing value at the end of the minute and the open value at the start of each minute. Once collectected the python script submitted the data to my Realtime DB in Firebase.
Currently the Realtime DB is stored as
Values/Live-value
Values/Rate/Date & Time/ close
Values/Rate/Date & Time/ open
Values/Rate/Date & Time/ high
Values/Rate/Date & Time/ low
It scrapes the value of the bitcoin price according to a web url.
I want to change the way the data is stored to:
BTCUSD(Symbol)/D1/(open-high-low-close)
BTCUSD(Symbol)/H4/(open-high-low-close)
BTCUSD(Symbol)/H1/(open-high-low-close)
BTCUSD(Symbol)/M30/(open-high-low-close)
BTCUSD(Symbol)/M15/(open-high-low-close)
BTCUSD(Symbol)/M5/(open-high-low-close)
BTCUSD(Symbol)/M1/(open-high-low-close)
D1 stands for daily
H4 stands for 4 hourly
H1 stands for hourly
M30 stands for 30 minutes etc.
I then want to modify the script so that it can use this function for 8 other web urls and store 8 other symbols:
EURUSD
GBPUSD
AUDUSD
NZDUSD
USDCAD
USDCHF
USDJPY
XAUUSD
I will send you the urls to change the existing script to scrape which is in the same format as is already working.
The code used to webscrape values of data from a website every 5 seconds and recorded this as the live rate. It then took the live rate for ever minute and calculated the highest value and lowest value during the minute. The closing value at the end of the minute and the open value at the start of each minute. Once collectected the python script submitted the data to my Realtime DB in Firebase.
Currently the Realtime DB is stored as
Values/Live-value
Values/Rate/Date & Time/ close
Values/Rate/Date & Time/ open
Values/Rate/Date & Time/ high
Values/Rate/Date & Time/ low
It scrapes the value of the bitcoin price according to a web url.
I want to change the way the data is stored to:
BTCUSD(Symbol)/D1/(open-high-low-close)
BTCUSD(Symbol)/H4/(open-high-low-close)
BTCUSD(Symbol)/H1/(open-high-low-close)
BTCUSD(Symbol)/M30/(open-high-low-close)
BTCUSD(Symbol)/M15/(open-high-low-close)
BTCUSD(Symbol)/M5/(open-high-low-close)
BTCUSD(Symbol)/M1/(open-high-low-close)
D1 stands for daily
H4 stands for 4 hourly
H1 stands for hourly
M30 stands for 30 minutes etc.
I then want to modify the script so that it can use this function for 8 other web urls and store 8 other symbols:
EURUSD
GBPUSD
AUDUSD
NZDUSD
USDCAD
USDCHF
USDJPY
XAUUSD
I will send you the urls to change the existing script to scrape which is in the same format as is already working.