faker_marketdata
Generates random, valid market identifiers following most common formats in the industry.
Installation
pip install faker_marketdata
Usage
Add as a provider to your Faker instance:
>>> from faker import Faker
>>> from faker_marketdata import MarketDataProvider
>>> fake = Faker()
>>> fake.add_provider(MarketDataProvider)
Optionally you can define a seed value to have repeatable identifiers:
>> Faker.seed(123)
>> fake.add_provider(MarketDataProvider())
Now you can start to generate market identifiers, some examples:
>> fake.isin() # "GTYMQXUIYPB6"
>> fake.sedol() # "NKDEKC8"
>> fake.cusip() # "Z57XGDJW7"
>> fake.ticker() # "GRTT"
Documentation
Supported market data formats:
- ISIN
- SEDOL
- MIC
- LEI
- CUSIP
- RIC
- TICKER
- NSIN
- FIGI
- Market type (e.g. "bond", "commodity", "otc")
Metadata
Release files for faker-marketdata 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faker_marketdata-0.4.tar.gz | 7.9 kB | Without provenance | Details for faker_marketdata-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faker_marketdata-0.4-py3-none-any.whl | Python 3 | none | any | Details for faker_marketdata-0.4-py3-none-any.whl |
Total release size: 16.4 kB
Release files / faker_marketdata-0.4.tar.gz
| Download URL | faker_marketdata-0.4.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4417b28c48342690f8283c2a6129d85e14a1d958678535b71dae18cd07e40d37
|
|
BLAKE2b-256 checksum How to use checksums |
ed2419bff5577b31cce322eacebeb4994803a9ddfa72f76549f6b55dbc0eb85b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / faker_marketdata-0.4-py3-none-any.whl
| Download URL | faker_marketdata-0.4-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8a233d93413c4c9a63f69edc6c4d002408242850ab6ef352da7bd9d1625ec76
|
|
BLAKE2b-256 checksum How to use checksums |
96759933e80712a08b93157ca3963ef5dd50018a0f51f469f1da0a562c693482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for faker-marketdata 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.