DevelopersAPIReferencetransfers
CounterAsset
Sets the transfer-counter pair (type asset) on the position; the balance effect is computed on the fly by the engine (legacy…
Authorization
bearerAuth Authorization<token>
A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.
In: header
Path Parameters
walletId*string
Row uuid
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/transfers/counterAsset" \ -H "Content-Type: application/json" \ -d '{ "source": { "type": "transaction", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8" }'{ "ok": true}Unlink
Clears the transfer-counter pair on the position and — when the counter is a transaction/holding — on the counter position too.
CounterTransaction
Reads the source position, builds the mirror transaction in the target asset (amount negated / holding total price, FX-converted into the asset currency…