or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

configuration.mdcore-providers.mddatetime.mdfinancial-data.mdindex.mdinternet-data.mdlocation-data.mdpersonal-data.mdschema.mdspecialized-providers.mdtext-content.md

financial-data.mddocs/

0

# Financial and Business Data

1

2

Generate financial data including currencies, prices, company information, stock data, and banking details with proper formatting for business applications.

3

4

## Capabilities

5

6

### Company and Business Data

7

8

```python { .api }

9

class Finance(BaseDataProvider):

10

def company(self) -> str:

11

"""Generate company name."""

12

13

def company_type(self, abbr: bool = False) -> str:

14

"""Generate company type (Corp, LLC, etc.)."""

15

16

def bank(self) -> str:

17

"""Generate bank name."""

18

```

19

20

### Currency and Pricing

21

22

```python { .api }

23

class Finance(BaseDataProvider):

24

def currency_iso_code(self, allow_random: bool = False) -> str:

25

"""Generate currency code like 'USD', 'EUR'."""

26

27

def currency_symbol(self) -> str:

28

"""Generate currency symbol like '$', '€'."""

29

30

def cryptocurrency_iso_code(self) -> str:

31

"""Generate cryptocurrency code like 'BTC', 'ETH'."""

32

33

def cryptocurrency_symbol(self) -> str:

34

"""Generate cryptocurrency symbol."""

35

36

def price(self, minimum: float = 500, maximum: float = 1500) -> float:

37

"""Generate price within range."""

38

39

def price_in_btc(self, minimum: float = 0, maximum: float = 2) -> float:

40

"""Generate price in Bitcoin."""

41

```

42

43

### Stock Market Data

44

45

```python { .api }

46

class Finance(BaseDataProvider):

47

def stock_ticker(self) -> str:

48

"""Generate stock ticker symbol like 'AAPL'."""

49

50

def stock_name(self) -> str:

51

"""Generate stock/company name."""

52

53

def stock_exchange(self) -> str:

54

"""Generate stock exchange name."""

55

```

56

57

## Usage Examples

58

59

```python

60

from mimesis import Finance

61

62

finance = Finance()

63

64

# Business data

65

company_profile = {

66

'name': finance.company(),

67

'type': finance.company_type(),

68

'bank': finance.bank()

69

}

70

71

# Financial data

72

financial_data = {

73

'currency': finance.currency_iso_code(),

74

'price': finance.price(minimum=100, maximum=5000),

75

'stock_ticker': finance.stock_ticker(),

76

'exchange': finance.stock_exchange()

77

}

78

```