<filename>example/example.py
from pprint import pp

from allokation import allocate_money

AVAILABLE_MONEY = 1000

tickers = [
    'B3SA3.SA',
    'BBDC4.SA',
    'MGLU3.SA',
    'PETR4.SA',
    'VVAR3.SA',
]

percentages = [60, 10, 10, 10, 10]

result = allocate_money(available_money=AVAILABLE_MONEY, tickers=tickers, percentages=percentages)
pp(result)

<filename>example/example.py
from pprint import pp

from allokation import allocate_money

AVAILABLE_MONEY = 1000

tickers = [
    'B3SA3.SA',
    'BBDC4.SA',
    'MGLU3.SA',
    'PETR4.SA',
    'VVAR3.SA',
]

percentages = [60, 10, 10, 10, 10]

result = allocate_money(available_money=AVAILABLE_MONEY, tickers=tickers, percentages=percentages)
pp(result)
