Coding/Python

Rout (07.18 - 07.19)

Rouxist 2022. 7. 20. 02:17

트레이딩 봇 만들기를 본격적으로 시작.

 

텔레그램 봇 연결

나중엔 슬랙을 연결할 것 같긴 한데, 어이것도 재밌는 기능인 것 같다. 아래에서 봇 세팅하는 법을 모두 참고했다.

https://medium.com/@robertbracco1/how-to-write-a-telegram-bot-to-send-messages-with-python-bcdf45d0a580

 

How to Write a Telegram Bot to Send Messages with Python

This guide will show you the easiest way to use Python to send Telegram messages. I did this because I train machine learning models that…

medium.com

 

구글 스프레드시트

gspread 라는 라이브러리로.

 

서버

일단은 https://www.pythonanywhere.com 를 사용해보기로

 

업비트 API 사용 권한을 할당할 IP주소 찾기

ipify (https://www.ipify.org)를 사용.

 

 

 


그래서 일단 60초 간격으로 매수, 매도를 반복하고, 그에 대한 정보들을 스프레드시트에 기록할 수 있게 되었다.