yahoo_fantasy_api icon indicating copy to clipboard operation
yahoo_fantasy_api copied to clipboard

I'm getting a runtime error when trying to add player on waiver list

Open gameuser1982 opened this issue 2 years ago • 1 comments

When I try to add a player on the waiver list (for example player ID 6574) using the add_and_drop_players function, it throws up an error saying FAB balance must be a whole number between $0 and $999999999.

File "C:\pybaseballbot\fantasy_test.py", line 38, in team.add_and_drop_players(6574, 6404) File "C:\pybaseballbot\pybaseballbot\Lib\site-packages\yahoo_fantasy_api\team.py", line 174, in add_and_drop_players self.yhandler.post_transactions(self.league_id, xml) File "C:\pybaseballbot\pybaseballbot\Lib\site-packages\yahoo_fantasy_api\yhandler.py", line 241, in post_transactions return self.post("league/{}/transactions".format(league_id), xml) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\pybaseballbot\pybaseballbot\Lib\site-packages\yahoo_fantasy_api\yhandler.py", line 60, in post raise RuntimeError(response.content) RuntimeError: b'\n\n FAB balance must be a whole number betweed $0 and $999999999.\n \n'

How do I get around this?

gameuser1982 avatar Jan 11 '24 15:01 gameuser1982

So it looks like this wrapper doesn't support FAB bids? None of the documentation mentions how to input FAB bids

gameuser1982 avatar Jan 12 '24 04:01 gameuser1982