Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K线的历史记录怎么获取 #34

Closed
ChineseCabbageW opened this issue Jun 12, 2019 · 1 comment
Closed

K线的历史记录怎么获取 #34

ChineseCabbageW opened this issue Jun 12, 2019 · 1 comment

Comments

@ChineseCabbageW
Copy link

ChineseCabbageW commented Jun 12, 2019

https://data.gateio.co/api2/1/candlestick2/[CURR_A]_[CURR_B]?group_sec=[GROUP_SEC]&range_hour=[RANGE_HOUR]

range_hour 这个参数是什么意思?

@gateio
Copy link
Owner

gateio commented Jun 25, 2019

请替换 [CURR_A] 和 [CURR_B] 为您需要查看的币种,GROUP_SEC 和 RANGE_HOUR 替换为需要获取的时间区域.
RANGE_HOUR 为数据时间区间,GROUP_SEC为时间间隔,
例如获取1小时内的分钟线数据:
https://data.gateio.co/api2/1/candlestick2/btc_usdt?group_sec=60&range_hour=1

@gateio gateio closed this as completed Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants