# faker_marketdata
Generates random, valid market identifiers following most common formats in the industry.
## Installation
``` bash
pip install faker_marketdata
```
## Usage
Add as a provider to your [Faker](https://faker.readthedocs.io/en/master) instance:
``` python
>>> 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:
``` python
>> Faker.seed(123)
>> fake.add_provider(MarketDataProvider())
```
Now you can start to generate market identifiers, some examples:
``` python
>> 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")
Raw data
{
"_id": null,
"home_page": "https://github.com/rubenafo/faker_marketdata",
"name": "faker-marketdata",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "faker,testdata,financedata,python,marketdata,isin,sedol,cusip,ticker,figi",
"author": "Ruben Afonso",
"author_email": "rbfrancos@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ed/24/19bff5577b31cce322eacebeb4994803a9ddfa72f76549f6b55dbc0eb85b/faker_marketdata-0.4.tar.gz",
"platform": null,
"description": "# faker_marketdata\nGenerates random, valid market identifiers following most common formats in the industry.\n\n## Installation\n\n``` bash\npip install faker_marketdata\n```\n\n## Usage\n\nAdd as a provider to your [Faker](https://faker.readthedocs.io/en/master) instance:\n``` python\n>>> from faker import Faker\n>>> from faker_marketdata import MarketDataProvider\n>>> fake = Faker()\n>>> fake.add_provider(MarketDataProvider)\n```\nOptionally you can define a seed value to have repeatable identifiers: \n``` python\n>> Faker.seed(123)\n>> fake.add_provider(MarketDataProvider())\n```\n\nNow you can start to generate market identifiers, some examples:\n``` python\n>> fake.isin() # \"GTYMQXUIYPB6\"\n>> fake.sedol() # \"NKDEKC8\"\n>> fake.cusip() # \"Z57XGDJW7\"\n>> fake.ticker() # \"GRTT\"\n```\n\n## Documentation\nSupported market data formats:\n* ISIN\n* SEDOL\n* MIC\n* LEI\n* CUSIP\n* RIC\n* TICKER\n* NSIN\n* FIGI\n* Market type (e.g. \"bond\", \"commodity\", \"otc\")\n",
"bugtrack_url": null,
"license": "",
"summary": "Sample market data for Faker",
"version": "0.4",
"split_keywords": [
"faker",
"testdata",
"financedata",
"python",
"marketdata",
"isin",
"sedol",
"cusip",
"ticker",
"figi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "96759933e80712a08b93157ca3963ef5dd50018a0f51f469f1da0a562c693482",
"md5": "2c070d962a6605f7991da0b135eef5fd",
"sha256": "f8a233d93413c4c9a63f69edc6c4d002408242850ab6ef352da7bd9d1625ec76"
},
"downloads": -1,
"filename": "faker_marketdata-0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2c070d962a6605f7991da0b135eef5fd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 8519,
"upload_time": "2023-04-13T05:00:52",
"upload_time_iso_8601": "2023-04-13T05:00:52.037961Z",
"url": "https://files.pythonhosted.org/packages/96/75/9933e80712a08b93157ca3963ef5dd50018a0f51f469f1da0a562c693482/faker_marketdata-0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed2419bff5577b31cce322eacebeb4994803a9ddfa72f76549f6b55dbc0eb85b",
"md5": "82bc02f26f2b1b904a029fcefda006a6",
"sha256": "4417b28c48342690f8283c2a6129d85e14a1d958678535b71dae18cd07e40d37"
},
"downloads": -1,
"filename": "faker_marketdata-0.4.tar.gz",
"has_sig": false,
"md5_digest": "82bc02f26f2b1b904a029fcefda006a6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7860,
"upload_time": "2023-04-13T05:00:54",
"upload_time_iso_8601": "2023-04-13T05:00:54.425555Z",
"url": "https://files.pythonhosted.org/packages/ed/24/19bff5577b31cce322eacebeb4994803a9ddfa72f76549f6b55dbc0eb85b/faker_marketdata-0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-13 05:00:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "rubenafo",
"github_project": "faker_marketdata",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "faker-marketdata"
}