Kucoin / kucoin-api-docs

KuCoin API Docs
Other
273 stars 147 forks source link

Fills not returning all data #385

Open robertwh opened 2 years ago

robertwh commented 2 years ago

I'm using the endpoint: "/api/v1/fills?endAt=" . $end_time . '&startAt=' . $start_time where the $end_time and $start_time are php variables. They are set to traverse from the current date/time backwards until start_time

I'm also using paging. The data goes back until September of 2021 but does not return any data prior to that. There is data that I have retrieved via the ledgers endpoint that clearly shows there should be data back until February of 2019 (where the v2 api goes back to)

Everything is coded in PHP and I have all the other endpoints in the api working fine.

progressivehed commented 2 years ago

Hello

We have limited our endpoint data retirement and you can get historical data at most for one year.

For getting more data, please submit a ticket to support and request for your historical data. You can ask an admin to expedite your ticket process.

robertwh commented 2 years ago

If that's the case, why am I only getting 9 months of data?

Also, I'm building an app for clients, how am I supposed to get all their data the fist time they sign up?

progressivehed commented 2 years ago

Please let me check this with technical team. I inform you here

progressivehed commented 2 years ago

It can only return up to 6 months. for more older data you need to raise a ticket for now

robertwh commented 2 years ago

So to get more data than 6 months for clients that use my app, I have to have them request it from support?

I use other apps that access your data that don't do that.

On Thu, May 12, 2022 at 1:20 PM progressivehed @.***> wrote:

Hello

We have limited our endpoint data retirement and you can get historical data at most for one year.

For getting more data, please submit a ticket to support and request for your historical data. You can ask an admin to expedite your ticket process.

— Reply to this email directly, view it on GitHub https://github.com/Kucoin/kucoin-api-docs/issues/385#issuecomment-1125242166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBENBBXXSDCG5BL5MXDK7TVJU4XHANCNFSM5UDFQKPA . You are receiving this because you authored the thread.Message ID: @.***>

florianlindner commented 2 years ago

@progressivehed Is there any general solution to this? I can reproduce that the /api/v1/fills endpoint can only return data in the last 9 months. We need it not only for a single case but for a download of all transactions for users in general.

I found out that "a competitor" is able to download all older transactions as well. Therefore it must be possible in some way. Yet it takes him 30 minutes. As the rate limit is 9 requests per 3 seconds this must be a brute forcing through maybe all trading pair combinations and timeframes or orderIds or another trick.

Therefore I ask: Is there any way this is achievable? I tried defining the trading pair in the parameter etc. Yet there will not be any data older than 9 months.

Thank you

progressivehed commented 2 years ago

So to get more data than 6 months for clients that use my app, I have to have them request it from support? I use other apps that access your data that don't do that. On Thu, May 12, 2022 at 1:20 PM progressivehed @.> wrote: Hello We have limited our endpoint data retirement and you can get historical data at most for one year. For getting more data, please submit a ticket to support and request for your historical data. You can ask an admin to expedite your ticket process. — Reply to this email directly, view it on GitHub <#385 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBENBBXXSDCG5BL5MXDK7TVJU4XHANCNFSM5UDFQKPA . You are receiving this because you authored the thread.Message ID: @.>

Hi. For fills endpoint that you asked, it is limited to up to 9 months.

I reconfirm this again with tech team again.

For the time being longer time period is not available now.

progressivehed commented 2 years ago

@progressivehed Is there any general solution to this? I can reproduce that the /api/v1/fills endpoint can only return data in the last 9 months. We need it not only for a single case but for a download of all transactions for users in general.

I found out that "a competitor" is able to download all older transactions as well. Therefore it must be possible in some way. Yet it takes him 30 minutes. As the rate limit is 9 requests per 3 seconds this must be a brute forcing through maybe all trading pair combinations and timeframes or orderIds or another trick.

Therefore I ask: Is there any way this is achievable? I tried defining the trading pair in the parameter etc. Yet there will not be any data older than 9 months.

Thank you

Hi. Do you need more than 9 months time period?

robertwh commented 2 years ago

Yes, my application does an initial load for clients that gets all their data, then updates on a daily/weekly/monthly basis based on options they select.

Robert

On Wed, Aug 10, 2022 at 11:51 AM Hed @.***> wrote:

@progressivehed https://github.com/progressivehed Is there any general solution to this? I can reproduce that the /api/v1/fills endpoint can only return data in the last 9 months. We need it not only for a single case but for a download of all transactions for users in general.

I found out that "a competitor" is able to download all older transactions as well. Therefore it must be possible in some way. Yet it takes him 30 minutes. As the rate limit is 9 requests per 3 seconds this must be a brute forcing through maybe all trading pair combinations and timeframes or orderIds or another trick.

Therefore I ask: Is there any way this is achievable? I tried defining the trading pair in the parameter etc. Yet there will not be any data older than 9 months.

Thank you

Hi. Do you need more than 9 months time period?

— Reply to this email directly, view it on GitHub https://github.com/Kucoin/kucoin-api-docs/issues/385#issuecomment-1210985962, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBENBAANJN25SPDRAZFJ2LVYPMZZANCNFSM5UDFQKPA . You are receiving this because you authored the thread.Message ID: @.***>

sambP commented 2 years ago

Our application would also need the entire trade history of our customers. This IS possible somehow. https://koinly.io is able to query trades from years ago. The only question is how they do it.

robertwh commented 2 years ago

Node40 also is able to do it. Take a long time, but they get all my history, so somehow other vendors are able to accomplish it.

On Wed, Aug 10, 2022 at 3:32 PM Philipp @.***> wrote:

Our application would also need the entire trade history of our customers. This IS possible somehow. https://koinly.io is able to query trades from years ago. The only question is how they do it.

— Reply to this email directly, view it on GitHub https://github.com/Kucoin/kucoin-api-docs/issues/385#issuecomment-1211237749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBENBHLKQSRM5T2ZP6JSXTVYQGULANCNFSM5UDFQKPA . You are receiving this because you authored the thread.Message ID: @.***>

sambP commented 2 years ago

Yeah, koinly needs around 40min. So it seems that there is some "hack".

Dennisstig92 commented 2 years ago

I just suddently lost 2000 usd and ni one can help me. Support says recovery wallet. I done.

Founds still gone :(

ons. 10. aug. 2022 22.58 skrev Philipp @.***>:

Yeah, koinly needs around 40min. So it seems that there is some "hack".

— Reply to this email directly, view it on GitHub https://github.com/Kucoin/kucoin-api-docs/issues/385#issuecomment-1211263891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXTG2IGLFX2H4GDQNHOKL3TVYQJXJANCNFSM5UDFQKPA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

progressivehed commented 2 years ago

Thabks for your feedbacks.

I am checking this with API team. I will uodate you about the result here.

srglnd commented 1 year ago

Any update on this @progressivehed ?

FounderCasey commented 1 year ago

following up - are fills still limited to ~9 months?