-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any API that provides the total buy, total sell, total transaction, and total earning statistical report? #141
Comments
Can anyone please help me with my previous question? |
Can you give a more detailed explanation about your requirement. If you can find such data in a web page, please provide a screenshot. |
There is no data on the gate.io web page, What I want is if the user buys 1 crypto with 10 qty and another crypto with 20 qty then in total buy will be 30 because a user has bought two cryptos with different qty and the same as for sell. Total earnings means, how much has the user won by investing the amount in different crypto. |
You can list a user's trades with |
Okay, I go through the above API information, but I have one doubt: how can I find the total earnings? I mean, on which key would I consider calculating the total earnings? |
By earnings, I think you need to first define they should be calculated. If you have the rules, then you can do the calculation yourself. API only provides basic user accounts, trading history, etc. How you use these data depends mainly on your own logic. |
Okay, When I call the GET /spot/my_trades API without passing any query params it returns the record between "2022-11-09 14:02:39" and "2022-11-08 18:18:41" but it should return all the records. When I pass timestamp "1664821800" in query params which is equal to "2022-10-04 00:00:00", it returns every record between "2022-10-07 14:59:12" and "2022-10-04 17:57:32" but it should return all the records. I also try the different query parameters along with the time stamp but nothing changed. So can you please guide how can I get all records or which parameters I should pass to get all the records? |
Which field exactly do you mean by |
When I pass nothing in query params it returns only 4-5 records not all the records and I have less than 1000 records. Please correct me if I am passing something invalid. |
Please provide your full request with your user id and send them to [email protected] so we can perform a detailed check. |
Hi, email is received. There is a mistake with my previous comment(which I've edited to cross out). The default behavior is based on time range. If no parameters are provided, only recent 7 days' records are returned. If only You can specify both To fulfill your requirements, you need to retrieve your records by specify |
Yes, I checked, and it's working. But I received an error while calling "/spot/my_trades" saying that currency_pair is required, but in the documentation, it is mentioned that required = false. I am using the Python SDK to call the API. |
SDK still set the currency_pair as required to achieve compatibility. You can set the parameter, but set its value to an empty string |
Hello,
I am looking for the total buy, total sell, total transaction, and total earning statistical report. For that, I referred to the gate.io developer API documentation, but I couldn't find out the above things from any APIs. So can you please help me? Is there any API that provides me with all these things?
Thank you.
The text was updated successfully, but these errors were encountered: