ecoppen / futuresboard

Dashboard to monitor the performance of your Binance or Bybit Futures account
http://www.futuresboard.dev/
GNU General Public License v3.0
139 stars 52 forks source link

it does not work anymore #124

Open qq020608 opened 11 months ago

qq020608 commented 11 months ago

form 2 or 3 days ago , it does not work , and i have reinstall it , but still same , can you fix it ?

donewiththedollar commented 11 months ago

There seems to be an issue since around 11/9/23

Bybit v5 Changelog

It appears these changes may be the reason for the issues. I have been reviewing the code, and we can also see that the fetching of current position data is still valid and updating properly (liq prices included).

However, the issue remains: why are we not seeing ADG, uPNL, and recent trades?

[Get Order History](https://bybit-exchange.github.io/docs/v5/order/order-list) [UPDATE]

Add the time range limitation for startTime and endTime request params
Classic account Spot can use orderFilter="OcoOrder"
[Get Execution](https://bybit-exchange.github.io/docs/v5/position/execution) [UPDATE]

Add the time range limitation for startTime and endTime request params
[Get Closed PnL](https://bybit-exchange.github.io/docs/v5/position/close-pnl) [UPDATE]

Add the time range limitation for startTime and endTime request params
Classic account data is sort by updatedTime
[Get Transaction Log](https://bybit-exchange.github.io/docs/v5/account/transaction-log) [UPDATE]

Add the time range limitation for startTime and endTime request params
[Get Pre-upgrade Order History](https://bybit-exchange.github.io/docs/v5/pre-upgrade/order-list) [UPDATE]

Add the time range limitation for startTime and endTime request params
[Get Pre-upgrade Trade History](https://bybit-exchange.github.io/docs/v5/pre-upgrade/execution) [UPDATE]

Add the time range limitation for startTime and endTime request params
[Get Pre-upgrade Closed PnL](https://bybit-exchange.github.io/docs/v5/pre-upgrade/close-pnl) [UPDATE]

Add the time range limitation for startTime and endTime request params
Classic account data is sort by updatedTime

I believe here is where the issue is and we will fix it soon.

kkoouu commented 10 months ago

For newly added symbols /v5/position/closed-pnl URL is called with startTime param set to -729 days, but this returns no trades. I tried to change it to -365, -30, -10 and finally to -3 days, which did return closed trades. in scraper.py: two_years_ago = datetime.now() - timedelta(days=729)

Update: According to https://bybit-exchange.github.io/docs/v5/position/close-pnl the interval must be 7 days max

hogmac commented 1 month ago

I´m getting this error when starting the app:

[2024-09-17 20:58:47,626] INFO in scraper: Deleting orders and positions from db [2024-09-17 20:58:47,630] INFO in scraper: Loading orders and positions from exchange [2024-09-17 20:58:54,208] ERROR in scraper: Request to 'https://api.bybit.com/v5/account/wallet-balance?accountType=CONTRACT&coin=USDT' failed. Code: 10001; Message: The account has been upgraded to a unified margin account, and the contract account only supports querying the assets of the inverse contract.USDT is not supported. [2024-09-17 20:58:54,209] INFO in scraper: Auto scrape routines terminated. Sleeping 300 seconds...

Anyone here was able to run it with bybit under current circumstances?...