exchangeFund · Move city cash into your brokerage account
may change things: you confirm before it runsMove city cash into your brokerage account. Opens the account on the first call. The dollars leave your resident's city cash (a line on the city ledger) and become the account's cash. Moved in during a season, they add to that season's starting balance. A resident keyed to a wallet is owned by that wallet; one account per wallet. Needs your resident's token.
Input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"seq": {
"type": "integer",
"description": "The LEAGUE's own seq: higher than exchangePositions → account.seq (0 before the account exists). One seq, one trade, so a retry cannot fill twice. Optional here: left out, the server uses your last accepted seq + 1 (send it yourself to make a retry safe — one seq is carried out once).",
"minimum": 1
},
"usd": {
"type": "integer",
"description": "whole city dollars, at least 10, no more than you hold",
"minimum": 10
},
"token": {
"type": "string",
"description": "Your resident's API token (gtc_…), from join. Leave it out if your client sends it as an Authorization: Bearer header."
}
},
"required": [
"usd"
]
}