Comments (2)
We can't have logging to terminal at the same time as tqdm
https://www.reddit.com/r/learnpython/comments/slds6h/tqdm_keeps_printing_progress_bar_to_new_line/
from finq.
When running in notebook the logging and tqdm works together:
[2023-10-15 14:16:32,181] [finq.datautil.nasdaq_requests] [INFO ] performing GET request to: `https://indexes.nasdaqomx.com/Index/ExportWeightings/OMXS30`
[2023-10-15 14:16:32,182] [finq.datautil.nasdaq_requests] [INFO ] with query parameters: `{'tradeDate': '2023-10-13T00:00:00.000', 'timeOfDay': 'SOD'}`
[2023-10-15 14:16:32,182] [finq.datautil.nasdaq_requests] [INFO ] with headers: `{}`
[2023-10-15 14:16:33,353] [finq.datautil.nasdaq_requests] [INFO ] 200 OK
[2023-10-15 14:16:33,355] [finq.datautil.nasdaq_requests] [INFO ] attempting to read excel at `qyfanqaiiu-OMXS30.xlsx`...
[2023-10-15 14:16:33,557] [finq.datautil.nasdaq_requests] [INFO ] OK!
[2023-10-15 14:16:33,559] [finq.datasets.dataset] [DEBUG ] will save fetched data to path `.data/OMXS30`
[2023-10-15 14:16:33,560] [finq.datasets.dataset] [DEBUG ] will handle missing values according to strategy `interpolate`
Fetching `VOLV-B.ST` data from Yahoo! Finance: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:00<00:00, 46.00it/s]
[2023-10-15 14:16:34,220] [finq.datasets.dataset] [DEBUG ] validating `.data/OMXS30` path...
[2023-10-15 14:16:34,220] [finq.datasets.dataset] [DEBUG ] trying to create your specified save path...
[2023-10-15 14:16:34,221] [finq.datasets.dataset] [DEBUG ] OK!
[2023-10-15 14:16:34,221] [finq.datasets.dataset] [DEBUG ] creating path `.data/OMXS30/data`...
[2023-10-15 14:16:34,222] [finq.datasets.dataset] [DEBUG ] OK!
[2023-10-15 14:16:34,222] [finq.datasets.dataset] [DEBUG ] creating path `.data/OMXS30/info`...
[2023-10-15 14:16:34,223] [finq.datasets.dataset] [DEBUG ] OK!
[2023-10-15 14:16:34,223] [finq.datasets.dataset] [DEBUG ] saving fetched data to `.data/OMXS30`
[2023-10-15 14:16:34,341] [finq.datasets.dataset] [DEBUG ] OK!
[2023-10-15 14:16:34,342] [finq.datasets.dataset] [DEBUG ] using missing values strategy: `interpolate`
Fixing `VOLV-B.ST` missing values: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:00<00:00, 1017.23it/s]
[2023-10-15 14:16:34,389] [finq.datasets.dataset] [DEBUG ] the following symbols had missing data: `ABB.ST,ALIV-SDB.ST,AZN.ST`
[2023-10-15 14:16:34,389] [finq.datasets.dataset] [DEBUG ] OK!
[2023-10-15 14:16:34,390] [finq.datasets.dataset] [DEBUG ] verifying that stored data has no missing values...
Verifying `VOLV-B.ST` no missing values: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:00<00:00, 690.25it/s]
[2023-10-15 14:16:34,437] [finq.datasets.dataset] [DEBUG ] OK!
Look into if there is some specific setting on consoleHandler in logger module
from finq.
Related Issues (15)
- yfinance requests should be mocked in unit tests
- classes and functions need documentation HOT 1
- index tickers varies through time
- Add CustomDataset functionality to try and fetch index from NASDAQ
- Create load function for Dataset
- Argument chooses closing/opening etc. price for yf Ticker HOT 8
- Nasdaq index weighting not working on weekends HOT 4
- Prepare PyPI release HOT 3
- Empty df from nasdaq on sundays, weekday diff is broken
- GET requests to NASDAQ should use the CachedRatedLimiter as session HOT 1
- Fix all mypy static type-checking errors HOT 1
- NASDAQ request for index NDX returns empty lists of names and symbols HOT 1
- Yahoo! Finance ticker info does not allow passing proxy
- Mock all tests to avoid hitting the rate limit on Yahoo! Finance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finq.