BYDFi
Trade wherever you are!
Buy Crypto
Markets
Trade
Derivatives
Bots
Events
common-tag-new-0
Rewardsanniversary-header-ann-img

How can I import older trades using the Kucoin API?

Abhinav GuptaApr 30, 2022 · 3 years ago1 answers

I'm trying to import older trades using the Kucoin API, but I'm not sure how to do it. Can someone guide me through the process step by step?

1 answers

  • Apr 30, 2022 · 3 years ago
    Importing older trades using the Kucoin API is a breeze! Just follow these steps: 1. Start by generating an API key and secret on the Kucoin platform. 2. Use the API key and secret to authenticate yourself and gain access to the API. 3. Make a GET request to the '/api/v1/market/histories' endpoint, specifying the trading pair and date range for the trades you want to import. 4. The API will return a response containing the trade history data. 5. Extract the relevant trade information from the response and process it as needed. 6. Finally, import the trade data into your desired platform or application for further analysis or record-keeping. That's it! You're all set to import older trades using the Kucoin API. If you have any more questions, feel free to ask!