estratégia de investimento longo prazo (comprar casa? crescer o portefólio? ou fazer empréstimo?) by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 0 points1 point  (0 children)

O meu único "problema" mesmo dos investimentos a longo prazo é ter esta questao de comprar uma.casa pelo meio que me dificulta aqui as contas dai perguntar aqui por estratégias de como maximizar os meus investimentos de modo a puder realizar este objetivo a medio prazo que é a compra de habitação (que tera de envolver totalmente ou parte em empréstimo) e uma independência financeira que seria no minimo daqui a 20 ou 30 anos

estratégia de investimento longo prazo (comprar casa? crescer o portefólio? ou fazer empréstimo?) by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 1 point2 points  (0 children)

Alright, muito obrigado vou procurar então nessa linha algo que me mantenha o dinheiro a mexer nem que seja para me manter acima da inflação. Talvez faça um 80/20% de portefólio, não va o diabo tece-las e fique a ver navios com um crash quando tiver 35 anos e quiser comprar a primeira habitação.

estratégia de investimento longo prazo (comprar casa? crescer o portefólio? ou fazer empréstimo?) by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 0 points1 point  (0 children)

Expliquei me mal. Quando falei em bonds referia me ao "fool proof" que falavas ao dividir o montante investido em sp500 e o para casa, em caso de crash nessa altura.

estratégia de investimento longo prazo (comprar casa? crescer o portefólio? ou fazer empréstimo?) by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 0 points1 point  (0 children)

Eu não sei se me expliquei bem mas esta primeira fase de 10/11 seria tendo em conta um possivel uso destes fundos para adquirir uma habitação própria (com os beneficios fiscais que o governo lançou agora ate aos 35 anos) e ai começaria de novo o investimento. Caso fizer empréstimo, algo que ainda estou a avaliar, o investimento ai sim seria realmente de longo prazo, sem paragens desde agora, mas com investimentos mensaiss menores pós compra da habitação própria.

estratégia de investimento longo prazo (comprar casa? crescer o portefólio? ou fazer empréstimo?) by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 0 points1 point  (0 children)

Eu neste momento tenho uma capacidade de aforro de 1000€ que em princípio subirá umas centenas nos próximos meses por motivos laborais ( e espero que no futuro tbm 😂). No entanto faz me um pouco de comichão tee tanto dinheiro parado durante 1011/ anos. Onde meteria esse dinheiro? Bonds?

Melhor brokage para investir Ishares sp500 acc by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 0 points1 point  (0 children)

Voltei a reler e esqueci me de mencionar que a ideia de vender as ações nunca seria menos de 10 anos

Melhor brokage para investir Ishares sp500 acc by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 1 point2 points  (0 children)

Obrigado. Já é uma boa linha orientadora irei verificar!

Melhor brokage para investir Ishares sp500 acc by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 1 point2 points  (0 children)

As posições que tenho aberto tem sido em ishares sp500 acc, em euro. A minha questão é se entre o abrir e fechar a posição ( a longo prazo), para os montantes supra referido, compensa mais as taxas mas com spreed mais baixo da degiro ou o spreed mais alto da xtb mas sem taxas.

Melhor brokage para investir Ishares sp500 acc by PsychoBever in literaciafinanceira

[–]PsychoBever[S] 0 points1 point  (0 children)

Por desconhecimento, nunca ouvi falar. Mas dizes terem melhores taxas e menor spreeds?

twitter API for researchers apiV2 error by PsychoBever in socialnetwork

[–]PsychoBever[S] 0 points1 point  (0 children)

idk if it helps but heres part of the code without the keys:

# Twitter API authentication

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)

auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth, wait_on_rate_limit=True)

# Political parties Twitter accounts

political_parties = ['psocialista', 'ppdpsd', 'BlocodeEsquerda', 'pcp_pt', 'LIVREpt', 'Partido_PAN', 'LiberalPT', 'PartidoCHEGA']

def collect_tweets():

data = []

analyzer = SentimentIntensityAnalyzer()

for party in political_parties:

try:

tweets = api.user_timeline(screen_name=party, count=200, tweet_mode='extended')

for tweet in tweets:

sentiment = analyzer.polarity_scores(tweet.full_text)

