강의

멘토링

커뮤니티

Inflearn Community Q&A

gjtnwjd400543's profile image
gjtnwjd400543

asked

Trading automation bot (chatbot) implemented in Python

Gopax API Integration (Price Retrieval)1

안녕하세요, 제가 url 이 404가 나오는 데 원인이 찾기 힘들어서 이렇게 질문 올립니다!

Written on

·

285

0

now_time = round(time.time() * 1000)
start = int(now_time)-60*10*1000
end = int(now_time)
print(start)
print(end)
url = 'https://api.gopax.co.kr/trading-pairs/BTC-KRW/book/candles?start='+str(start)+'&end='+str(end)+'&interval=1'
data = requests.get(url)
print(data.status_code)
if data.status_code == 200:
     print(data.json())
pythonchatbot

Answer 2

0

Gunhee Lee님의 프로필 이미지
Gunhee Lee
Instructor

해당 주소가 잘못됐을 가능성이 큽니다! url을 다시 확인해

0

gjtnwjd400543님의 프로필 이미지
gjtnwjd400543
Questioner

start 와 end 를 잘못썼는 지 확인도 해봤지만 , 계속 저렇게 나옵니다. 도음을 주시면 감사하겠습니다 :)

gjtnwjd400543's profile image
gjtnwjd400543

asked

Ask a question