Random stock quotes generator based on real data distribution
Project description
rndqts
Random stock market quotes
Fetching from Yahoo
from rndqts.quotes import Quotes
Quotes("PETR4.sa", progress=False).data
"""
"""
Random stock quotes
from rndqts.quotes import Quotes
# Caching real quotes from Yahoo.
Quotes("PETR4.sa", progress=False).data
Quotes("VALE3.sa", progress=False).data
Quotes("CSNA3.sa", progress=False).data
Quotes("USIM5.sa", progress=False).data
# Generating random quotes.
random_quotes = Quotes("rnd", seed=42).data.values
print(random_quotes)
"""
[[1.00947569e+00 1.01632731e+00 1.00068496e+00 1.00548117e+00
3.00000000e+00]
[1.03308968e+00 1.02043589e+00 1.05266991e+00 1.03492298e+00
9.00000000e+00]
[1.04744580e+00 1.03139980e+00 1.06120381e+00 1.03847023e+00
2.10000000e+01]
...
[4.80039558e+01 4.75309233e+01 4.80039558e+01 4.75395970e+01
7.81903330e+07]
[4.67677030e+01 4.73311476e+01 4.65310483e+01 4.65310483e+01
7.81903350e+07]
[4.71360374e+01 4.71360374e+01 4.59864740e+01 4.68941008e+01
5.73796740e+07]]
"""
"""
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rndqts-0.2101.3.tar.gz
(2.8 kB
view details)
Built Distribution
rndqts-0.2101.3-py3-none-any.whl
(14.1 kB
view details)
File details
Details for the file rndqts-0.2101.3.tar.gz
.
File metadata
- Download URL: rndqts-0.2101.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85708190279555a6cbaa197b6b4a4a8d525f1358e166edd58c23f848ebf8970 |
|
MD5 | a55b1a4871b8a84d11800a22a7a1a153 |
|
BLAKE2b-256 | dd5700096ddaca637bc811de4da8fe4e265fc87b619cc3d92a0d0bbb74108002 |
File details
Details for the file rndqts-0.2101.3-py3-none-any.whl
.
File metadata
- Download URL: rndqts-0.2101.3-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5fbdf964c4759e94411ea617fa9e75a8b3eb06e6a5e88e6d75a4121585a7054 |
|
MD5 | fe77ebad97d5d2ca1b4d4588375d7a34 |
|
BLAKE2b-256 | 242a314ce9590a38b185a6a419612fe68030673832334317abd24742c6f009a1 |