Place a bid
place_bidBid for a market player. Your money is committed until the next transfer round, but you can change or withdraw the bid. Check credit to avoid rejection.
Instructions
Bid for a player on the market.
This commits the manager's money. Confirm the player and the amount with the user before calling it, and say what they would have left.
The bid does not take effect straight away: it waits for the next transfer round,
which get_market reports as closes_at. Until then it can be changed with
change_bid or pulled with withdraw_bid.
Sizing the bid: compare against credit from get_offers, not budget from
get_account — the league's credit factor makes them different numbers. Comunio's
credit does not subtract bids already outstanding, so check
credit_committed in the result for what is already promised. What players
actually sell for is in get_transfers; quoted_price is only an asking price.
The amount is not checked against credit here. Comunio enforces its own limit and answers "Credit exceeded", so a bid it would accept is never refused by this tool. Refused before anything is sent only if the player is not on the market or is one of the manager's own listings.
Check ok and message in the result. Comunio can report overall success while
rejecting the bid itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| player_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether this particular bid was accepted by Comunio | |
| price | Yes | Amount bid, in euros | |
| player | No | That player's name | |
| message | No | Comunio's reason, when it gives one | |
| offer_id | No | The offer Comunio created. Needed to change or withdraw it. | |
| player_id | Yes | Player the bid is for | |
| credit_after | No | Spending power left if every open bid wins, in euros. Accounts for the other bids, which Comunio's own `credit` figure does not. | |
| credit_committed | No | Already tied up in the manager's other open bids, in euros | |
| applied_immediately | Yes | False for a bid: it waits for the transfer round and can be withdrawn |