kucoin-api-docs icon indicating copy to clipboard operation
kucoin-api-docs copied to clipboard

Fills not returning all data

Open robertwh opened this issue 3 years ago • 16 comments

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.

robertwh avatar Apr 22 '22 19:04 robertwh

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.

progressivehed avatar May 12 '22 17:05 progressivehed

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?

robertwh avatar May 13 '22 21:05 robertwh

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

progressivehed avatar May 19 '22 00:05 progressivehed

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

progressivehed avatar May 24 '22 19:05 progressivehed

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: @.***>

robertwh avatar May 25 '22 15:05 robertwh

@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

florianlindner avatar Aug 08 '22 16:08 florianlindner

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 avatar Aug 10 '22 16:08 progressivehed

@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?

progressivehed avatar Aug 10 '22 16:08 progressivehed

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: @.***>

robertwh avatar Aug 10 '22 17:08 robertwh

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.

sambP avatar Aug 10 '22 20:08 sambP

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: @.***>

robertwh avatar Aug 10 '22 20:08 robertwh

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

sambP avatar Aug 10 '22 20:08 sambP

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: @.***>

Dennisstig92 avatar Aug 10 '22 23:08 Dennisstig92

Thabks for your feedbacks.

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

progressivehed avatar Aug 12 '22 14:08 progressivehed

Any update on this @progressivehed ?

srglnd avatar Oct 14 '22 20:10 srglnd

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

FounderCasey avatar Feb 07 '23 10:02 FounderCasey