GetRecords problem with getting the number of k-strings

Author: key986, Created: 2021-09-11 23:02:17, Updated:

The okex V5 API interface The k-line history data is available for the most recent 2000 bits, but so using GetRecords to get the most recent 99 bits of k-line data by default, you can use the k-line history data for the most recent 99 bits of k-line data. This is because the okxk line data is page-split, and the default is 99 lines of data per page. I want to get the most recent arbitrary number of k-string data ((less than 2000, greater than 99)). How should you code in python? Please help me, thank you very much.


More

The grassWith python, web access package request direct access to the native interface