Skip to main content

Sample market data for Faker

Project description


Generates random, valid market identifiers following most common formats in the industry.


pip install faker_marketdata


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"


Supported market data formats:

  • ISIN
  • MIC
  • LEI
  • RIC
  • 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.4.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

faker_marketdata-0.4-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page