Please tell me how to get historical K-line data

Author: The Ninja, Created: 2015-12-19 21:05:19, Updated:

For example, if I'm using the strategy of the EMA, then the EMA20 needs 20 K lines to get its data, if it's a minute, that's fine, but if it's a day, is there a way to get the historical data?

Known: I know that exchange.GetRecords ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

I also have a question about GetRecords.img

Can't you make a custom K-line cycle in addition to a fixed K-line cycle? Like 4h 6h

Requesting answers


More

JBTCC's GetRecords initially returns only one record, which would have taken several days of data collection to run properly if it had been judged on a daily basis. My compromise approach is to get the initial K-line data by providing a K-line historical record exchange, such as OKCoin, which, while not very accurate, can basically be used as the initial data analysis, so that the program can run from the beginning without waiting.

bincoinThis can be done by calling exchange.GetRecords (()) to retrieve all historical k-line data since the disc was opened and save it as a csv data file.

yun320826Hi, can you solve this problem? I'm trying to get the calendar for the last few days and I don't know how to use GetRecords.

ZeroNot supporting the order

jxhbtcHow to Benefit

JIt's much better, thank you.

The NinjaYes, that's what I'm doing right now.

The NinjaIt should not work, exchange.GetRecords (()) OK is to return the most recent 200 K-line data.

The Ninjaexchange.GetRecords (()) OK is returning the most recent 200 K-string data. The token is 300.

The NinjaIt's not a straight line.