{"id":27731,"library":"faker-marketdata","title":"Faker MarketData","description":"A Faker provider that generates realistic financial market data such as tickers, ISINs, CUSIPs, SEDOLs, currencies, and market indices. Version 0.4 supports Python 3.6+ and requires the Faker library. Release cadence is low; updates are infrequent.","status":"active","version":"0.4","language":"python","source_language":"en","source_url":"https://github.com/rubenafo/faker_marketdata","tags":["faker","market-data","finance","testing","mock-data"],"install":[{"cmd":"pip install faker-marketdata","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Required to use the provider; Faker must be installed separately.","package":"Faker"}],"imports":[{"symbol":"MarketDataProvider","correct":"from faker_marketdata import MarketDataProvider"}],"quickstart":{"code":"from faker import Faker\nfrom faker_marketdata import MarketDataProvider\n\nfake = Faker()\nfake.add_provider(MarketDataProvider)\n\n# Generate a stock ticker\nprint(fake.bbg_ticker())  # example: 'AAPL US Equity'\nprint(fake.isin())        # example: 'US0378331005'\nprint(fake.cusip())       # example: '037833100'\nprint(fake.sedol())       # example: 'B03MLW9'\nprint(fake.currency())    # example: 'USD'\nprint(fake.market_index()) # example: 'S&P 500'","lang":"python","description":"Initialize Faker with the MarketData provider and generate sample financial instruments."},"warnings":[{"fix":"Ensure Faker is installed: `pip install Faker faker-marketdata`","message":"Faker must be installed before or alongside faker-marketdata. The provider will not work without the Faker package.","severity":"gotcha","affected_versions":">=0.1"},{"fix":"Call `fake.add_provider(MarketDataProvider)` before generating data.","message":"The provider methods (bbg_ticker, isin, etc.) are only available after adding the provider to a Faker instance. They are not top-level functions.","severity":"gotcha","affected_versions":">=0.1"},{"fix":"Consider testing with your version of Faker or pinning Faker to a known compatible version.","message":"This library has not been updated since 2022 and may not be actively maintained. Check for compatibility with newer Faker versions.","severity":"deprecated","affected_versions":"0.4"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install faker-marketdata'.","cause":"The library is not installed or the Python environment does not have it.","error":"ModuleNotFoundError: No module named 'faker_marketdata'"},{"fix":"Use 'from faker_marketdata import MarketDataProvider'. Ensure version >=0.2.","cause":"Incorrect import path or the library version is too old.","error":"ImportError: cannot import name 'MarketDataProvider' from 'faker_marketdata'"},{"fix":"Add 'fake.add_provider(MarketDataProvider)' before calling the method.","cause":"The provider was not added to the Faker instance.","error":"AttributeError: 'Faker' object has no attribute 'bbg_ticker'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}