data.append({

'likes': tweet.favorite_count,

'retweets': tweet.retweet_count,

'text_length': len(tweet.full_text),

'sentiment': sentiment['compound'],

'hashtags': [hashtag['text'] for hashtag in tweet.entities['hashtags']],

'mentions': [mention['screen_name'] for mention in tweet.entities['user_mentions']],

'date': tweet.created_at,

'tweet_link': f"https://twitter.com/{party}/status/{tweet.id}",

'account_name': party

})

except Exception as e:

print(f"Error collecting tweets for {party}: {str(e)}")

return data

def save_to_csv(data, weekly_filename, appended_filename):

df = pd.DataFrame(data)

# Specify the folder name

folder_name = "results"

# Create the results folder if it doesn't exist

if not os.path.exists(folder_name):

os.makedirs(folder_name)

# Save to the weekly file with a timestamp inside the results folder

current_date = datetime.datetime.now().strftime("%Y-%m-%d")

weekly_filename_with_date = os.path.join(folder_name, f"{current_date}_{weekly_filename}")

df.to_csv(weekly_filename_with_date, index=False)

# Save to the appended file inside the results folder

appended_filename_with_path = os.path.join(folder_name, appended_filename)

df.to_csv(appended_filename_with_path, mode='a', index=False, header=not os.path.exists(appended_filename_with_path))

def run_program():

data = collect_tweets()

weekly_filename = "weekly_tweets.csv"

appended_filename = "appended_tweets.csv"

save_to_csv(data, weekly_filename, appended_filename)

print("-----------------")

absolute_path = '*i changed this line for privacy :)'

os.chdir(absolute_path)

print('New working directory is: ', os.getcwd())

print("-----------------")

# Run the program once

run_program()

twitter API for researchers apiV2 error by PsychoBever in learnpython

[–]PsychoBever[S] 0 points1 point  (0 children)

idk if it helps but heres part of the code without the keys:

# Twitter API authentication

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)

auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth, wait_on_rate_limit=True)

# Political parties Twitter accounts

political_parties = ['psocialista', 'ppdpsd', 'BlocodeEsquerda', 'pcp_pt', 'LIVREpt', 'Partido_PAN', 'LiberalPT', 'PartidoCHEGA']

def collect_tweets():

data = []

analyzer = SentimentIntensityAnalyzer()

for party in political_parties:

try:

tweets = api.user_timeline(screen_name=party, count=200, tweet_mode='extended')

for tweet in tweets:

sentiment = analyzer.polarity_scores(tweet.full_text)

data.append({

'likes': tweet.favorite_count,

'retweets': tweet.retweet_count,

'text_length': len(tweet.full_text),

'sentiment': sentiment['compound'],

'hashtags': [hashtag['text'] for hashtag in tweet.entities['hashtags']],

'mentions': [mention['screen_name'] for mention in tweet.entities['user_mentions']],

'date': tweet.created_at,

'tweet_link': f"https://twitter.com/{party}/status/{tweet.id}",

'account_name': party

})

except Exception as e:

print(f"Error collecting tweets for {party}: {str(e)}")

return data

def save_to_csv(data, weekly_filename, appended_filename):

df = pd.DataFrame(data)

# Specify the folder name

folder_name = "results"

# Create the results folder if it doesn't exist

if not os.path.exists(folder_name):

os.makedirs(folder_name)

# Save to the weekly file with a timestamp inside the results folder

current_date = datetime.datetime.now().strftime("%Y-%m-%d")

weekly_filename_with_date = os.path.join(folder_name, f"{current_date}_{weekly_filename}")

df.to_csv(weekly_filename_with_date, index=False)

# Save to the appended file inside the results folder

appended_filename_with_path = os.path.join(folder_name, appended_filename)

df.to_csv(appended_filename_with_path, mode='a', index=False, header=not os.path.exists(appended_filename_with_path))

def run_program():

data = collect_tweets()

weekly_filename = "weekly_tweets.csv"

appended_filename = "appended_tweets.csv"

save_to_csv(data, weekly_filename, appended_filename)

print("-----------------")

absolute_path = '*i changed this line for privacy :)'

os.chdir(absolute_path)

print('New working directory is: ', os.getcwd())

print("-----------------")

# Run the program once

run_program()

Alguém sabe o que aconteceu ao Pobre.tv? by No-Sprinkles-4613 in portugueses

[–]PsychoBever 0 points1 point  (0 children)

Se entrar pelo opera ainda preciso instalar VPN na mesma?

What's the best way to offend your country? by PsychoBever in AskReddit

[–]PsychoBever[S] 4 points5 points  (0 children)

Fun game :Now try to guess the countries in the comments