Sample market data for Faker
Project description
faker_marketdata
Generates random, valid market data for testing purposes.
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 use a seed value to have repeatable output:
>> fake.add_provider(MarketDataProvider(see=1220))
Now you can start to generate market data, some examples:
>> fake.isin() # "GTYMQXUIYPB6"
>> fake.sedol() # "NKDEKC8"
>> fake.cusip() # "Z57XGDJW7"
>> fake.ticker() # "GRTT"
Documentation
Supported market data identifiers:
- ISIN
- SEDOL
- MIC
- LEI
- CUSIP
- RIC
- TICKER
- NSIN
- FIGI
- Market type (e.g. "bond", "commodity", "otc")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
faker_marketdata-0.3.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for faker_marketdata-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89249266951bd464c4b18db9fa1ebab04373ae35813f40533b33b279af354f80 |
|
MD5 | 2b426a30eade395a5607aad487297a91 |
|
BLAKE2b-256 | 9e049161bf57e6179d41ea35872d1b21cd3114e1c45b28b9aed8a92e767a1565 |