Skip to content
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

/api/v3/myTrades returns empty list #47

Open
vikrambajaj22 opened this issue Jul 30, 2021 · 7 comments
Open

/api/v3/myTrades returns empty list #47

vikrambajaj22 opened this issue Jul 30, 2021 · 7 comments

Comments

@vikrambajaj22
Copy link

I am trying to get a list of all my previous trades so I can compute my average buying price per symbol.
I am able to use endpoints like /account, /ticker/price etc. with the API key and secret I generated. However, /api/v3/myTrades always returns an empty list regardless of the symbol I pass to it (I have tried 'BTCUSD', 'DOGEUSD', 'USDTUSD' etc.).

Am I missing something?

P.S.: I am calling these endpoints through python-binance since I found it easier to create the client using that package.

@MaxPovver
Copy link

@vikrambajaj22 did you add "fromId = 0" parameter to the request?

@vikrambajaj22
Copy link
Author

Yep, still empty

@vikrambajaj22
Copy link
Author

Any update on this? I tried using an API key/secret with spot trading enabled, but still see the same issue.

@JoeDiesel40
Copy link

I seem to have similar issues except everything related to cryptic or coin values are threre just isn't showing my amount owned ..v2 8.5<33>

@JoeDiesel40
Copy link

If that makes sense

@vikrambajaj22
Copy link
Author

I can get amount owned i.e. current value, but I get an empty list for my trades, so I can't access my purchase prices (to calculate P/L)

@Sheikhharis50
Copy link

Sheikhharis50 commented Jun 2, 2023

Is there any solution for this yet?
I also have USDTUSD for buy and ONEUSD for sell coming from csv. But If I fetch it from API it's giving me an empty list.

Request

uri_path = "/api/v3/myTrades"
payload = {
    "symbol": "ONEUSD" or "USDTUSD",
    "limit": 1000,
    "timestamp": int(round(time.time() * 1000)),
    "recvWindow": "60000",
}

Response

[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants