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

Bybit fetchMyTrades USDT Perpetual not working #22349

Open
dasbts opened this issue May 1, 2024 · 2 comments
Open

Bybit fetchMyTrades USDT Perpetual not working #22349

dasbts opened this issue May 1, 2024 · 2 comments
Assignees

Comments

@dasbts
Copy link

dasbts commented May 1, 2024

Operating System

Debian LTS

Programming Languages

Python

CCXT Version

ccxt-4.3.12 (LTS using pip install ccxt --upgrade)

Description

fetchMyTrades is not working for USDT perpetual symbols, only about 3 week back of data is returned. I have reached out to support who couldn't do anything, but referred me to their API telegram, awaiting reply there.

Only getting data from 2024-04-09 and forward. Trying to re-fetch 2023 for tax-reporting which has due-date tomorrow in Sweden, but might have to do a temporary REST solution myself I guess.

Code

await bybit.fetchMyTrades('BTC/USDT:USDT', 1672531200000)
await bybit.fetchMyTrades('BTC/USDT', 1672531200000)

@carlosmiei carlosmiei self-assigned this May 1, 2024
@carlosmiei
Copy link
Collaborator

carlosmiei commented May 1, 2024

Hello @dasbts,

Can you enable the verbose mode exchange.verbose = True after await exchange.load_markets() and post the http request that was made? CCXT is using this endpoint to fetch private trades: https://bybit-exchange.github.io/docs/api-explorer/v5/position/execution

Nonetheless, we will reach out to bybit to clarify how further this endpoint can retrieve data (they state 2 years, but I'm starting to doubt it)

@carlosmiei
Copy link
Collaborator

@dasbts Alternatively you can try to export a report from here: https://www.bybit.com/user/assets/order/derivatives/uniform-usdt/closed-pnl

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

2 participants