Skip to content

Error getting last traded prices for trading pairs #52

@komposter

Description

@komposter

Describe the bug

I had some DAI on my balance.
05.01.2025 backend-api started spamming the same message to the log every minute:

2025-01-06 11:39:52,622 - root - ERROR - Error getting last traded prices for trading pairs ['BTC-USDT', 'ETH-USDT', 'BNB-USDT', 'DAI-USDT', 'LUNA-USDT', 'SHIB-USDT', 'LUNC-USDT', 'PEPE-USDT']: 'DAI-USDT'

So, it wanted to calculate my account balance and failed because DAI-USDT wasn't available.
I sold all DAI I had on my account, and it stopped spamming.

I think it should try to convert DAI to USD using both DAI-USDT and USDT-DAI` pairs and only if both are not available, raise an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions