Skip to content

Commit 0f4a370

Browse files
committed
fix: 분, 연 캔들 요청 url 오류 수정
1 parent 16809c6 commit 0f4a370

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

upbit/upbit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,7 @@ def get_candles_second(self,
18651865
"candle_acc_trade_volume": 0.0051944
18661866
}, ...]
18671867
"""
1868-
url = self._endpoint + "/candles/seconds/"
1868+
url = self._endpoint + "/candles/seconds"
18691869
params = {
18701870
"market": market,
18711871
"to": to,
@@ -2030,7 +2030,7 @@ def get_candles_year(self,
20302030
"""연(Year) 캔들 조회
20312031
20322032
API 요청 및 응답에 대한 자세한 정보는 공식 문서 참고:
2033-
`Upbit API Doc <https://docs.upbit.com/reference/%EB%85%84year-%EC%BA%94%EB%93%A4>`_
2033+
`Upbit API Doc <https://docs.upbit.com/kr/reference/%EB%85%84year-%EC%BA%94%EB%93%A4>`_
20342034
20352035
:param market: 마켓 코드 (ex. KRW-BTC)
20362036
:param to: 마지막 캔들 시각 (exclusive). 포맷 : yyyy-MM-dd'T'HH:mm:ss'Z' or yyyy-MM-dd HH:mm:ss. 비워서 요청시 가장 최근 캔들
@@ -2042,7 +2042,7 @@ def get_candles_year(self,
20422042
Usage::
20432043
20442044
upbit = Upbit()
2045-
res = upbit.get_candles_second('KRW-BTC')
2045+
res = upbit.get_candles_year('KRW-BTC')
20462046
print(res.json())
20472047
20482048
[{
@@ -2059,7 +2059,7 @@ def get_candles_year(self,
20592059
"first_day_of_period": "2024-01-01"
20602060
}, ...]
20612061
"""
2062-
url = self._endpoint + "/candles/years/"
2062+
url = self._endpoint + "/candles/years"
20632063
params = {
20642064
"market": market,
20652065
"to": to,

0 commit comments

Comments
 (0)