전체 글에 해당하는 글 985

오늘의 뉴스_20210313

Information/today news|2021. 3. 13. 12:39
반응형
1. "주린이 당분간 쉬세요" 투자전략 고수 뼈아픈 경고 - 매경프리미엄

2. WHO "아스트라제네카 백신 사용 중단할 이유 없어"

3. 미래차 두뇌 맡을 ‘알루토’ 출범…LG 전장사업 진용 짜였다

4. WHO, '1회 접종' J&J 코로나19 백신 긴급사용 승인(종합)

5. “특정지점·대규모 대출 문제”…북시흥농협 43억 대출 '투기 조사' 2021.03.13.

6. [영상] 퍼서비어런스는 화성에 어떻게 착륙했을까

7. 쿠팡, 뉴욕증시 ‘화려한 데뷔’… 상장 첫날 시총 100조원 돌파

8. 바이넥스에 이어 비보존제약도 불법제조 적발…판매중지 조치

9. 2040년까지 수소기업 1천 곳 키운다…'수소혁신데스크' 출범

10. 비트코인 '검은 목요일' 후 1년, 그동안 무슨 일이? ... 1400% 상승, 시총 1조달러 돌파

11. 김봉진 5000억원 첫 기부는 어디에? 저소득층 자녀들에게 노트북 1만대 지원 - 조선일보

12. '10조 잭팟' 김범석 "쿠팡 상장, 한국 대신 美 택한 이유는…"

13. LG에너지솔루션, 미국 투자 확 늘린다… “2025년까지 5조원 이상”

14. 뉴욕증시 데뷔전에 시총 100조…일단 '팡' 터진 쿠팡

15. "LH 투기 대출 맹점 살핀다"…투기근절 법안도 입법속도

16. 쿠팡 이어 마켓컬리도 상장 추진...WSJ "연내 美 상장 검토"

17. 韓銀 인플레 우려 적다더니…기재부는 물가 급등 경고

18. [과학의달인] 현장으로 출동하는 '이동형 진단 플랫폼'…태양광 발전설비 고장 원인 찾는다! 사이언스

19. 넥슨·엔씨 ‘연봉 잔치’에 뿔난 게임 유저들…“연봉도 확률형으로 지급하라”

20. 최정우 포스코 회장 연임확정…"2차 전지 수소사업 강화"

21. 노바백스 백신 96.4% 예방효과…영국발 변이에도 86%

22. 10만원에 시작해 785억원에 낙찰됐다, JPG 그림파일 - 조선일보

23. 삼성 '잃어버린 10년' 현실화…이재용 재판 최소 3년 걸린다

24. 쿠팡 화려한 美데뷔 뒤 적자 4조…"흑자 언제" 김범석에 묻자

25. 이스라엘 12∼16세 미성년자 6백 명 코로나19 백신 접종...큰 부작용 없어 사이언스

26. 연기금, 50일째 국내주식 순매도...동학개미 반발

27. SK바이오사이언스 공모주 청약자들, 증권사 선택에 '희비' 엇갈려

28. 쿠팡 뉴욕증시 데뷔 성공적…시총 70조원대로 평가 / 연합뉴스 (Yonhapnews)

29. [단독] 국내산 둔갑시키려 미역에 염화칼슘…오뚜기는 사과

30. '보급폰 전쟁'...삼성, '갤럭시A'로 화웨이·LG 빈자리 겨냥

반응형

댓글()

Today News_20210313

Information/today news|2021. 3. 13. 12:39
반응형
1. Cuomo accuser Lindsey Boylan slams Biden, Harris over silence on sexual harassment scandal

2. Minneapolis will pay George Floyd's estate $27 million after city council votes to settle lawsuit with family

3. Dentists, veterinarians and med students authorized to administer Covid shots as Biden expands vaccine program

4. California Democratic leaders to Newsom: ‘urgent’ to oust party chair

5. Biden Administration Rescinds Trump Policy Affecting Sponsors Of Young Migrants

6. Man arrested in attack on elderly Asian American woman who blacked out

7. Texas Democrat knocks Biden delegation over border visit: 'They didn’t talk to anybody'

8. Ruth Bader Ginsburg's statue unveiled in her native Brooklyn, N.Y.

9. When will I get my third stimulus check? IRS begins sending first round of $1,400 COVID-19 relief payments this weekend

10. Biden throws stimulus bill Rose Garden party with no Republicans, no questions

11. After monthslong delay, congressional leaders stand up intelligence committee

12. More NorCal counties move to COVID-19 red tier. Here's what will be allowed indoors

13. Two women facing charges for allegedly harassing Uber driver in mask dispute

14. Biden sets nation on seven-week sprint to near-universal vaccine access

15. Arrival of snow storm delayed along Front Range but forecasters still anticipate totals up to 20 inches in Denver

16. Judge orders pretrial release of key Oath Keeper charged in Capitol attack

17. Poll: 81 percent of Republican voters hold favorable view of Trump ll

18. $1,400 stimulus checks approved: Here's who will get them first

19. Biden And 'Quad' Leaders Launch Vaccine Push, Deepen Coordination Against China

20. Former Trump lawyer Michael Cohen asked back for 8th interview in criminal probe as DA Vance prepares exit

21. 'A vote is what we need': Gun safety bill faces uphill climb in Senate

22. The IRS is behind in processing nearly 7 million tax returns, slowing refunds as it implements new stimulus

23. DeSantis to Biden: Thought of reinstating COVID-19 restrictions 'insane' ll

24. Kentucky Senate votes to criminalize insulting police in way that could cause ‘violent response’

25. Fox News’s absurd reaction to Biden’s coronavirus speech, explained

26. McConnell backs new process to fill Kentucky Senate vacancy

27. Omaha police officer shot at Westroads Mall, condition stable; suspect in custody

28. A survey of Republicans shows 5 factions have emerged after Trump's presidency.

29. Washington Gov. Inslee to require K-12 schools to offer some in-person learning as part of COVID-19 recovery

30. Michigan: All adults eligible for vaccine starting April 5

반응형

댓글()

1.2 레이 달리오

반응형

레이 달리오는 누구?

  • 브리지워터 어소시에이츠의 대표이사로 올웨더 포트폴리오로 유명

레이달리오의 철학

  • 자산의 다각화를 중시함
  • 글로벌 거시 경제를 중시함
  • 자신만의 관점으로 바라볼 수 있는 것을 중시

레이 달리오의 카테고리

  • 자산 분류

    • 주식(선진국지수, 신흥국지수, 개별주식)
    • 국채(중기, 장기, 물가연동채)
    • 회사채
    • 원자재
    • 경제 성장
      • 상승: 기대치보다 높은 경제 성장
      • 하락: 기대치보다 낮은 경제 성장
    • 물가
      • 상승: 기대치보다 높은 물가 상승
      • 하락: 기대치보다 낮은 물가 상승

레이 달리오가 활용한 지표들

  • 자산간 상관관계(correlation)
  • 리스크패러티: 자산별 위험 수준을 동일하게 배분하는 방식, 채권 비중이 높아짐
  • 장기부채 사이클
  • 단기부채 사이클
반응형

댓글()

1.1 존 보글

반응형

존 보글은 누구?

  • 뱅가드 설립자
  • 인덱스 펀드를 세계에서 가장 처음 도입한 사람
  • 월스트리트의 성인으로 불림
  • "Jack did more for American investors as a whole than any individual I’ve known,”
  • “A lot of Wall Street is devoted to charging a lot for nothing. He charged nothing to accomplish a huge amount.” - Buffett -

존 보글의 철학

  • 돈을 맡긴 고객의 수익을 극대화한다
  • “지푸라기 더미에서 바늘을 찾으려고 애쓰지 말고 지푸라기 더미를 사라”
    • 주가 예측은 무의미
    • 모든 주식을 보유하라
  • 단순성, 집중성, 효율성, 성실
  • 사고 파는 것도 돈이다.
    • 비용을 줄이는 것은 자산 증가에 큰 차이
  • 시장 전체를 사서, 끝까지 버티기

존 보글의 카테고리

  • 장기 투자
    • 단기적 투자자는 지는 게임, 장기적 투자는 검증된 승자의 게임
  • 시장 지수
    • 시장은 random walk에 가까움, 효율적

저서 or 관련 도서

  • The Economic Role of the Investment Company / 존 보글
  • 월스트리트 성인의 부자 지침서(Enough: True Measures of Money, Business, and Life) / 존 보글
  • 모든 주식을 소유하라(The little book of common sense investing : the only way to guarantee) / 존 보글

 

 

