Skip to main content

Sample market data for Faker

Project description

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")

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file faker_marketdata-0.4.tar.gz.

File metadata

  • Download URL: faker_marketdata-0.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for faker_marketdata-0.4.tar.gz
Algorithm Hash digest
SHA256 4417b28c48342690f8283c2a6129d85e14a1d958678535b71dae18cd07e40d37
MD5 82bc02f26f2b1b904a029fcefda006a6
BLAKE2b-256 ed2419bff5577b31cce322eacebeb4994803a9ddfa72f76549f6b55dbc0eb85b

See more details on using hashes here.

File details

Details for the file faker_marketdata-0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for faker_marketdata-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a233d93413c4c9a63f69edc6c4d002408242850ab6ef352da7bd9d1625ec76
MD5 2c070d962a6605f7991da0b135eef5fd
BLAKE2b-256 96759933e80712a08b93157ca3963ef5dd50018a0f51f469f1da0a562c693482

See more details on using hashes here.

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