반응형

댓글()

Python을 활용해서 티스토리에 자동으로 글 쓰기

Basic Coding/생활코딩|2021. 3. 13. 10:00
반응형

# 1. 오픈 API 설정하기 

 

# 2. 게시글 전송하기 


자동 글쓰기 위해서는 access token값이 필요합니다. 

* access token값을 위해서는 먼저 open api에 등록을 해야 합니다. (# 1-1)

* 그리고 login한 상태에서 Authentication code 값을 발급 받아야 합니다. (# 1-2)

* 발급 받은 Authentication code을 통해 access token 값을 발급 받아야 합니다. (# 1-3) 

 

각각의 과정은 다음과 같습니다. 

 

 

 

# 1-1. Open API 등록 

 

tistory client에 등록하는 과정입니다.

 

www.tistory.com/guide/api/manage/register

 

TISTORY

나를 표현하는 블로그를 만들어보세요.

www.tistory.com

이 때 서비스 URL 및 CallBack에 본인의 tistory 주소를 적어줍니다. 

 

 

등록 후 앱관리를 선택하면

App ID = abcdefg (임의로 적음)

Secret Key  = zxcvccc 

값을 볼 수 있습니다. 

 

client_id는 App ID 값이 되는 것이고, 

client_secret은 Secret Key값이 되는 것입니다. 

 

# 1-2. Authentication code 발급받기

Access Token을 받기 위해서 그 전에 Authentication code를 발급 받아야 합니다.

 

Authentication code는 tistory에 로그인 된 상태에서만 발급이 가능합니다. 

tistory 로그인 후에 인터넷 주소창에 

주소창에

https://www.tistory.com/oauth/authorize?client_id=위에서 얻은값&redirect_uri=http://finance.tistory.com&response_type=code&state=someValue
(가령, https://www.tistory.com/oauth/authorize?client_id=abcdefg&redirect_uri=http://finance.tistory.com&response_type=code&state=someValue
)

을 넣고 엔터를 치면 

 

와 같은 화면이 뜹니다. 이 때 허가하기를 눌러주면...

 

https://finance.tistory.com/?code=abc1234&state=

와 같은 창의 주소가 뜹니다.

 

이 때 abc1234가 code 값이 됩니다. 

code 값은 1시간 동안 유효합니다. 

 

 

# 1-3. Access Token 발급받기   

Access Token을 받기 위해서 그 전에 Authentication code를 발급 받아야 합니다. 

 

import requests


client_id = "위에서 받은 값"
seckey = "위에서 받은 값"
callback_url = "http://finance.tistory.com"  # 등록시 입력 값
code = "위에서 받은 값"

token_url="https://www.tistory.com/oauth/access_token?client_id={0}&client_secret={1}&redirect_uri={2}&code={3}&grant_type=authorization_code".format(client_id, seckey, callback_url, code)
res = requests.get(token_url)
access_token = res.text.split("=")[1]
print(access_token)

 

 

# 2. 글 게시하기 

import requests
import json


url_post = "https://www.tistory.com/apis/post/write"

access_token = '위에서 생성한 access token을 입력하세요'
blog_name = "http://finance.tistory.com"
blog_name ="finance.tistory.com"
title = "오늘의 뉴스"
content = "작성할 내용 포함"
visibility = 0  #(0: 비공개 - 기본값, 1: 보호, 3: 발행)
category = 0  # 본인 블로그의 카테고리 id를 확인하세요.
publish_time = ''
slogan = ''
tag = '경제,뉴스'
acceptComment = 1  # 댓글허용
password = ''  # 보호글 비밀번호

headers = {'Content-Type': 'application/json; charset=utf-8'}
params = {
    'access_token': access_token,
    'output': 'json',
    'blogName': blog_name,
    'title': title,
    'content': content,
    'visibility': visibility,
    'category': category,
    'published': publish_time,
    'slogan': slogan,
    'tag': tag,
    'acceptComment': acceptComment,
    'password': password
}
data = json.dumps(params)

rw = requests.post(url_post, headers=headers, data=data)
if rw.status_code == 200:
    print('ok')
else:
    print('fail')

 

 

# 기타. 오픈 API 가이드 

tistory.github.io/document-tistory-apis/

 

소개 · GitBook

No results matching ""

tistory.github.io

 

반응형

댓글()